โ† All AZ-400 Flashcard Decks

Deployment Patterns 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 Deployment Patterns flashcards as text
  1. A company wants to reduce risk by deploying changes to a small cluster of servers before the full fleet. This pattern is best described as:

    Answer: Canary or ring deployment

    Deploying to a small subset first (canary) or to progressively larger rings limits blast radius before fleet-wide rollout.

  2. In Azure Pipelines, which YAML keyword defines a deployment job that tracks environment history and supports deployment strategies?

    Answer: deployment:

    The 'deployment:' job type in Azure Pipelines YAML links to an environment, records deployment history, and supports strategy blocks like runOnce, rolling, or canary.

  3. What is the purpose of the 'postRouteTraffic' lifecycle hook in an Azure Pipelines canary strategy?

    Answer: To execute steps after canary traffic has been routed, typically for monitoring or validation

    postRouteTraffic runs after traffic is shifted to the canary, allowing teams to run smoke tests or observe metrics before deciding to roll out or roll back.

  4. You are implementing a deployment pipeline for a microservices app. Which practice ensures each service can be deployed independently without breaking consumers?

    Answer: Using consumer-driven contract testing (e.g., Pact) before deployment

    Consumer-driven contract tests verify that a service's API still satisfies its consumers' expectations, enabling safe independent deployments.

  5. An Azure release pipeline's pre-deployment gate queries Application Insights for the exception rate. The gate is configured with a 'Stabilization Time' of 5 minutes. What does this mean?

    Answer: The gate waits 5 minutes after the previous stage finishes before starting evaluation

    Stabilization time is a delay after the stage or trigger before the gate begins its first evaluation, giving the system time to settle.

  6. Which Azure DevOps Environments feature provides a visual audit trail of all deployments to a target resource?

    Answer: Environment deployment history with commit, requester, and duration details

    Azure Pipelines Environments maintain a deployment history per resource, showing which commit was deployed, by whom, and when.

  7. A team wants to use Terraform in their Azure pipeline to implement infrastructure-as-code with drift detection. Which gate or task pattern best detects configuration drift before deployment?

    Answer: Run 'terraform plan' and fail the gate if the plan shows unexpected changes

    Running 'terraform plan' and inspecting output (or using OPA/Sentinel policies on the plan) detects drift and unintended changes before 'apply' is executed.