- A
A storage account access key, because it can be copied into the import tool.
Why wrong: An account key grants broad access to the entire storage account and is not scoped to one container.
- B
A user delegation SAS, because it is signed with Microsoft Entra credentials and is time limited.
A user delegation SAS is the most appropriate credential when you want temporary, scoped access to blob data without exposing the storage account key. It is generated using Microsoft Entra authorization, can be constrained to a specific container, and can expire after six hours. That combination gives the contractor only the access needed for the import task while keeping the underlying account credentials protected.
- C
A shared key connection string, because it works with any tool that needs blob access.
Why wrong: A shared key connection string exposes broad account-level credentials and is not limited to one container.
- D
A managed identity token, because the contractor can use it outside Azure directly.
Why wrong: Managed identities are tied to Azure resources and are not something an external contractor directly receives.
Issuing a User Delegation SAS for Temporary Blob Container Access
This AZ-104 practice question tests your understanding of implement and manage storage. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A contractor must import data into one blob container for six hours. The contractor should not receive the storage account key, and access must be limited to that container only. Which credential should the administrator generate?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
A user delegation SAS, because it is signed with Microsoft Entra credentials and is time limited.
A user delegation SAS is signed with Microsoft Entra credentials (formerly Azure AD) and can be scoped to a specific blob container with a time limit. This meets the requirement of granting the contractor access only to that container for six hours without exposing the storage account key.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A storage account access key, because it can be copied into the import tool.
Why it's wrong here
An account key grants broad access to the entire storage account and is not scoped to one container.
When this WOULD be correct
When the question asks for a credential that provides full access to all storage account resources (e.g., for a backup tool that needs to manage multiple containers) and there is no requirement for time limitation or container-level restriction.
- ✓
A user delegation SAS, because it is signed with Microsoft Entra credentials and is time limited.
Why this is correct
A user delegation SAS is the most appropriate credential when you want temporary, scoped access to blob data without exposing the storage account key. It is generated using Microsoft Entra authorization, can be constrained to a specific container, and can expire after six hours. That combination gives the contractor only the access needed for the import task while keeping the underlying account credentials protected.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
A shared key connection string, because it works with any tool that needs blob access.
Why it's wrong here
A shared key connection string exposes broad account-level credentials and is not limited to one container.
When this WOULD be correct
When an application needs to access a storage account using a tool that requires a connection string, and the user is trusted with full account access (e.g., an internal admin performing bulk operations).
- ✗
A managed identity token, because the contractor can use it outside Azure directly.
Why it's wrong here
Managed identities are tied to Azure resources and are not something an external contractor directly receives.
When this WOULD be correct
An administrator needs to grant an Azure VM (or other Azure resource) access to a specific blob container for a limited time, without managing keys. The VM uses a managed identity to obtain a token for blob access, and the administrator assigns RBAC roles to the identity scoped to the container.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓A user delegation SAS, because it is signed with Microsoft Entra credentials and is time limited.Correct answer▾
Why this is correct
A user delegation SAS is the most appropriate credential when you want temporary, scoped access to blob data without exposing the storage account key. It is generated using Microsoft Entra authorization, can be constrained to a specific container, and can expire after six hours. That combination gives the contractor only the access needed for the import task while keeping the underlying account credentials protected.
✗A storage account access key, because it can be copied into the import tool.Wrong answer — click to see why▾
Why this is wrong here
A storage account access key grants full administrative access to the entire storage account, not just a single container, and it cannot be time-limited. The question requires access limited to one container for six hours without exposing the account key.
★ When this WOULD be the correct answer
When the question asks for a credential that provides full access to all storage account resources (e.g., for a backup tool that needs to manage multiple containers) and there is no requirement for time limitation or container-level restriction.
Why candidates choose this
Candidates may think the access key is the simplest way to authenticate tools for data import, overlooking the security and scoping requirements in the question.
✗A shared key connection string, because it works with any tool that needs blob access.Wrong answer — click to see why▾
Why this is wrong here
A shared key connection string includes the storage account access key, which the contractor should not receive, and it does not limit access to a single container.
★ When this WOULD be the correct answer
When an application needs to access a storage account using a tool that requires a connection string, and the user is trusted with full account access (e.g., an internal admin performing bulk operations).
Why candidates choose this
Candidates may think a connection string is a convenient way to grant access without understanding that it exposes the account key and provides unrestricted access to the entire storage account.
✗A managed identity token, because the contractor can use it outside Azure directly.Wrong answer — click to see why▾
Why this is wrong here
A managed identity token is used for Azure resources to authenticate to Azure services without storing credentials, but it cannot be used outside Azure directly. The contractor is external and needs access from outside Azure, so a managed identity token is not applicable.
★ When this WOULD be the correct answer
An administrator needs to grant an Azure VM (or other Azure resource) access to a specific blob container for a limited time, without managing keys. The VM uses a managed identity to obtain a token for blob access, and the administrator assigns RBAC roles to the identity scoped to the container.
Why candidates choose this
Candidates may think managed identities provide secure, token-based access without keys, but they forget that managed identities are tied to Azure resources and cannot be used by external users or non-Azure workloads.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse a user delegation SAS with a service SAS or account SAS, mistakenly thinking any SAS is sufficient, but only a user delegation SAS avoids using the storage account key and can be precisely scoped to a single container with time-bound access.
Detailed technical explanation
How to think about this question
A user delegation SAS is created using Azure AD credentials and relies on the `UserDelegationKey` obtained via the `Get User Delegation Key` REST API call. This SAS can be assigned permissions at the container or blob level and includes an expiry time, making it ideal for temporary, scoped access. Under the hood, the SAS token is signed with the user delegation key, which itself is signed with the Azure AD token, ensuring the SAS is tied to the identity that requested it.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Implement and Manage Storage — study guide chapter
Learn the concepts, then practise the questions
- →
Implement and Manage Storage practice questions
Targeted practice on this topic area only
- →
All AZ-104 questions
1,170 questions across all exam domains
- →
AZ-104 study guide
Full concept coverage aligned to exam objectives
- →
AZ-104 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-104 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Manage Azure Identities and Governance practice questions
Practise AZ-104 questions linked to Manage Azure Identities and Governance.
Implement and Manage Storage practice questions
Practise AZ-104 questions linked to Implement and Manage Storage.
Deploy and Manage Azure Compute practice questions
Practise AZ-104 questions linked to Deploy and Manage Azure Compute.
Implement and Manage Virtual Networking practice questions
Practise AZ-104 questions linked to Implement and Manage Virtual Networking.
Monitor and Maintain Azure Resources practice questions
Practise AZ-104 questions linked to Monitor and Maintain Azure Resources.
AZ-104 Azure RBAC practice questions
Practise AZ-104 questions linked to AZ-104 Azure RBAC.
AZ-104 storage account practice questions
Practise AZ-104 questions linked to AZ-104 storage account.
AZ-104 virtual network practice questions
Practise AZ-104 questions linked to AZ-104 virtual network.
AZ-104 NSG practice questions
Practise AZ-104 questions linked to AZ-104 NSG.
AZ-104 Azure Monitor practice questions
Practise AZ-104 questions linked to AZ-104 Azure Monitor.
AZ-104 backup practice questions
Practise AZ-104 questions linked to AZ-104 backup.
AZ-104 managed identity practice questions
Practise AZ-104 questions linked to AZ-104 managed identity.
Practice this exam
Start a free AZ-104 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AZ-104 question test?
Implement and Manage Storage — This question tests Implement and Manage Storage — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: A user delegation SAS, because it is signed with Microsoft Entra credentials and is time limited. — A user delegation SAS is signed with Microsoft Entra credentials (formerly Azure AD) and can be scoped to a specific blob container with a time limit. This meets the requirement of granting the contractor access only to that container for six hours without exposing the storage account key.
What should I do if I get this AZ-104 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
4 more ways this is tested on AZ-104
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A partner company needs to upload files to a single blob container for the next 24 hours. The partner should not receive the storage account key, and the access should be limited to that container only. Which access mechanism should you provide?
medium- ✓ A.A container-level SAS token with write permission and a 24-hour expiry.
- B.The storage account key, because it is easier for external users to use.
- C.A management group role assignment, because RBAC can restrict access to one blob container.
- D.A private endpoint, because it grants the partner write access over a private IP.
Why A: A container-level SAS token with write permission and a 24-hour expiry is correct because it provides time-limited, delegated access to a specific blob container without exposing the storage account key. The SAS token is generated with the container as the resource scope, write permission (add/create), and an expiry time of 24 hours, meeting all requirements: no key sharing, container-only access, and time-bound access.
Variation 2. A contractor needs to upload data into one specific blob container for six hours. The administrator must avoid sharing the storage account key and should grant only the minimum permissions needed. Which access method should be used?
medium- ✓ A.A service SAS scoped to the container with write permission and an expiry time in six hours.
- B.The storage account access key, because it is easier to revoke later.
- C.A shared key rotation policy, because it grants time-limited access to one container.
- D.A user-assigned managed identity assigned to the contractor’s laptop.
Why A: A service SAS scoped to the container with write permission and an expiry time of six hours is correct because it provides time-limited, delegated access to a specific blob container without exposing the storage account key. This meets the requirement of granting only the minimum permissions needed (write) for the six-hour duration, and the SAS can be revoked by regenerating the storage account key if necessary.
Variation 3. A contractor needs to upload files into one blob container for six hours. The administrator must avoid sharing the storage account key and wants the access to expire automatically. Which two actions should the administrator take? Select two.
hard- ✓ A.Generate a user delegation SAS for the contractor.
- B.Generate a service SAS by using the account key.
- ✓ C.Set the SAS expiry to six hours.
- D.Enable anonymous blob access on the container.
- E.Create a storage account access key specifically for the contractor.
Why A: A user delegation SAS is secured with Azure AD credentials rather than the storage account key, allowing the administrator to grant time-limited access without exposing the key. Setting the SAS expiry to six hours ensures the contractor's access automatically expires after the required duration, meeting both security and time-bound requirements. Option C is correct because it directly specifies the expiry time for the SAS, which aligns with the requirement for automatic expiration after six hours.
Variation 4. A contractor needs to upload files into one blob container for six hours. The administrator must avoid sharing the storage account key, and the access token should keep working even if the storage account keys are rotated later. Which access mechanism should be issued?
hard- A.An account SAS signed with the storage account key
- B.A service SAS signed with the storage account key
- ✓ C.A user delegation SAS signed through Microsoft Entra authentication
- D.The storage account access key itself in a temporary script variable
Why C: A user delegation SAS is signed with Microsoft Entra credentials rather than the storage account key, so it remains valid even if the storage account keys are rotated. This meets the requirement to avoid sharing the account key while providing temporary, scoped access for exactly six hours. The contractor can upload files without the administrator exposing the account key or needing to manage key rotation.
Keep practising
More AZ-104 practice questions
- A storage automation service principal must upload, read, and delete blob data in one container by using Microsoft Entra…
- A subnet contains several application servers. You need to allow inbound TCP 3389 only from a management subnet named Su…
- A subscription admin wants to investigate who changed a resource and also review the platform-generated events for that…
- Based on the exhibit, which Azure feature should the administrator use to track this kind of platform-wide service issue…
- An administrator wants a script running on an Azure VM to create a resource in Azure without storing any passwords or cl…
- A PowerShell script runs on an Azure VM every night and uses Azure CLI commands to create tags and VM resources in anoth…
Last reviewed: Jun 11, 2026
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.