Question 1
An Azure security engineer evaluates this fictional situation: An audit reader received Contributor on the entire subscription merely to inspect virtual machine configuration. Which response BEST addresses the identified security requirement?
Explanation
Correct Answer
The most targeted response is: Replace Contributor with Reader at the narrowest needed resource or resource group scope. The security basis is: Contributor permits writes whereas Reader permits inspection without configuration changes. Verification should show: The auditor reads the VM settings but an attempted resource modification is denied.
Incorrect Answers
“Reassign access to the new system-assigned identity or design a user-assigned identity for continuity” can be suitable where system-assigned managed identities are tied to the lifecycle of their owning Azure resource. It does not resolve this question’s narrower failure, which follows: Contributor permits writes whereas Reader permits inspection without configuration changes. The relevant action is “Replace Contributor with Reader at the narrowest needed resource or resource group scope”.
The offered action, “Give the application a suitable Key Vault permission and narrowly scoped resource grant instead”, addresses a different dependency: A workload's Azure resource role and vault data permissions should reflect only actual operations. The failure reported here instead follows: Contributor permits writes whereas Reader permits inspection without configuration changes. The targeted response is “Replace Contributor with Reader at the narrowest needed resource or resource group scope”.
The alternative focuses on the technical control described by: A forbidden API response can arise from role, scope, or resource authorization mismatches. The present requirement is governed by: Contributor permits writes whereas Reader permits inspection without configuration changes. Apply “Replace Contributor with Reader at the narrowest needed resource or resource group scope” to address that particular cause.