Question 120
During a cloud security review, the operations team observes: An Azure Function calls a storage account using a client secret embedded in configuration, and secret rotation regularly breaks the application. After remediation, which test result best proves the intended change?
Explanation
Correct Answer
This validates the specific control for managed identity replaces embedded secret: The workload is not using its platform-managed identity and therefore depends on long-lived application secrets. The associated corrective action is: Enable an appropriate managed identity and grant narrowly scoped storage data authorization to that identity. Testing a different component would not establish this result.
Incorrect Answers
Resource management Contributor does not automatically grant Key Vault secrets data access in the RBAC permission model. “Assign the scoped Key Vault Secrets User role or appropriate narrower data access to the managed identity” would address that alternative cause, not the condition in this question: the workload is not using its platform-managed identity and therefore depends on long-lived application secrets.
“Enable a new system-assigned identity and explicitly assign the required least-privilege role to its new principal” responds to this separate finding: a system-assigned managed identity is tied to its Azure resource lifecycle and a recreated resource may have a new principal. This question instead needs “Enable an appropriate managed identity and grant narrowly scoped storage data authorization to that identity”, so the alternative does not meet the stated condition.
Microsoft Entra authentication method settings have not enabled the chosen supported passwordless method for eligible users. “Enable the approved passwordless method and complete secure user registration” applies to that separate problem. The observed case is an Azure Function calls a storage account using a client secret embedded in configuration, and secret rotation regularly breaks the application; choosing this alternative would address the wrong failure mode.