Courseiva
Design and implement build and release pipelinesmediumMultiple ChoiceObjective-mapped

AZ-400 Practice Question: Design and implement build and release pipelines

Network Topology
az pipelines release createdefinition-id 5description "Release v1.0"artifacts '{"build":{"buildId":123}}'output json"id": 45,"status": "inProgress","createdOn": "2025-03-03T12:00:00Z","modifiedBy": null,"releaseDefinition": {"id": 5,"name": "ReleasePipeline"},"environments": ["name": "Dev","preDeployApprovals": [],"deploySteps": []"name": "Prod","status": "notStarted",

Refer to the exhibit. A release is created with the above command. The Dev environment starts deploying, but the Prod environment does not. Which is the most likely reason?

⚠ Common exam trap

The AZ-400 exam often tests the distinction between manual approval and sequential environment dependencies, where candidates mistakenly assume a missing approval gate when the real issue is a pre-deployment condition waiting for a prior environment to succeed.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The Prod environment has a pre-deployment condition that waits for the Dev environment to succeed.

The exhibit shows a release pipeline with a sequential deployment strategy where the Prod environment has a pre-deployment condition configured to wait for the Dev environment to succeed. In Azure DevOps, pre-deployment conditions can be set to trigger only after a specific environment (like Dev) completes successfully. Since the Dev environment is still deploying, the Prod environment remains in a waiting state and does not start.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The Prod environment requires manual approval before deployment.

    Why it's wrong here

    The preDeployApprovals array is empty, confirming no manual approval gates are configured for Prod; additionally, a manual approval would block on human sign-off and trigger an 'awaiting approval' state rather than waiting on Dev's deployment status, so this cannot explain the observed dependency.

  • The release definition ID 5 is incorrect.

    Why it's wrong here

    The release was created successfully using release definition ID 5, which proves the ID is valid and accepted by the API; an invalid definition ID would cause the creation request to fail outright, not selectively delay a single environment's deployment.

  • The Prod environment has a pre-deployment condition that waits for the Dev environment to succeed.

    Why this is correct

    The Prod environment's pre-deployment condition is configured to trigger only after a successful deployment to the Dev environment. In Azure DevOps release pipelines, environment-level pre-deployment gates can be set to 'After environment' and specify a dependency on a prior environment's completion. If that condition is set to require Dev to succeed, the Prod deployment will remain in a 'Waiting' state until Dev finishes, which precisely matches the observed behavior. This is the default dependency model when you add environments sequentially, and it explains why Prod is delayed even though the artifact is valid and no approvals are configured.

  • The build artifact with ID 123 is not accessible.

    Why it's wrong here

    If artifact ID 123 were inaccessible, the release would fail at artifact download for every environment that attempts to deploy it, including Dev; since Dev is the first environment and succeeds, the artifact is clearly accessible, and Prod's delay can only be attributed to pre-deployment environment conditions.

About these practice questions

Courseiva writes every AZ-400 question from scratch — 823 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.