Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are defining an infrastructure-as-code (IaC) strategy for an Azure landing zone that is provisioned with Bicep templates stored in an Azure Repos Git repository. The solution must meet the following requirements:

  1. A single set of template files must be promoted through dev, test, and prod so that every environment is created from exactly the same code base.
  2. Template syntax validation and linting tests must run automatically on every pull request (PR).
  3. Deployments to an environment must occur only after the corresponding branch is updated by an approved PR.

Which approach should you recommend?

  • Implement GitFlow: create long-lived develop, release, and master branches that each hold a copy of the templates, and trigger separate pipelines on every push to deploy the respective environment.

  • Create three separate Git repositories-one per environment-with identical templates, and configure independent pipelines that run tests and deploy on every commit to each repository's default branch.

  • Adopt trunk-based development with a single main branch containing shared Bicep templates and environment-specific parameter files, and configure a multi-stage YAML pipeline that runs PR validation tests and then, on merge to main, deploys sequentially to dev, test, and prod using environment approvals.

  • Use release-flow with a main branch for prod, short-lived release branches for dev and test, and trigger deployments only when a semantic-version tag is pushed to any branch.

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
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