Practice Pipelines Questions Now
Start a timed practice session focusing on Azure Pipelines topics from the AZ-400 question bank.
Start AZ-400 Practice Quiz →AZ-400 Pipelines Question Bank (51 Questions)
Browse all 51 practice questions covering Azure Pipelines for the AZ-400 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.
- Question 1Design and implement build and release pipelines
An Azure Pipelines YAML pipeline uses a variable group linked to Azure Key Vault. What happens when a Key Vault secret is rotated?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 2Design and implement build and release pipelines
An engineer configures a YAML pipeline with the 'extends' keyword pointing to a secure pipeline template. What is the primary security benefit of using 'extends' in Azure Pipelines?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 3Design and implement build and release pipelines
A team uses multi-stage YAML pipelines with deployment jobs. They want deployments to track which version is deployed to which environment. Which Azure Pipelines feature provides this environment visibility?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 4Design and implement build and release pipelines
An Azure Pipelines YAML pipeline deploys to Azure App Service using the AzureWebApp@1 task. The task requires an Azure service connection. Which permission must the service connection's service principal have on the App Service?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 5Design and implement build and release pipelines
An Azure Pipelines release pipeline uses a classic (non-YAML) release definition. The team wants to migrate to YAML multi-stage pipelines. What is the recommended migration approach?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 6Design and implement build and release pipelines
A team uses Azure Pipelines with YAML templates. A template parameter is used to specify the deployment environment. How should the template validate that only allowed values ('dev', 'staging', 'prod') are passed?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 7Design and implement build and release pipelines
A team runs Azure Pipelines jobs on self-hosted agents and wants to clean the build directory between runs to prevent stale artifacts contaminating builds. Which YAML workspace configuration achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 8Design and implement build and release pipelines
A DevOps engineer needs to deploy an ARM template using Azure Pipelines. Which task deploys ARM templates to Azure?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 9Design and implement build and release pipelines
An Azure Pipelines agent pool uses Microsoft-hosted agents. A pipeline runs a build that takes 45 minutes. The team wants to reduce costs. Which approach reduces Microsoft-hosted agent minutes?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 10Design and implement build and release pipelines
A company has multiple teams each with their own Azure Pipelines agent pool. A security team requires that production deployments only run on dedicated, hardened agents. How is this enforced in the pipeline?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 11Design and implement build and release pipelines
A team uses Azure Pipelines and wants to publish a NuGet package to an Azure Artifacts feed when a build succeeds on the main branch. Which task performs NuGet package publishing?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 12Design and implement build and release pipelines
A DevOps engineer needs to connect an Azure Pipelines pipeline to an Azure subscription. The service connection must allow deployment to resource groups without storing a client secret (certificate or secret rotation concerns). What is the most secure authentication method?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 13Design and implement build and release pipelines
A DevOps engineer wants to re-run only the failed jobs in a multi-stage Azure Pipeline run rather than re-running the entire pipeline. Which Azure Pipelines feature supports this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 14Design and implement build and release pipelines
A company's release pipeline deploys ARM templates across multiple Azure subscriptions. Each subscription requires different credentials. How should the multi-subscription deployment be configured in Azure Pipelines?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 15Design and implement build and release pipelines
An Azure Pipelines pipeline uses a variable group linked to Azure Key Vault. The pipeline has a step that echoes all variables for debugging. What happens to Key Vault secret values when echoed?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 16Design and implement build and release pipelines
A team deploys infrastructure using Terraform and wants to store the plan output as a pipeline artifact for audit purposes. How is the Terraform plan file preserved in Azure Pipelines?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 17Design and implement build and release pipelines
A team uses GitHub Actions and wants to use a reusable workflow (equivalent to Azure Pipelines templates) across multiple repositories. Which GitHub Actions feature provides this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 18Design and implement build and release pipelines
A company's Azure Pipelines uses a service connection backed by a service principal. The service principal's client secret expires in 30 days. How should this be managed proactively?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 19Design and implement build and release pipelines
A company's pipeline produces build artifacts that should be retained for 30 days for rollback purposes. Which Azure Pipelines retention policy achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 20Design and implement build and release pipelines
A company runs a complex multi-stage pipeline that takes 2 hours to complete. The team wants to re-run only the production deployment stage after a failed swap operation, without re-running the build and test stages. Which Azure Pipelines feature supports this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 21Design and implement build and release pipelines
An Azure Pipelines pipeline deploys a Bicep template. The deployment fails with 'Conflict' error because another deployment is in progress for the same resource group. Which deployment mode resolves conflicts and handles concurrent deployments correctly?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 22Design and implement build and release pipelines
An Azure Pipelines build uses the PublishBuildArtifacts@1 task. A downstream pipeline uses DownloadBuildArtifacts@0. What is the recommended modern replacement for this artifact workflow?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 23Design and implement build and release pipelines
A team uses Azure Pipelines and has a variable group with sensitive values. They want only specific pipelines (from a security repository) to access this variable group. Which Azure DevOps security feature achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 24Design and implement build and release pipelines
A company uses Azure Pipelines to build a .NET application. They want to run tests and publish test results automatically. Which YAML pipeline task publishes test results to Azure Pipelines?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 25Design and implement build and release pipelines
An Azure Pipelines YAML pipeline needs to run a step only when the current branch is 'main'. Which YAML construct achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 26Design and implement build and release pipelines
A team uses YAML pipelines and wants to reuse common build steps (e.g., restore, build, test) across 10 different service pipelines without duplicating YAML. Which Azure Pipelines feature enables this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 27Design and implement build and release pipelines
An engineer wants to run Azure Pipelines jobs in parallel to reduce build time. A build has a compile stage and a test stage. The test stage has three independent test suites. How should the YAML be structured?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 28Design and implement build and release pipelines
A company uses multi-stage YAML pipelines. They want the production stage to only run if the QA stage succeeds and if the build was triggered by the main branch. How is this expressed?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 29Design and implement build and release pipelines
A DevOps engineer configures a YAML pipeline and wants to ensure that sensitive values (e.g., API keys) are never printed in pipeline logs. Which Azure Pipelines feature prevents this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 30Design and implement build and release pipelines
An Azure Pipelines YAML pipeline uses a matrix strategy to run the same tests on multiple Node.js versions. How is this configured?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 31Develop a security and compliance plan
An organisation needs to scan all Azure Pipelines YAML files for insecure patterns (e.g., inline secrets, overly permissive permissions). Which approach implements this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 32Design and implement build and release pipelines
An Azure Pipelines YAML pipeline uses a pipeline resource to trigger from another pipeline. What does the 'trigger: true' setting on a pipeline resource mean?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 33Design and implement build and release pipelines
A team wants to store their pipeline configuration as a YAML template in a central 'pipeline-templates' repository and reference it from multiple project pipelines. Which YAML syntax imports a template from another repository?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 34Design and implement build and release pipelines
A team stores Bicep infrastructure code in a GitHub repository and wants every push to the main branch to trigger an Azure Pipelines deployment. Which YAML trigger configuration enables this for a pipeline connected to GitHub?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 35Design and implement build and release pipelines
An Azure Pipelines YAML pipeline uses runtime parameters to allow the deployer to choose the environment (dev/staging/prod) at queue time. Which YAML construct defines these parameters?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 36Design and implement build and release pipelines
A company uses Azure Pipelines to build and deploy microservices. Each service has an independent pipeline. A change in the shared library service should trigger rebuilds of all dependent service pipelines. Which YAML feature implements this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 37Design and implement build and release pipelines
A team uses Azure Pipelines YAML and wants to define environment variables that are different per stage (dev, staging, prod). Which approach manages stage-level variable overrides?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 38Design and implement build and release pipelines
A DevOps engineer configures a YAML pipeline to deploy to Azure Kubernetes Service. The deployment uses kubectl apply. Which Kubernetes service connection type is recommended for AKS?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 39Design and implement build and release pipelines
An Azure Pipelines YAML pipeline builds a Java Maven project. The team wants to run SonarQube code quality analysis as part of the build. Which tasks are required in the correct order?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 40Design and implement build and release pipelines
A team uses Azure Pipelines and wants to restrict which agent capabilities a specific job requires. For example, a compilation job needs an agent with Node.js 18 installed. Which YAML field specifies agent capability requirements?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 41Design and implement build and release pipelines
An Azure Pipelines YAML pipeline is configured to trigger on every commit to any branch except 'release/*' branches. Which trigger configuration achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 42Design and implement build and release pipelines
A team builds and deploys a Python Flask application using Azure Pipelines. They want to package the application as a Docker image and store it in Azure Container Registry. Which YAML pipeline sequence is correct?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 43Design and implement build and release pipelines
A DevOps team uses YAML pipelines and wants to implement a conditional deployment where the pipeline only deploys if the build artifact size is under 100 MB. How is this implemented?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 44Design and implement build and release pipelines
An Azure Pipelines YAML pipeline uses a deployment job with the 'canary' strategy. What are the three lifecycle hooks in a canary deployment strategy?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 45Design and implement build and release pipelines
A team needs to pass outputs from a Build stage to a Deploy stage in a multi-stage YAML pipeline. Which mechanism transfers output variables between stages?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 46Design and implement build and release pipelines
A company stores secrets in Azure Key Vault and wants to use them in a YAML pipeline without linking a variable group. Which pipeline task directly loads Key Vault secrets into pipeline variables?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 47Design and implement build and release pipelines
A team uses Azure Pipelines YAML and wants to create a 'nightly build' that runs at 2 AM UTC daily on the main branch. Which YAML trigger achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 48Design and implement build and release pipelines
A team uses Azure Pipelines and wants their YAML pipeline to fail fast — if any step in any parallel job fails, all other running jobs should be cancelled immediately. Which YAML property controls this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 49Design and implement build and release pipelines
A team's Azure Pipelines YAML pipeline occasionally fails with 'No hosted parallelism' errors during peak hours. The team cannot purchase more parallel jobs. Which configuration reduces the impact of this limitation?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 50Design and implement build and release pipelines
A DevOps team uses YAML multi-stage pipelines and wants a 'changelog' stage that generates release notes from Git commit messages since the last tag. Which approach implements this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz - Question 51Design and implement build and release pipelines
A team's Azure Pipelines YAML pipeline needs to pass a JSON configuration file content as a pipeline variable. The content may contain special characters. Which approach handles this safely?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start AZ-400 Quiz
Key Pipelines Concepts for AZ-400
AZ-400 Pipelines Exam Tips
Azure Pipelines questions in AZ-400 are typically scenario-based. Focus on DevOps process maturity, release strategy, and secure delivery pipelines. Priority concepts: azure pipelines, yaml, multi-stage, template, variable group, service connection.
What AZ-400 Expects
- Anchor your answer in prefer automated, testable, and observable delivery mechanisms across environments.
- Pipelines scenarios for AZ-400 are frequently mapped to Domain 3 (50-55%), so read the objective carefully before picking controls or architecture.
- Expect multi-topic scenarios where Pipelines interacts with identity, networking, governance, or monitoring patterns rather than appearing as an isolated question.
- When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Expert) and vendor best practices.
High-Value Pipelines Concepts
- Know the core Pipelines building blocks cold: azure pipelines, yaml, multi-stage, template.
- Review the edge-case features and limits for variable group, service connection; these details are commonly used to differentiate answer choices.
- Practice service-integration reasoning: how Pipelines pairs with Azure DevOps, GitHub Actions, Release Management in real deployment patterns.
- For AZ-400, explain why the chosen Pipelines design meets reliability, security, and cost expectations better than the alternatives.
Common AZ-400 Traps
- Watch for building pipelines without quality or security gates.
- Questions in Design and Implement Build and Release Pipelines often include distractors that look correct for Pipelines but violate least-privilege, compliance, or availability requirements.
- Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
- If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.
Fast Review Checklist
- Can you compare at least two Pipelines implementation paths and justify which one best fits the scenario?
- Can you map the chosen answer back to Design and Implement Build and Release Pipelines (50-55%) outcomes for AZ-400?
- Can you explain security and access boundaries for Pipelines without relying on default-open assumptions?
- Can you describe how Pipelines integrates with Azure DevOps and GitHub Actions during failure, scaling, and monitoring events?