exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 12 discussion

Actual exam question from Microsoft's AZ-400
Question #: 12
Topic #: 9
[All AZ-400 Questions]

You have an Azure subscription that contains an Azure pipeline named Pipeline1 and a GitHub repository named Repo1. Repo1 contains Bicep modules. Pipeline1 deploys Azure resources by using the Bicep modules.

You need to ensure that all releases comply with Azure Policy before they are deployed to production.

What should you do?

  • A. To Pipeline1, add a step that runs a What if deployment before the deployment step.
  • B. Configure a deployment gate for Pipeline1 that uses Azure Automation to run a What If deployment.
  • C. Create an Azure DevOps build that runs on the creation of a pull request and assesses the code for compliance.
  • D. Configure a deployment gate for Pipeline1 and include the Azure DevOps Security and compliance assessment task.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pal40sg
Highly Voted 1 year, 8 months ago
Selected Answer: D
Option D is the correct choice because it involves configuring a deployment gate in Azure DevOps Pipeline1 and using the Azure DevOps Security and compliance assessment task as part of the gate. By including this task in the deployment gate, you can assess the resources and configurations against Azure Policy before allowing the deployment to proceed to production. This ensures that all releases comply with Azure Policy before they are deployed to production.
upvoted 5 times
...
Miten94
Most Recent 11 months, 2 weeks ago
Came in Exam June 23, 2024
upvoted 2 times
...
FeriAZ
1 year, 2 months ago
Selected Answer: D
A deployment gate pauses the pipeline until a specific condition is met. In this case, the condition would be successful completion of the Azure DevOps Security and compliance assessment task, which can be configured to enforce Azure Policy checks.
upvoted 2 times
...
vsvaid
1 year, 5 months ago
Selected Answer: D
Correct answer
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...