Microsoft DevOps Engineer Expert AZ-400 Practice Question
You lead a team that delivers infrastructure-as-code through both GitHub Actions and Azure Pipelines.
Requirements
In GitHub, the AZURE_SP_CLIENT_SECRET must be available only to jobs that target the Prod environment and must be masked if someone tries to echo it.
In Azure DevOps, the same secret must be shared by several YAML pipelines, kept encrypted, and automatically update if the value is rotated in Azure Key Vault.
Which combination of platform features satisfies all the requirements with the least administrative effort?
Store AZURE_SP_CLIENT_SECRET as a repository secret in GitHub Actions and as a secret variable defined in each YAML pipeline in Azure DevOps.
Store AZURE_SP_CLIENT_SECRET in an environment file committed to the repo and encrypted with GPG for GitHub, and expose it through a service connection in Azure Pipelines.
Store AZURE_SP_CLIENT_SECRET as an organization secret in GitHub Actions and in a library variable group that is not linked to Key Vault in Azure Pipelines.
Store AZURE_SP_CLIENT_SECRET as a secret in the Prod environment in GitHub Actions and use a variable group linked to Azure Key Vault in Azure Pipelines.
GitHub environment-level secrets are exposed only to workflows that explicitly reference the environment and are always redacted in log output, meeting GitHub's scoping and masking needs.
In Azure DevOps, a variable group that is linked to an Azure Key Vault keeps the secret encrypted, lets multiple pipelines consume it, and automatically synchronizes when the secret is rotated in Key Vault.
Repository or organization secrets in GitHub do not limit access to a particular environment, and plain pipeline variables in Azure DevOps do not support automatic rotation from Key Vault. Service connections authenticate to Azure but do not distribute the secret to jobs. Therefore, using environment secrets in GitHub together with a Key Vault-linked variable group in Azure Pipelines is the only option that fulfills every 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 a GitHub environment secret and how does it differ from a repository secret?
Open an interactive chat with Bash
How does Azure Key Vault integration with Azure DevOps enhance secret management?
Open an interactive chat with Bash
Why do service connections in Azure Pipelines not fulfill secret distribution requirements?
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 .