exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 4 question 78 discussion

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

You use Azure Pipelines pipeline to build and deploy an app named App1.

You need to ensure that before App1 is deployed, all the code for the app passes a security validation by using a custom tool.

What should you do?

  • A. Add a status check to the policies of the branch used by your company's development department.
  • B. Add a status check to the policies of the main branch.
  • C. Add a service hook to the project.
  • D. Limit the job authorization scope to the current project for all the release pipelines.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Dankho
2 days, 21 hours ago
Selected Answer: A
you need to catch vulnerabilities "before" deployment because once it's in PROD with vulnerabilities, you would need to do a rollback. So, performing the tests in TEST environment is more appropriate and cause less headaches of having to rollback.
upvoted 1 times
...
yaguitoEC
1 week, 6 days ago
Selected Answer: B
B is correct, deployment
upvoted 1 times
...
Zangi
1 week, 6 days ago
Selected Answer: A
A is correct answer. Do not listen MrAZ105
upvoted 1 times
...
MrAZ105
1 month, 1 week ago
Selected Answer: B
B is correct
upvoted 1 times
...
UrbanRellik
1 month, 2 weeks ago
Selected Answer: A
Status check on a PR of the feature branch. Once approved, merge to main. Performing a check on the main branch means that it's already been approved and failed the status check after approval.
upvoted 1 times
DaveVentura
1 week, 1 day ago
when you configure the status check in the policies of the main branch it means it is a requirement to complete pull requests to main. not that it checks the main after merge.
upvoted 1 times
...
...
MrAZ105
2 months ago
I would say option A Option B could work but is less ideal because it's applied to the main branch, and security validation should generally be enforced earlier in the development process (e.g., on the feature/development branches) to catch issues before they reach the main branch.
upvoted 2 times
UrbanRellik
1 month, 2 weeks ago
I'm with ya there.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago