Does Storage Account Key Operator Service Role Allow Listing and Regenerating Keys?
Short answer
A Yes, the Storage Account Key Operator Service Role grants User1 listkeys and regeneratekey actions on storage1, which is exactly the stated goal.
Question
Key Takeaways
Tested: the exact permission boundary of the Storage Account Key Operator Service Role; the trap is confusing it with Storage Account Contributor or Contributor, which can manage the account but are broader than the key-management task.
This AZ-104 scenario asks whether assigning the Storage Account Key Operator Service Role to User1 grants the ability to list and regenerate keys for an Azure Storage account. The role does exactly that — it can list and regenerate storage account access keys but grants no other data or configuration permissions.
Common mistake: The most common wrong answer is 'No', based on the assumption that key management requires Contributor or Storage Account Contributor, or that a custom role is needed — the built-in key operator role already covers listing and regenerating keys.
Expert Analysis
Why the Answer Is Correct
Azure RBAC ships a built-in role purpose-built for this exact task: Storage Account Key Operator Service Role. Its documented permission set isMicrosoft.Storage/storageAccounts/listkeys/action and Microsoft.Storage/storageAccounts/regeneratekey/action, which map precisely to "list and regenerate storage account keys" for storage1. Because the actions are scoped to the storage account (and can be assigned at the subscription, resource group, or storage account scope), assigning it to User1 satisfies the stated goal with least privilege. No custom role, and no broader Contributor role, is required. Note that this role grants only key operations — it does not give access to blob, file, queue, or table data.Why the Other Options Are Wrong
Option B ("No") would only be right if the role lacked the regenerate-key permission or if the goal also required data-plane access or account configuration. It does not — the requirement is limited to listing and regenerating keys. Choosing B usually stems from conflating this narrow role with Storage Account Contributor, which manages the account but is far broader than needed. It may also stem from assuming a custom role is mandatory, which is unnecessary when a built-in role covers the scenario exactly. Since the role's action list matches the requirement one-to-one, the correct choice is "Yes."Community Comment Notes
Virtually every learner in the thread selected the affirmative option, and Dash_888 supplied the rationale directly: "Permits listing and regenerating storage account access keys," linking the built-in RBAC roles page. lumax007 pointed to the dedicated role sub-page under the storage section of the same documentation set, and cosmicT73 simply stated the choice was "definitely correct." The unanimity here matches the vendor documentation, so there is no dissenting technical argument to weigh against it.Official Reference
- https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/storage#storage-account-key-operator-service-role
- https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage
These links open the official vendor documentation in a new tab.
Exam Strategy
For AZ-104 role questions, match the required action list to the smallest built-in role that contains exactly those actions — key listing and regeneration always points to the Key Operator Service Role. Watch for distractors that swap in Storage Account Contributor, which also manages the account but is broader than the stated goal.
Frequently Asked Questions
Does the Storage Account Key Operator Service Role let User1 read blob or file data?
No. It only grants listkeys and regeneratekey on the storage account; reading blob or file data requires a data-plane role such as Storage Blob Data Reader.
Would Storage Account Contributor also work, and why is it a poorer fit?
It can manage the account, but it is far broader than required; the key operator role follows least privilege for listing and regenerating keys only.
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors, not of islever. The comments shown first are the most substantive of the thread — ranked by depth, community endorsement and relevance; expand the list below to read the rest.
From public community threads 3
-
Dash_888 👍 7 Answered AStorage Account Key Operator Service Role - Permits listing and regenerating storage account access keys. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
-
lumax007 👍 1 Answered Ahttps://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/storage#storage-account-key-operator-service-role
-
cosmicT73 👍 1 Answered AA is definitely correct
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AZ-104 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-104 Practice Test →