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.
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
I think ans is D as per
http://stackoverflow.com/questions/3183857/how-to-create-a-sub-container-in-azure-storage-location
and http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
🙂
Ans is D
agreed
Why?
what is the correct answer?
Sounds like D
Answer is C only:
http://azure.microsoft.com/en-gb/documentation/articles/virtual-machines-create-upload-vhd-windows-server/
Check the link and refer the Step-2
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.
Why not Public Container???
I think the issue is video files. There could be other files in the directory as well that shouldn’t be public.
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
Key words : “all of the video files in the storage container”
So answer should be B
Correcting myself, agree with D
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.
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..)