MicrosoftProfessional levelAZ-400Page 3 of 4

AZ-400 exam dumps: questions 201 to 300 of 306

Page 3 of the free AZ-400 question bank for the Designing and Implementing Microsoft DevOps Solutions exam. Questions 201 to 300 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated May 2025

Free AZ-400 practice questions

Questions 201 to 205 of 306

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

AZ-400 Question 201

Select 2

Your organization is experiencing intermittent failures in several Azure DevOps pipelines due to environment inconsistencies and outdated pipeline definitions. You have been tasked with maintaining these build and release pipelines to ensure reliability and reduce downtime. Which two actions should you implement to improve pipeline maintainability and minimize failures?

  1. A

    Store pipeline definitions in version control (e.g., YAML) and reference them from your repository

  2. B

    Use ephemeral build agents or containers to ensure a clean environment for each pipeline run

  3. C

    Hardcode environment variables in the script to avoid external file dependencies

  4. D

    Configure personal access tokens (PATs) with indefinite expiration to eliminate frequent renewals

Show answer and explanation

Correct answers: A, B

Explanation

Maintaining a reliable and secure pipeline includes adopting methods that ensure consistent builds and secure credentials management. According to Microsoft� recommended DevOps practices, version-controlling pipeline definitions (via YAML) promotes better collaboration and rollback capabilities. Similarly, employing ephemeral build agents avoids persistent environment state issues, which are a common source of pipeline failures. References: Microsoft Docs on YAML pipelines (https://docs.microsoft.com/azure/devops/pipelines/yaml-pipeline-design) and agent management best practices (https://docs.microsoft.com/azure/devops/pipelines/agents/hosted).

  • A. Correct.

    Storing your pipeline definitions in version control as YAML helps maintain a history of changes and makes rolling back to a previous known-good configuration simpler. This approach also aligns with best practices for Infrastructure as Code (IaC).

  • B. Correct.

    Using ephemeral build agents (or containers) ensures that each pipeline run starts with a predictable and pristine environment, minimizing the likelihood of inconsistencies and environment drift.

  • C. Incorrect.

    Hardcoding environment variables within the pipeline script reduces flexibility and maintainability. Changes in one environment would force updates to the script itself, risking errors and breaking best practices.

  • D. Incorrect.

    Configuring long-lived or indefinite PATs is a security risk and falls short of Microsoft� best practices. Tokens should be renewed periodically to reduce the attack vector and ensure compliance with organizational security policies.

AZ-400 Question 202

Select 3

Your team has noticed an increase in pipeline failures in Azure DevOps, and some tests that fail sporadically pass on rerun, indicating possible flaky tests. You want to monitor overall pipeline health by tracking failure rate, average duration, and identifying flaky tests so you can take appropriate remediation steps. Which of the following actions or features should you implement to effectively address these monitoring needs?

  1. A

    Set up Azure DevOps Dashboards to track build success/failure rates, average duration, and test results across multiple runs in near real time.

  2. B

    Enable parallelization for all test runs and ignore inconsistently failing tests unless they block a release.

  3. C

    Implement a process to rerun failed tests automatically and flag them as flaky if they succeed on rerun, recording this status in the pipeline summary.

  4. D

    Disable all tests that have failed more than once in the last week to reduce pipeline run duration until the issue is identified.

  5. E

    Use the built-in Test Flakiness analytics in Azure DevOps to track how often individual tests fail or succeed across multiple pipeline runs.

Show answer and explanation

Correct answers: A, C, E

Explanation

Monitoring pipeline health effectively involves observing build success/failure rates, tracking average duration, and detecting flaky tests for targeted remediation. Azure DevOps Dashboards, test rerun mechanisms, and built-in flaky test analytics help teams gain visibility into pipeline quality and stability. For more information, refer to Microsoft� documentation on flaky test management in Azure DevOps.

  • A. Correct.

    Option 1 is correct. Azure DevOps Dashboards can aggregate build and test metrics (including success/failure rates and durations) for each pipeline run, allowing you to monitor trends and quickly spot issues.

  • B. Incorrect.

    Option 2 is incorrect. Simply enabling parallelization without addressing flaky tests could mask underlying issues. Parallel tests may finish faster, but ignoring inconsistent failures likely leads to undiscovered or unresolved test problems.

  • C. Correct.

    Option 3 is correct. Automatically rerunning failed tests is a common method to identify flakes. If a test passes on a second attempt, it may be flaky. This process logs additional context, making it easier to diagnose and fix.

  • D. Incorrect.

    Option 4 is incorrect. Disabling suspect tests outright reduces coverage. While it might speed up builds, it does not provide insight into underlying failures and can introduce risk by ignoring potential regressions.

  • E. Correct.

    Option 5 is correct. Azure DevOps offers test analytics that can identify flaky tests by tracking pass/fail sequences over time. Leveraging these insights helps pinpoint problematic tests more quickly.

AZ-400 Question 203

Select 2

You manage an Azure DevOps pipeline that runs multiple stages of tests (unit, integration, and UI). Recently, your team has observed intermittent test failures, which sometimes pass on re-runs, indicating flaky tests. Moreover, the pipeline duration has been steadily increasing over the last few weeks, suggesting potential performance bottlenecks. You want to establish a comprehensive strategy to monitor your pipeline health, focusing on identifying flaky tests, tracking failure rate, and measuring overall pipeline duration. Which two actions should you take to effectively monitor and address these issues?

  1. A

    Enable the built-in test analytics in Azure DevOps and examine pass/fail trends to diagnose potential flaky tests.

  2. B

    Configure Azure DevOps� Flaky Test Management feature to automatically identify and categorize tests prone to intermittent failures.

  3. C

    Reduce the pipeline runs to once per month to limit the impact of flaky tests and performance issues.

  4. D

    Integrate a script that forcibly retries every test until it passes to minimize pipeline failures.

  5. E

    Reject all pull requests on the first sign of test failure without any further investigation.

Show answer and explanation

Correct answers: A, B

Explanation

To effectively monitor pipeline health in Azure DevOps, it is essential to use actionable analytics and flaky test detection features. Analyzing pass/fail trends highlights issues in both code quality and pipeline performance. The Flaky Test Management feature isolates tests that fail sporadically, enabling targeted remediation. For more details, refer to Microsoft� official documentation on Azure DevOps Test Analytics and Flaky Test Management at https://learn.microsoft.com/azure/devops/pipelines/test/test-reporting.

  • A. Correct.

    Option 1 is correct. Azure DevOps provides built-in test analytics features, including pass/fail trend charts, which help identify patterns in test failures over time. Monitoring these trends can highlight tests that intermittently fail or tasks that contribute to increased pipeline duration.

  • B. Correct.

    Option 2 is correct. Azure DevOps includes a Flaky Test Management feature that automatically flags tests with inconsistent results. By tracking how often specific tests fail and then pass without changes, this feature aids in identifying and addressing flaky tests.

  • C. Incorrect.

    Option 3 is incorrect. Reducing the frequency of runs does not solve the underlying issue of flaky tests or increased duration. Instead, it delays gathering valuable data and complicates troubleshooting because of less frequent feedback.

  • D. Incorrect.

    Option 4 is incorrect. Repeatedly retrying all tests until they pass masks real issues and inflates pipeline duration. This approach fails to distinguish genuinely flaky tests from actual code defects and undermines confidence in test results.

  • E. Incorrect.

    Option 5 is incorrect. Automatically rejecting pull requests on the first sign of a test failure does not help you identify flakiness or address the root cause. It also risks halting development activities and frustrating contributors without clear diagnostics.

AZ-400 Question 204

Select 2

You manage an Azure DevOps pipeline that has a high failure rate, takes longer than expected to complete, and includes multiple tests that pass or fail inconsistently across different runs. Which two actions can help you monitor and improve the pipeline� reliability over time?

  1. A

    Implement pipeline dashboards in Azure DevOps to visualize overall build duration trends, pass/fail rates, and regularly review analytics for signs of flaky tests.

  2. B

    Leverage Flaky Test Management features in Azure Test Plans (or supported extensions) to identify and track intermittent test failures, then prioritize fixes.

  3. C

    Completely remove all integration tests from the pipeline to reduce the chance of test-related failures and accelerate build times.

  4. D

    Disable all code coverage checks to avoid failing the pipeline when coverage thresholds are not met, thereby reducing overall failure rates.

Show answer and explanation

Correct answers: A, B

Explanation

Monitoring pipeline health in Azure DevOps involves tracking build duration, identifying intermittent or flaky tests, and understanding overall failure trends to improve reliability. Dashboards and analytics provide visual insights into pipeline behavior, while tooling for flaky test detection helps isolate and resolve unreliable tests. For additional guidance, refer to Microsoft documentation on monitoring build pipelines and managing flaky tests at https://learn.microsoft.com/azure/devops.

  • A. Correct.

    Explanation for Option 1: Implementing pipeline dashboards and analytics is a recommended approach. Dashboards help you track trends, duration, and failure rates over time, making it easier to isolate when failures spike or when runs take longer. This data can pinpoint performance bottlenecks and guide targeted improvements.

  • B. Correct.

    Explanation for Option 2: Leveraging Flaky Test Management (or extensions that detect intermittent test failures) is key to improving reliability. Identifying tests that fail sporadically saves time spent debugging inconsistent issues, and fixing these tests contributes significantly to stabilizing builds.

  • C. Incorrect.

    Explanation for Option 3: Removing all integration tests might reduce pipeline time, but it also removes a critical layer of quality checks. This approach might temporarily lower failures, but it does not address the underlying causes of flaky or failing tests and compromises overall product quality.

  • D. Incorrect.

    Explanation for Option 4: Disabling coverage checks may reduce the number of failures, but it doesn't address instability or flakiness. Code coverage is an important metric for ensuring comprehensive testing. Removing it eliminates a key indicator of test quality without solving underlying test reliability issues.

AZ-400 Question 205

Single answer

You are a DevOps Engineer for a SaaS solution deployed on Azure Kubernetes Service (AKS). Your build pipeline runs on a self-hosted agent and automatically triggers on every commit to both the main and feature branches. One significant bottleneck is dependency restoration for each microservice, which consumes about 40% of the total pipeline time. The CFO has expressed concerns over escalating infrastructure costs, and developers report intermittent build failures that disrupt their workflows. Which action should you take first to reduce build time and costs while maintaining reliability?

  1. A

    Configure separate pipelines for each microservice so that they all run in parallel on multiple large agents.

  2. B

    Enable a pipeline cache for common dependencies and implement incremental builds to skip rebuilding unchanged microservices.

  3. C

    Reduce the build frequency by triggering runs only once a day on the main branch and disabling PR validation builds.

  4. D

    Increase the size of the self-hosted agent to leverage more CPU and memory for faster overall execution.

Show answer and explanation

Correct answer: B

Explanation

Implementing a pipeline cache for common dependencies and using incremental builds are key methods to optimize cost, time, performance, and reliability. These practices reduce redundant work, shorten build times, and help avoid intermittent failures caused by unnecessary tasks. For more details, refer to Microsoft� official documentation on Azure Pipelines caching best practices.

  • A. Incorrect.

    Option 1 is incorrect because running multiple pipelines in parallel on large agents may speed up some builds, but it can also significantly increase infrastructure costs. It doesn't address the underlying dependency restoration bottleneck.

  • B. Correct.

    Option 2 is correct. Enabling pipeline caching and using incremental builds can reduce the time spent restoring dependencies across microservices. By only rebuilding services that have changed, you save on both build time and associated costs. This also helps maintain reliability by minimizing redundant tasks.

  • C. Incorrect.

    Option 3 is incorrect because limiting builds to once a day can reduce costs, but it risks merging broken changes into the main branch, which can lead to bigger failures later. It also doesn't directly address the dependency restoration bottleneck or intermittent failures.

  • D. Incorrect.

    Option 4 is incorrect. Simply increasing agent size does not solve the fundamental issue of repeated dependency fetching and doesn�t necessarily improve reliability. It might reduce build time slightly, but it also increases hosting costs without addressing the core bottleneck.

Timed practice exam

Take a AZ-400 practice test under exam conditions

70 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

AZ-400 practice questions 201 to 300 of 306

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 4 pages of up to 100 questions.

  1. 201.Your organization is experiencing intermittent failures in several Azure DevOps pipelines due to environment...
  2. 202.Your team has noticed an increase in pipeline failures in Azure DevOps, and some tests that fail sporadically...
  3. 203.You manage an Azure DevOps pipeline that runs multiple stages of tests (unit, integration, and UI). Recently,...
  4. 204.You manage an Azure DevOps pipeline that has a high failure rate, takes longer than expected to complete, and...
  5. 205.You are a DevOps Engineer for a SaaS solution deployed on Azure Kubernetes Service (AKS). Your build pipeline...
  6. 206.You manage an Azure Pipelines setup for a complex microservices application that builds and tests multiple...
  7. 207.You are leading a DevOps initiative at an organization that uses Azure Pipelines to build and deploy a...
  8. 208.Your organization uses Azure DevOps Pipelines to support continuous integration and frequent code pushes. You...
  9. 209.You manage a set of microservices that each trigger separate CI pipelines in Azure DevOps. Over the past few...
  10. 210.You are a DevOps engineer for a company that has multiple Azure DevOps pipelines running concurrently. While...
  11. 211.Your organization uses Azure Pipelines to build and deploy several microservices. Most pipeline artifacts...
  12. 212.Your organization uses Azure DevOps to build and deploy an application across multiple environments. The...
  13. 213.You are working for a fintech company that uses Azure DevOps to build and release several microservices. Some...
  14. 214.You have a classic build pipeline in Azure DevOps that compiles a .NET application, runs unit tests, and...
  15. 215.Your organization currently uses a classic pipeline to build and deploy a containerized Node.js application...
  16. 216.You have a classic build pipeline in Azure DevOps that runs on merges to the main branch, uses multiple...
  17. 217.You are designing an Azure DevOps pipeline to deploy an application to an Azure Kubernetes Service (AKS)...
  18. 218.You have a multi-stage Azure DevOps pipeline that deploys a web application to Azure. The pipeline needs to...
  19. 219.Your organization is setting up a new Azure DevOps pipeline to deploy multiple microservices to Azure. The...
  20. 220.You are creating an Azure DevOps pipeline that needs to deploy resources to multiple subscriptions and...
  21. 221.You have an Azure DevOps pipeline that executes on a self-hosted agent running on an Azure VM. The pipeline...
  22. 222.You manage an Azure DevOps pipeline that deploys a web application to Azure App Service across multiple...
  23. 223.Your DevOps team is developing a CI/CD pipeline in GitHub Actions that needs to download dependencies from a...
  24. 224.You are configuring a GitHub Actions workflow that needs to update repositories across multiple GitHub...
  25. 225.Your organization hosts a private GitHub repository and uses Azure DevOps pipelines for CI/CD. You need the...
  26. 226.Your team uses Azure DevOps pipelines to build and deploy applications from a private GitHub repository....
  27. 227.You manage an Azure DevOps project that deploys resources into an Azure production subscription. You want to...
  28. 228.An engineering team is setting up an Azure DevOps pipeline to deploy containerized applications to an Azure...
  29. 229.You are configuring permissions for a new DevOps engineer in your GitHub repository. This engineer�...
  30. 230.You are the DevOps lead for a team using a private repository in GitHub. A new developer needs to commit...
  31. 231.Your DevOps team is collaborating on a public GitHub repository and needs certain contributors to only review...
  32. 232.You manage an Azure DevOps environment for an organization that utilizes an external QA team. The QA team...
  33. 233.You are setting up an Azure DevOps project with three functional teams: QA, Dev, and Build Management. The QA...
  34. 234.Your organization is consolidating several teams into a single project in Azure DevOps. You want only DevOps...
  35. 235.Your organization has an Azure DevOps project and multiple private GitHub repositories. The marketing team...
  36. 236.Your organization hosts a private GitHub repository for source code and uses Azure DevOps to manage work...
  37. 237.You have two new team members: a non-technical stakeholder who needs to view project status and work items in...
  38. 238.You are tasked with setting up a new Azure DevOps environment for a large software development initiative....
  39. 239.You manage a single Azure DevOps project that hosts multiple product teams. Each team wants to maintain its...
  40. 240.You are setting up a single Azure DevOps project for your organization, which is divided into multiple teams....
  41. 241.Your development team is configuring an Azure DevOps pipeline that deploys a containerized application to...
  42. 242.You are designing a new Azure DevOps pipeline to automate deployments for multiple teams. These deployments...
  43. 243.Your development team is creating an Azure DevOps pipeline that automates deployment of a microservices...
  44. 244.You are configuring an Azure DevOps pipeline for a new .NET web application that stores its database...
  45. 245.Your development team uses an Azure DevOps pipeline to build and deploy an ASP.NET Core application to an...
  46. 246.You have an Azure DevOps pipeline that needs to retrieve application secrets stored in Azure Key Vault at...
  47. 247.You maintain a multi-stage Azure DevOps pipeline for a .NET application that needs secure credentials (for...
  48. 248.Your organization needs to store and use an Azure Storage account key for application deployments. The...
  49. 249.Your team is building a Node.js application with continuous integration in both GitHub Actions and Azure...
  50. 250.Your organization needs to securely store and use an SSL certificate during an Azure Pipelines build and...
  51. 251.You are configuring an Azure DevOps pipeline to deploy an application that relies on a private PFX...
  52. 252.You are a DevOps engineer for a company that needs to deploy a microservice to production. The microservice...
  53. 253.You are designing an Azure DevOps build pipeline for a web application that must securely handle database...
  54. 254.You are creating a new CI/CD pipeline in Azure DevOps for a web application that connects to a secured...
  55. 255.You are designing an Azure DevOps pipeline that requires storing database connection strings for integration...
  56. 256.You are responsible for a microservices application whose container images are stored in Azure Container...
  57. 257.You are a DevOps engineer at a company developing containerized microservices for deployment to Azure...
  58. 258.Your organization produces containerized applications for a specialized finance platform, which are stored in...
  59. 259.You are designing a CI/CD pipeline in Azure DevOps for a microservices solution. The application relies on...
  60. 260.Your organization is building a new microservices application in Azure DevOps using multiple open-source...
  61. 261.Your organization is rolling out a new microservices application hosted in Azure Repos. To comply with...
  62. 262.Your organization stores Terraform templates in Azure DevOps and ARM templates in a GitHub repository for...
  63. 263.Your organization has an Azure DevOps pipeline that builds and pushes container images to Azure Container...
  64. 264.You are a DevOps engineer at a company that wants to integrate Microsoft Defender for Cloud DevOps Security...
  65. 265.You work for a company that stores some code in GitHub and other code in Azure DevOps. Your team recently...
  66. 266.Your organization uses GitHub Enterprise for several repositories and Azure DevOps for additional projects....
  67. 267.You are a DevOps engineer at a company that maintains repositories in both GitHub and Azure DevOps. Your...
  68. 268.Your company hosts its source code in GitHub and utilizes GitHub Advanced Security features (such as code...
  69. 269.You lead a DevOps team for a large enterprise using GitHub Advanced Security to scan code. The security...
  70. 270.You are a DevOps engineer for a company using GitHub Advanced Security for code scanning and Azure for...
  71. 271.You have a microservices application stored in a GitHub repository. You need to build container images using...
  72. 272.You manage a GitHub repository that hosts a Dockerized .NET Core application. The organization requires that...
  73. 273.You are tasked with setting up automated scanning for container images and configuring CodeQL analysis in a...
  74. 274.You are developing a microservices application that relies heavily on open-source libraries. Your project is...
  75. 275.You maintain a .NET project in a private GitHub repository that relies heavily on both internal and...
  76. 276.Your development team maintains several GitHub repositories that rely on open-source libraries. You want to...
  77. 277.You are a DevOps engineer for a retail company that hosts its e-commerce application in an Azure Kubernetes...
  78. 278.You are responsible for monitoring containerized applications running on an Azure Kubernetes Service (AKS)...
  79. 279.You are a DevOps engineer responsible for monitoring a new microservices-based solution running on Azure...
  80. 280.You have an Azure Kubernetes Service (AKS) environment configured to send performance data and container logs...
  81. 281.You administer an Azure environment where critical application logs are ingested into a Log Analytics...
  82. 282.You are tasked with enabling detailed monitoring for your organization's Azure DevOps build pipelines using...
  83. 283.You are tasked with configuring telemetry for a microservices application deployed across multiple Azure...
  84. 284.You are implementing a new microservices-based solution in Azure. Your environment includes an AKS cluster to...
  85. 285.You are a DevOps engineer for an organization that hosts a microservices-based application in Azure. You have...
  86. 286.You oversee a private GitHub repository for a microservices project. The leadership team has asked you to...
  87. 287.You are a DevOps engineer managing multiple repositories in an organization on GitHub. Your team lead...
  88. 288.You maintain a private GitHub repository for a team project. You want to monitor commit frequency, pull...
  89. 289.Your organization manages two projects: one uses GitHub Actions for CI/CD workflows, and the other uses Azure...
  90. 290.Your company uses GitHub Actions to run unit tests and Azure Pipelines to build and deploy a .NET...
  91. 291.You are managing a GitHub repository that hosts your application source code and uses Azure Pipelines for...
  92. 292.You are a DevOps engineer for a company running a container-based application on Azure Kubernetes Service...
  93. 293.You are managing a microservices-based application running on Azure Kubernetes Service (AKS). Each...
  94. 294.You manage an Azure-based microservices architecture with multiple APIs and background jobs. The system is...
  95. 295.Your DevOps team is investigating intermittent performance degradation in a production web application...
  96. 296.You manage a production environment of ten Linux-based Azure VMs running an internal web application. The...
  97. 297.You are a DevOps engineer responsible for diagnosing recurring performance bottlenecks in a multi-tier...
  98. 298.Your DevOps team has deployed a microservices-based web application to Azure. Recently, you have observed...
  99. 299.You have a .NET web application hosted on Azure App Service with Application Insights enabled. The team...
  100. 300.Your DevOps team manages a microservices-based application running on Azure Kubernetes Service (AKS). You...