Question 50
An Azure Function obtains a Microsoft Entra token for its managed identity, but reading a Key Vault secret returns HTTP 403. An engineer proposes replacing identity-based access with a stored credential. What should the security engineer check FIRST?
Explanation
Correct Answer
After token acquisition succeeds, check the actual principal, the vault authorization model and secret-read role/permissions, plus vault firewall/private link settings causing 403.
Incorrect Answers
Identity separation may reduce cross-service exposure but cannot diagnose the specific Key Vault data-plane 403.
Enabling the already working managed identity again does not prove the vault recognizes its principal or that network access is allowed.
Choosing user-assigned instead of system-assigned identity would not correct missing secret data permissions or a blocked Key Vault network path.



Implementing End-to-End Security Controls for Cloud and AI Workloads (SC-500) Practice Tests