Question 340
A team proposes a production fix for: A Container Apps text-embedding worker retrieves a secret from Key Vault using an embedded service-principal password. Which change is most appropriate?
Explanation
Correct Answer
Use the assigned identity with Secret Get privileges scoped to required vault secrets. The scenario specifically states: A Container Apps text-embedding worker retrieves a secret from Key Vault using an embedded service-principal password. Azure managed identity can authenticate workload secret reads without stored client credentials. This change targets the named service and constraints rather than a different workflow. Validate the result by checking The worker reads the expected secret after the embedded client password is removed. The important remaining qualification is: Managed identity alone does not bypass Key Vault network policies or RBAC.
Incorrect Answers
Azure resource management roles and Key Vault secrets data-plane roles are separately evaluated. That addresses a different mechanism; this question turns on Use the assigned identity with Secret Get privileges scoped.
Key Vault keys expose supported cryptographic operations distinct from opaque secret storage. In the present case the governing issue is Azure managed identity can authenticate workload secret reads without, which this does not resolve.
Azure RBAC propagation and credential caches can delay newly granted permissions becoming effective. That observation may hold without resolving the relevant issue: Use the assigned identity with Secret Get privileges scoped.