AZ-400 Continuous Delivery & Release Management 2 — Questions and Answers
Question 1: Which Azure DevOps release gate type allows you to pause a deployment until a work item query returns zero results?
- Invoke Azure Function
- Query Work Items (Correct answer)
- Query Azure Monitor Alerts
- Invoke REST API
Correct answer: Query Work Items
The 'Query Work Items' gate checks an Azure Boards query and blocks deployment if active items (e.g., open bugs) remain.
Question 2: In Azure Pipelines, what is the purpose of a 'deployment group' in release pipelines?
- A group of pipeline stages that run in parallel
- A logical set of target machines for agent-based deployments (Correct answer)
- A collection of release variables shared across stages
- A group of approvers for manual gates
Correct answer: A logical set of target machines for agent-based deployments
Deployment groups are sets of physical or virtual machines registered with Azure DevOps to which releases are deployed using the deployment group agent.
Question 3: A team wants to deploy a new API version alongside the old one, routing 10% of traffic to the new version initially. Which deployment strategy does this describe?
- Blue-green deployment
- Canary deployment (Correct answer)
- Rolling deployment
- Recreate deployment
Correct answer: Canary deployment
Canary deployment gradually shifts a small percentage of traffic to the new version before a full rollout.
Question 4: Which Azure Pipelines YAML keyword defines the conditions under which a stage will run?
- trigger
- condition (Correct answer)
- dependsOn
- strategy
Correct answer: condition
The 'condition' keyword in YAML pipelines specifies a boolean expression that must evaluate to true for the stage or job to execute.
Question 5: When configuring a multi-stage YAML pipeline, which keyword specifies that Stage B should only run after Stage A completes?
- needs
- after
- dependsOn (Correct answer)
- requires
Correct answer: dependsOn
The 'dependsOn' keyword defines stage or job dependencies, ensuring execution order in multi-stage YAML pipelines.
Question 6: Which Azure release pipeline feature lets you automatically roll back a deployment if a post-deployment gate fails?
- Deployment conditions
- Auto-redeploy trigger (Correct answer)
- Pre-deployment approvals
- Rollback on failure setting
Correct answer: Auto-redeploy trigger
The 'Auto-redeploy trigger' in Azure release pipelines can automatically re-deploy a prior successful release when a gate failure is detected.
Question 7: In Azure DevOps, what does a 'release artifact' represent?
- The output of a CI build or external source used as input to a release pipeline (Correct answer)
- A deployed version of the application in production
- A snapshot of release variables at deployment time
- An approval record for a release stage
Correct answer: The output of a CI build or external source used as input to a release pipeline
Release artifacts are versioned sources (e.g., build outputs, container images, NuGet packages) linked to a release pipeline as deployment inputs.
Which Azure DevOps release gate type allows you to pause a deployment until a work item query returns zero results?