Microsoft DevOps Engineer Expert AZ-400 Practice Question

You store all production secrets in a single Azure Key Vault. A GitHub repository contains several workflow files, and an Azure DevOps project contains multiple YAML pipelines. You must allow both GitHub Actions and Azure Pipelines to fetch the same up-to-date secrets at runtime without copying secret values into repository files, pipeline YAML, or library variables. Secret rotation in Key Vault should require no changes to the CI/CD definitions. Which solution meets these requirements?

  • Export the Key Vault secrets to a .env file during deployment and commit the file to the repository for both systems to consume.

  • Define the secrets as environment variables in each GitHub workflow and use secure files in the Azure Pipelines Library.

  • Store each secret as an encrypted repository secret in GitHub and as an encrypted pipeline variable in Azure Pipelines.

  • In GitHub Actions, authenticate to Azure with OIDC and use an action to pull secrets directly from Key Vault; in Azure Pipelines, link a variable group to the same Key Vault and reference the variables.

Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot