Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your team maintains a YAML multi-stage Azure Pipeline that deploys a Java web app to Azure Kubernetes Service (AKS). The release stage needs a password-protected PFX certificate (app_tls.pfx) that must never be committed to the Git repository. The certificate must be usable only while the job runs and should be wiped from the build agent automatically after completion. Which approach should you implement to meet these requirements with minimal changes to the existing pipeline?
Define a secret variable named APP_CERT that contains a base64-encoded copy of the certificate and decode it with a script step at runtime.
Commit the certificate to a private Git submodule and add an authenticated checkout step to pull the submodule during the release stage.
Store the certificate as a secret in Azure Key Vault and use the AzureKeyVault@2 task to inject it into environment variables during the job.
Upload app_tls.pfx to the pipeline Library as a secure file and add a DownloadSecureFile@1 task that references the file in the release stage.
Uploading the certificate to the Library as a secure file and adding a DownloadSecureFile@1 task meets every stated requirement. Secure files are stored encrypted in Azure DevOps, are not exposed in the repository, and the task downloads them to a temporary location that is deleted automatically at the end of the job. Secret variables or Azure Key Vault can hold text values but do not natively handle binary certificate files or guarantee automatic cleanup. Committing the file-even in a private submodule-places the sensitive data in source control, violating the security constraint.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Azure DevOps pipeline Library?
Open an interactive chat with Bash
How does the DownloadSecureFile@1 task work?
Open an interactive chat with Bash
Why is storing sensitive data in a private Git repository not recommended?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .