PrepAway - Latest Free Exam Questions & Answers

You need to allow the user access only to the video fil…

You manage a collection of large video files that is stored in an Azure Storage account.A user wants access to one of your video files within the next seven days.
You need to allow the user access only to the video file, and then revoke access once the user no longer needs
it.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Give the user the secondary key for the storage account. Once the user is done with the file, regenerate the
secondary key.

B.
Create an Ad-Hoc Shared Access Signature for the Blob resource. Set the Shared Access Signature to
expire in seven days.

C.
Create an access policy on the container. Give the external user a Shared Access Signature for the blob by
using the policy. Once the user is done with the file, delete the policy.

D.
Create an access policy on the blob. Give the external user access by using the policy. Once the user is
done with the file, delete the policy.

Explanation:
See 3) below.
By default, only the owner of the storage account may access blobs, tables, and queues within that account. If
your service or application needs to make these resources available to other clients without sharing your
access key, you have the following options for permitting access:

https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/

10 Comments on “You need to allow the user access only to the video fil…

    1. Eric says:

      you can use B, however there’s no “Once the user is done with the file, delete the policy.” in B.

      Means the share will still there for 7 days, what if user just need it for 2 days?




      0



      0
    1. mslover says:

      The answer is B. “You need to allow the user access only to the video file.”

      A policy cannot be applied only to the file blob, it applies to a container.

      “User needs access within 7 days.”

      The ad-hoc SAS can be given an expiry time of 7 days. Then access is automatically revoked. It is correct however that it cannot be revoked before the 7 days after it is created.

      https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1




      0



      0
  1. MP says:

    It’s C. Access policy can only be applied to containers. https://docs.microsoft.com/en-us/rest/api/storageservices/establishing-a-stored-access-policy

    Note
    Note that a stored access policy on a container can be associated with a shared access signature granting permissions to the container itself or to the blobs it contains. Similarly, a stored access policy on a file share can be associated with a shared access signature granting permissions to the share itself or to the files it contains.
    Stored access policies are currently not supported for account SAS.




    1



    0

Leave a Reply