Designing and Implementing Microsoft DevOps Solutions — Question 69
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?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A because adding a status check to the branch policies used by the development department ensures that all code must pass security validations before merging changes. Options B and C do not specifically enforce this validation for the development branch, and D relates to job scope rather than code validation.