PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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.

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

  1. Pras says:

    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




    1



    0
    1. Arie says:

      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.




      0



      0
  2. challenge says:

    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




    0



    0
  3. Bruno D'Amico says:

    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.




    0



    0
  4. Labs says:

    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..)




    1



    0

Leave a Reply