Domain 2 of AZ-104 accounts for 15-20% of the exam. EarnYourCert has 104 original questions for this domain, all with explanations: 67 multiple choice, 21 yes/no and 16 completion or ordering items, like the real exam.
8 questions from our 104-question bank for this domain. Try to answer before revealing the solution.
1. An administrator regenerates (rotates) the primary access key of a storage account. What effect does this have on previously generated 'Service SAS' tokens that used that key?
Correct answer: C. Account and service SAS tokens are signed with a storage account access key; if that key is regenerated, all SAS tokens signed with the old key become invalid immediately, which is useful for revoking compromised access.
2. Your company wants users to access Azure Files shares using their on-premises Active Directory credentials, preserving NTFS-level file and folder permissions. Which Azure Files feature enables this?
Correct answer: B. Azure Files supports identity-based authentication via on-premises AD DS (or Microsoft Entra Kerberos), allowing users to authenticate with their domain credentials and enforce NTFS-level directory and file permissions.
3. Which built-in RBAC role should be assigned to an application that needs to read and write data in blob containers via Microsoft Entra ID, but should not be able to manage the storage account's configuration?
Correct answer: A. The 'Storage Blob Data *' roles (Reader, Contributor, Owner) control access to data within blobs via Microsoft Entra ID, separate from management-plane roles (like Contributor), which control the account's configuration but not necessarily data access.
4. A blob container has its public access level set to 'Private (no anonymous access)'. A user tries to download a blob using only the public URL, without a SAS token or authentication. What happens?
Correct answer: A. When a container's public access level is 'Private', any anonymous request without valid credentials (key, SAS, or Microsoft Entra ID token) is rejected.
5. What is the maximum validity period for a user delegation SAS in Azure Blob Storage?
Correct answer: A. A user delegation SAS has a maximum validity period of 7 days. It is signed with Azure AD credentials (not with the account key), making it more secure than an account SAS or service SAS. It requires the principal to have the 'Storage Blob Data Contributor' role or higher on the appropriate scope.
6. A company needs the lowest possible cost for data that is accessed very frequently and requires low latency. Which combination of redundancy type and access tier is most appropriate?
Correct answer: D. For frequently accessed data, the Hot tier offers the lowest access cost (though higher per-GB storage cost); combining it with LRS also minimizes redundancy cost compared to geo-redundant options, if regional failure protection isn't required.
7. A company must ensure that no blob in a specific container can be deleted or modified during a 5-year audit period. What configuration should they apply?
Correct answer: B. To ensure blobs cannot be deleted or modified for a specific period, a locked WORM (Write Once, Read Many) time-based retention policy must be applied. Once locked, the policy is immutable and cannot be shortened. Versioning and soft delete allow recovering deleted data, but do not prevent deletion. Lifecycle policies manage tier movement, not immutability.
8. What is the difference between blob soft delete and container soft delete in Azure Storage?
Correct answer: B. Blob soft delete protects individual block blobs, page blobs, and snapshots from accidental deletion. Container soft delete protects the entire container along with all the blobs it contains. Both features can be enabled simultaneously and have independently configurable retention periods. They are complementary, not mutually exclusive.