AZ-400 ยท Security and compliance scanning
Scanning strategy: dependency, code, secret, license
SCA, SAST, DAST, secret scanning and licensing/compliance scanning, where in the pipeline each runs, shift-left, blocking vs informing, tools such as CodeQL, Dependabot, Defender for Cloud.
Key points
- SAST: reads source code without running it (CodeQL).
- SCA: open-source dependencies, known vulnerabilities and licenses (Dependabot, dependency review).
- DAST: probes a running app from outside.
- Secret scanning: credentials in code and history.
- Shift left: cheap scans early (commit, pull request), heavier later.
- Start informing, then block merges on high severity once noise is tuned.
Practice questions
Which kind of scan analyzes source code for flaws without executing the application?
- DAST
- SAST
- Penetration testing of production
- Load testing
Show answer
Answer: B. SAST
SAST is static analysis of code. DAST needs a running app, SCA inspects third-party packages, and secret scanning looks for credentials.
Which measures are examples of shifting security left?
- Running code scanning on every pull request
- Checking for secrets before a commit is pushed
- Running DAST only against production once a week
- Reviewing dependency changes in the pull request
- Scheduling one external audit per year
Show answer
Answer: A. Running code scanning on every pull request, B. Checking for secrets before a commit is pushed, D. Reviewing dependency changes in the pull request
Shift left means catching issues at commit and pull request time. Weekly production-only tests and yearly audits happen too late to be cheap to fix.
True or false: secret scanning alerts and push protection do the same thing, because both stop a secret from reaching the repository.
Show answer
Answer: False
False. Alerts report a secret after it has been pushed. Push protection acts before the push completes, so the secret never enters history.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
