Your DevOps team deploys Azure Virtual Desktop host pools and session hosts through Bicep. Domain-join credentials and an SSL certificate for reverse connect must be supplied at deployment time without putting secrets in source code or parameter files. Auditors require that secrets be recoverable if accidentally deleted. Which two actions should you take? Each correct answer presents part of the solution.
Choose an answer
Tap an option to check your answer.
Correct answer: Store the credentials and certificate in Azure Key Vault with soft-delete and purge protection enabled., Assign a user-assigned managed identity to the deployment and grant it get and list permissions to the Key Vault; reference secrets using the ARM/Bicep listSecret function..
Why this is the answer
Storing credentials and certificates in Azure Key Vault with soft-delete and purge protection enabled meets the requirement for secure storage, preventing secrets from being in source code, and ensuring recoverability if accidentally deleted. Assigning a user-assigned managed identity to the deployment and granting it get and list permissions to the Key Vault allows the Bicep deployment to securely retrieve the secrets at deployment time using the listSecret function, without hardcoding them. Placing secrets in an Azure DevOps variable group, even if marked secret, still involves passing them as parameters, which can be less secure than Key Vault integration and doesn't inherently provide the same level of auditability and recoverability. Embedding the certificate PFX directly in the Bicep file, even if marked secure, is not a best practice for secret management and exposes the secret in the template. Storing secrets in an Automation Account credential asset and fetching them from a runbook after deployment introduces unnecessary complexity and doesn't directly integrate with the Bicep deployment process for initial provisioning.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed