โ† 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. Your Azure Pipeline YAML uses a self-hosted agent pool. The build fails with 'no agents available.' What is the most likely cause?

    Answer: All agents in the pool are busy or offline

    When no agents are available in a self-hosted pool, the pipeline queues until an agent comes online or becomes free.

  2. What does the 'checkout: self' step do in an Azure Pipelines YAML job?

    Answer: Checks out the repository that contains the pipeline YAML file

    'checkout: self' clones the repository that contains the currently running pipeline YAML, which is the default behavior for most jobs.

  3. A team wants to prevent secrets from being printed in pipeline logs. Which Azure DevOps feature automatically masks secret values in log output?

    Answer: Pipeline variables marked as 'secret'

    Variables marked as secret in Azure Pipelines are automatically masked in log output, preventing accidental exposure.

  4. Which branching strategy minimizes merge conflicts and supports continuous integration most effectively?

    Answer: Trunk-based development with short-lived branches

    Trunk-based development with short-lived branches keeps integration frequent and minimizes divergence, which is the foundation of effective CI.

  5. You want to publish test results from a pytest run so they appear in the Azure Pipelines test reporting UI. Which task should you use?

    Answer: PublishTestResults

    The PublishTestResults task uploads JUnit, NUnit, or other format test result files so they are displayed in the pipeline's Tests tab.

  6. A CI pipeline takes 45 minutes to complete, causing slow feedback. Which optimization should be tried first?

    Answer: Parallelize test execution across multiple agents using matrix or parallel jobs

    Parallelizing tests across agents is the most impactful optimization for long CI pipelines, reducing total time proportional to the number of parallel jobs.

  7. What is the function of the 'dependsOn' keyword in an Azure Pipelines YAML multi-stage pipeline?

    Answer: It defines which stages or jobs must complete before the current one starts

    'dependsOn' establishes execution order between stages or jobs, ensuring prerequisites complete successfully before the dependent stage begins.