Microsoft Azure Developer Core Solutions (legacy) — Question 1
You need to construct the link to the summary report for the email that is sent to users.
What should you do?
Answer options
- A. Create a SharedAccessBlobPolicy and set the expiry time to two weeks from today. Call GetSharedAccessSignature on the blob and use the resulting link.
- B. Create a SharedAccessBlobPolicy and set the expiry time to two weeks from today. Call GetSharedAccessSignature on the container and use the resulting link.
- C. Create a SharedAccessBlobPolicy and add it to the containers SharedAccessPolicies. Call GetSharedAccessSignature on the blob and use the resulting link.
- D. Create a SharedAccessBlobPolicy and call GetSharedAccessSignature on storage account and use the resulting link.
Correct answer: A
Explanation
The correct answer is A because it specifies creating a SharedAccessBlobPolicy for the blob and generating a link that is valid for two weeks, which is necessary for accessing the summary report directly. Options B and C incorrectly refer to the container instead of the blob, which would not provide the specific link required for the report. Option D incorrectly suggests applying the policy at the storage account level, which is not appropriate for generating a link to a specific blob.