Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Design and implement checks and approvals by using YAML-based environments

A worked example

Single answer

In Azure DevOps Services, an environment named Production has a single approval check. The check lists one user, Sam, as the approver and has a Timeout of 4 hours. No other checks are configured.

A YAML pipeline run reaches the stage that deploys to Production. Sam neither approves nor rejects the run during the next 4 hours.

What happens to the stage when the 4 hours have passed?

Choose one answer
Why

The approval check has a Timeout setting that limits how long the stage waits for a decision. If the approver does not complete the approval within that time, Azure Pipelines marks the stage as skipped.

  • Correct: The stage is marked as skipped. When an approval is not completed within the configured Timeout, the stage is marked as skipped.
  • Not correct: The stage starts without the approval. A stage can begin only when all checks on its resources are satisfied. An approval that was never given does not satisfy the check.
  • Not correct: The stage keeps waiting until Sam responds. The Timeout limits how long the approval can stay pending. When it expires without an approval, the stage is marked as skipped.
  • Not correct: The stage is marked as failed. The approval remained pending until the Timeout expired, so the stage is marked as skipped.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free