AZ-500 Secure compute, storage, and databases Practice Question
A company uses Azure Key Vault to store secrets. They want to grant developers the ability to read secrets, but only for specific secret names (e.g., 'App--ConnectionString'). They also want to use Azure RBAC instead of the Key Vault access policy model. Which RBAC role should they assign, and at which scope?
⚠ Common exam trap
Many exam-takers assume RBAC roles can only be assigned at the vault scope, forgetting that Azure RBAC supports fine-grained scoping down to the individual secret level, which is essential for least-privilege access control.
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
✓
Assign the 'Key Vault Secrets User' role at the secret scope
The 'Key Vault Secrets User' role, when assigned at the individual secret scope (e.g., /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.KeyVault/vaults/{vault}/secrets/{secretName}), grants read-only access to that specific secret. This satisfies the requirement to use Azure RBAC (instead of the legacy access policy model) and to limit developers to reading only secrets with a specific name, such as 'App--ConnectionString'.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Assign the 'Key Vault Secrets User' role at the secret scope
Why this is correct
The 'Key Vault Secrets User' role permits reading secret content. When scoped to an individual secret, it restricts access to that specific secret only. Azure RBAC supports data plane roles at the secret, key, or certificate level.
- ✗
Assign the 'Key Vault Secrets User' role at the vault scope
Why it's wrong here
Assigning the 'Key Vault Secrets User' role at the vault scope grants the developer read access to every secret stored in the vault, not just the single secret they need. This overly broad assignment violates the principle of least privilege. Since Azure RBAC supports scoping to individual secrets, the correct approach is to scope to the specific secret's data plane to limit exposure.
- ✗
Assign the 'Key Vault Reader' role at the secret scope
Why it's wrong here
The 'Key Vault Reader' role is limited to viewing the vault's metadata and properties, such as the vault URI and tags, but does not include the data action to read secret values (Microsoft.KeyVault/secrets/read). Even when scoped to an individual secret, the role lacks the necessary permission to retrieve the secret's content. Therefore, this assignment would not allow the developer to actually read the secret.
- ✗
Assign the 'Key Vault Secrets Officer' role at the secret scope
Why it's wrong here
The 'Key Vault Secrets Officer' role is designed for full administrative management of secrets, including create, update, delete, backup, and restore operations. Scoping it to a single secret still grants the developer write and delete permissions on that secret, which is more than the read-only access required. This violates least privilege and introduces a risk of accidental deletion or modification of the secret, which could cause application failures.
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
Go deeper
Related to this question
About these practice questions
This AZ-500 question is part of Courseiva's 194-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-500 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-500 exam.