Microsoft DevOps Engineer Expert (AZ-400) · Section 4 · 13% of the exam
Configure Microsoft Defender for Cloud DevOps Security
One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Develop a security and compliance plan”. Here is what it covers, the points to remember and a question to try.
What it covers
Design a scanning strategy for dependencies, code, secrets, containers and licenses, then implement it with GitHub Advanced Security (GitHub Secret Protection and GitHub Code Security), GitHub Advanced Security for Azure DevOps, Microsoft Defender for Cloud DevOps security and Dependabot.
Points to remember
- Scan families: dependency (SCA), code (SAST), secrets, licenses, containers/IaC; scan on pull requests, on the default branch and on a schedule, and gate merges with required checks.
- GHAS is now GitHub Secret Protection and GitHub Code Security; public repositories get the main features free; Dependabot alerts and updates and the dependency graph are free everywhere.
- CodeQL default setup vs advanced setup (workflow file); use codeql-action v4 (v3 deprecated December 2026); scan in a container by running all steps inside one glibc-based container.
- Dependabot: alerts notify, security updates fix, version updates keep current via dependabot.yml (version 2, package-ecosystem, directory, schedule.interval).
- Dependency review action: fail-on-severity, allow-licenses or deny-licenses (mutually exclusive); needs the dependency graph; Code Security on private repos.
Try a question
A team uses GitHub Advanced Security for Azure DevOps. They want pull requests to the main branch blocked when the change introduces new critical or high severity alerts. Which configuration is required?
- AEnable push protection on the repository and require the Secret Protection product for every contributor in the project
- BAssign the Stakeholder access level to every reviewer of the pull request so scan results gate the merge
- CA build validation policy with the Advanced Security tasks and the AdvancedSecurity/NewHighAndCritical status check
- DTurn on Disable Marketplace tasks in organization settings and require two reviewers on pull requests to main
Show the answer
C. Code and dependency scanning are pipeline-based. Add a build validation policy with the scanning tasks, then add the AdvancedSecurity NewHighAndCritical or AllHighAndCritical status check to the branch policy.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Security and compliance scanning: GitHub Advanced Security, Defender for Cloud and Dependabot teaches this objective (about 60 minutes), and 13 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Choose between Microsoft Entra service principals and managed identities for Azure resources (system-assigned and user-assigned)
- Implement and manage GitHub authentication, including GitHub Apps, GITHUB_TOKEN, and personal access tokens
- Implement and manage Azure DevOps service connections and personal access tokens
- Design and implement permissions and roles in GitHub
- Design and implement permissions and security groups in Azure DevOps
- Recommend appropriate access levels, including stakeholder access in Azure DevOps and outside collaborator access in GitHub
- Configure projects and teams in Azure DevOps
- Implement and manage secrets, keys, and certificates by using Azure Key Vault
- Implement and manage secrets and secretless authentication (for example, workload identity federation/OpenID Connect) in GitHub Actions and Azure Pipelines
- Design and implement a strategy for managing sensitive files during deployment, including Azure Pipelines secure files
- Design pipelines to prevent leakage of sensitive information
- Design a strategy for security and compliance scanning, including dependency, code, secret, and licensing scanning