AZ-104 exam dumps

AZ-104 practice question 62 of 289

Microsoft Certified: Azure Administrator Associate. Associate level, Microsoft. Free question with the correct answer and a full explanation.

AZ-104 Question 62

Single answer

You have a private container named 'media' in your Azure Storage account storing corporate training videos. You need to share one specific training video with an external vendor for exactly 12 hours. The vendor should be able to download and view the file, but must lose access immediately after the 12-hour window. Which approach should you use to accomplish this?

  1. A

    Generate a service-level SAS for the video with Read permission, specifying an expiry time of 12 hours from now

  2. B

    Create a stored access policy with Write permission and combine it with a SAS for the video file

  3. C

    Generate an account-level SAS with List and Read permissions, valid for 24 hours, and share the SAS URL

  4. D

    Create a user delegation SAS for the entire container with Read permission and no expiry time

Show answer and explanation

Correct answer: A

Explanation

To ensure the vendor can view the video for only a specific window of time, you must generate a SAS that grants read-only access to the target blob and sets an exact expiry time. This guarantees that once the SAS token expires, the vendor can no longer access the file.

  • A. Correct.

    Specifying Read permission and defining a 12-hour expiry uniquely meets the requirement to provide temporary access to a single file

  • B. Incorrect.

    A stored access policy with Write permission does not limit the user to read-only access, and combining it with a SAS would grant more permissions than needed

  • C. Incorrect.

    An account SAS with a 24-hour duration and List permission would allow the vendor to enumerate additional data and view the file for longer than the required 12 hours

  • D. Incorrect.

    A user delegation SAS without an expiry time would grant indefinite access, which fails the requirement to limit access to 12 hours

Timed practice exam

Take a AZ-104 practice test under exam conditions

60 questions in 60 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam