Designing and Implementing Microsoft DevOps Solutions | Exam AZ-400

Approvals and Timeouts in DevOps Solutions

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an approval process that contains a condition. The condition requires that releases be approved by a team leader before they are deployed.

You have a policy stating that approvals must occur within eight hours.

You discover that deployment fail if the approvals take longer than two hours.

You need to ensure that the deployments only fail if the approvals take longer than eight hours.

Solution: From Post-deployment conditions, you modify the Timeout setting for post-deployment approvals.

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B

Use Pre-deployments conditions instead.

Use a gate instead of an approval instead.

https://docs.microsoft.com/en-us/azure/devops/pipelines/release/approvals/gates

The proposed solution, which is modifying the Timeout setting for post-deployment approvals, does not meet the goal as stated in the scenario. The solution would ensure that deployments fail only if the approvals take longer than the modified timeout duration, but the goal is to ensure that deployments fail only if the approvals take longer than eight hours, which is the policy requirement.

To meet the goal, you need to modify the approval process condition to include a time-out duration of eight hours. This ensures that the release is not deployed until it is approved within the policy-specified time of eight hours, and if the approvals take longer than that, the deployment fails.

Alternatively, you can also modify the policy to allow a longer time for approvals, such as changing the policy to require approvals within twelve hours instead of eight hours. This would allow more time for approvals and prevent deployment failures due to approvals taking longer than expected.

In summary, the proposed solution does not meet the goal, and you need to modify either the approval process condition or the policy to ensure that deployments only fail if the approvals take longer than eight hours.