CertLumen

Microsoft DevOps Engineer Expert (AZ-400) · Section 4 · 13% of the exam

Configure GitHub Advanced Security for GitHub and GitHub Advanced Security for Azure DevOps

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 build requires a specific toolchain that exists only in a Docker image. A team must run CodeQL code scanning for the project in GitHub Actions. How should the job be configured?

  1. ARun CodeQL init on the host runner and the build in a separate docker run command
  2. BUse an Alpine-based image because it is small and fast to pull on hosted runners
  3. CScan the final image with CodeQL instead of the source code of the application
  4. DRun every step, including init, build and analyze, in the job container
Show the answer

D. CodeQL has to observe the build, so run init, the build and analyze inside the same container. Choose a glibc-based image with Git installed.

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

← Previous objective · All 86 objectives · Next objective →