โ† All AZ-400 Flashcard Decks

Development Processes & Continuous Integration Flashcards

7 cards from real AZ-400 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Development Processes & Continuous Integration flashcards as text
  1. A team wants to ensure every pull request to the main branch passes a CI build before it can be completed. Which Azure DevOps feature enforces this?

    Answer: Build validation branch policy

    Build validation branch policies require a specified pipeline to succeed before a pull request targeting that branch can be completed.

  2. You are designing a CI pipeline for a monorepo containing five microservices. You want to build only the services affected by a given commit. What approach achieves this?

    Answer: Use path filters in the pipeline trigger to conditionally run service-specific jobs

    Path filters in Azure Pipelines triggers allow pipelines or specific jobs to run only when files within specified directories have changed.

  3. Which code coverage tool integration is natively supported by the Azure Pipelines 'PublishCodeCoverageResults' task?

    Answer: Cobertura and JaCoCo formats across multiple languages

    The PublishCodeCoverageResults task accepts Cobertura and JaCoCo format XML files, making it compatible with coverage tools across Java, .NET, Python, and JavaScript ecosystems.

  4. A developer introduces a change that causes 15% of existing unit tests to fail. What should the CI pipeline do by default?

    Answer: Fail the pipeline and prevent the build artifact from being published

    By default, test task failures cause the pipeline job to fail, preventing artifact publication and blocking downstream stages that depend on the job.

  5. What is 'shift-left testing' in the context of a CI/CD pipeline?

    Answer: Running security and quality checks earlier in the development lifecycle

    Shift-left testing means running tests and quality checks as early as possible in the development process to catch defects before they propagate downstream.

  6. A pipeline YAML file references a template stored in a different repository. What must be defined to allow this cross-repository template reference?

    Answer: A 'resources.repositories' block declaring the external repository

    The 'resources.repositories' block in YAML declares external repositories that can then be referenced as template sources using the '@repoAlias' syntax.

  7. Which Azure DevOps capability allows you to view the historical trend of test pass rate and build duration over time?

    Answer: Pipeline analytics and reports accessible from the pipeline summary page

    Azure Pipelines provides built-in analytics reports showing trends for test pass rate, pipeline duration, and failure rates directly within the pipeline UI.