Microsoft DevOps Engineer Expert AZ-400 Practice Question
You are configuring an Azure DevOps YAML pipeline that will run on a self-hosted agent in Azure. During execution, the pipeline must:
Download a PFX certificate named web-api-cert from an Azure Key Vault and save it as a secure file on the agent.
Generate a JSON Web Token (JWT) by calling the Azure Key Vault key jwt-signing. The private portion of the key must never leave the vault; the pipeline only needs to invoke the signing operation.
You create a service principal for the pipeline and add it to the Key Vault access policies. Which single set of permissions meets the requirements while following the principle of least privilege?
To export web-api-cert with its private key, the pipeline needs Secret - Get permission because Key Vault stores the PFX payload of a certificate as a secret. Fetching the certificate object alone would return only public metadata, not the private key.
To create the JWT without exposing the private key, the pipeline must invoke the Sign operation against the jwt-signing key. That requires Key - Sign permission. No other key operations (for example, Decrypt or Get) are necessary because the pipeline does not need to read or decrypt the key material.
Therefore, the minimal permission set is:
Secrets: Get
Keys: Sign
All other answer choices either omit a required permission or grant unnecessary operations that violate the least-privilege principle.
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 principle of least privilege in Azure Key Vault?
Open an interactive chat with Bash
Why does fetching a certificate's private key require 'Secret: Get' permission?
Open an interactive chat with Bash
What is the 'Sign' operation in Azure Key Vault keys?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .