You need to give anonymous users read access to all of the video files in the storage container

Your company is launching a public website that allows users to stream videos.
You upload multiple video files to an Azure storage container.
You need to give anonymous users read access to all of the video files in the storage
container.
What should you do?

Your company is launching a public website that allows users to stream videos.
You upload multiple video files to an Azure storage container.
You need to give anonymous users read access to all of the video files in the storage
container.
What should you do?

A.
Edit each blob’s metadata and set the access policy to Public Blob.

B.
Edit the container metadata and set the access policy to Public Container.

C.
Move the files into a container sub-directory and set the directory access level to Public
Blob.

D.
Edit the container metadata and set the access policy to Public Blob.



Leave a Reply 17

Your email address will not be published. Required fields are marked *


Pras

Pras

It is a trick..
http://stackoverflow.com/questions/3183857/how-to-create-a-sub-container-in-azure-storage-location

The link says “Windows Azure doesn’t provide the concept of heirarchical containers” and

http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/

says “By default, the new container is private and you must specify your storage access key to download blobs from this container. If you want to make the files within the container available to everyone, you can set the container to be public using the following code:

container.SetPermissions(
new BlobContainerPermissions { PublicAccess =
BlobContainerPublicAccessType.Blob });
Anyone on the Internet can see blobs in a public container, but you can modify or delete them only if you have the appropriate access key.

So, I think the ans is D

If anyone has more idea, please comment

joni

joni

what is the correct answer?

gnome

gnome

Sounds like D

rajen

Arie

Arie

If you would have read the page to which you link, plus the ones that Pras has linked, you would have seen that answer C cannot be correct. Answer D is the correct answer. To quote the page which you linked yourself:

By default, the container is private and can be accessed only by the account owner. To allow public read access to the blobs in the container, but not the container properties and metadata, use the “Public Blob” option. To allow full public read access for the container and blobs, use the “Public Container” option.

David

David

Why not Public Container???

Sean

Sean

I think the issue is video files. There could be other files in the directory as well that shouldn’t be public.

challenge

challenge

I think its D

From Azure Storage help:-

By default, the container is private and can be accessed only by the account owner.

To allow public read access to the blobs in the container (but not the container properties and metadata) use the “Public Blob” option.

To allow full public read access for the container and blobs, use the “Public Container” option

Startrek

Startrek

Key words : “all of the video files in the storage container”

So answer should be B

Startrek

Startrek

Correcting myself, agree with D

Bruno D'Amico

Bruno D'Amico

answer is D.

In the Storage Account, at the Container level, configure the access policy to have a Blob access type.

By default, container data is private to the account owner. Use Blob to allow public read access for blobs. Use Container to allow public read access and list access to the entire container.

Labs

Labs

I agree with Startrek. Question says “…read access to all of the video files in the storage
container.”

Answer is B. You have an container with “only” these videos and set access policy to “container” access type. Users will be able to list ALL of the content (videos) whitin this container by entering url : https://storageaccount.blob.core.windows.net/containername?restype=container&comp=list.

Also answer can be also D! : However, if you choose this you will NOT be able to list ALL videos at once, you will need to have direct links to these videos…. (you could quess but still..)