Quiz: DevSecOps and the Secure Pipeline
A 26-question self-check covering shift-left, the pipeline scans, pipeline integrity, policy as code, and guardrails versus gates. Questions tagged [Sec+] map to CompTIA Security+ objectives and [CISSP] to the (ISC)² CISSP Software Development Security domain. Answers and one-line explanations are at the end; try the whole quiz before checking.
Section 1 — Multiple choice (1 pt each)
1. [Sec+] "Shift left" in DevSecOps means: A. moving servers to the left data center B. moving security activities earlier in the SDLC C. delegating security to the operations team D. running scans only at deployment
2. Which scan answers the question "are we running a known-vulnerable version of a third-party library?" A. SAST B. DAST C. SCA (software composition analysis) D. IaC scanning
3. [Sec+] A scan that analyzes Terraform or CloudFormation files for misconfigurations before the infrastructure is created is: A. DAST B. container image scanning C. IaC scanning D. penetration testing
4. [CISSP] The SolarWinds (Sunburst) attack is best characterized as: A. a phishing campaign B. a stolen-password breach C. a build-pipeline compromise that injected malicious code during compilation D. a ransomware attack
5. A valid digital signature on a software artifact proves: A. the software is free of vulnerabilities B. the software came from the signer and was not altered afterward C. the software passed all tests D. the build server was secure
6. [Sec+] A control built into the environment that makes an unsafe action structurally impossible, without inspecting each case, is a: A. gate B. guardrail C. firewall D. honeypot
7. The densest cluster of automated security gates belongs at which SDLC stage, and why? A. requirements, because it is earliest B. operate, because it is closest to real attacks C. build/CI, because it is automated, controlled, and early-but-complete D. design, because no code exists yet
8. [CISSP] "Policy as code" primarily provides which advantages over a written PDF policy? A. it is longer and more detailed B. it is machine-enforced, versioned, testable, and consistent C. it requires no security team D. it eliminates the need for guardrails
9. Secrets scanning belongs both as a pre-commit hook and a CI gate because: A. two scans are always better than one B. pre-commit hooks are advisory and skippable; the CI gate is the unskippable backstop C. the CI gate is faster D. pre-commit hooks cannot detect secrets
10. [Sec+] Which is an example of provenance in the software supply chain? A. a list of a build's CPU usage B. verifiable metadata attesting which source commit and which builder produced an artifact C. the artifact's file size D. the developer's name in the commit
11. Why is risk modeled by failing the build only on high-severity findings rather than on every finding? A. low-severity findings are never real B. a gate that breaks on everything trains developers to ignore or remove it C. scanners cannot rank severity D. it is required by law
12. [CISSP] Which control would have most directly prevented the SolarWinds injection (as opposed to merely detecting it)? A. antivirus on customer machines B. an isolated, ephemeral build environment with reproducible builds C. a longer password policy D. a bigger firewall
Section 2 — True / False with justification (1 pt each)
For each, mark T or F and give a one-sentence reason.
13. "Because the deploy gate is closest to production, putting all security scans there is the safest design."
14. [Sec+] "Container image scanning is unnecessary if you already do SCA on your application's dependencies."
15. "A guardrail and a gate are the same thing with different names."
16. "If an artifact is signed with the organization's real key, it is safe to deploy."
17. [CISSP] "DevSecOps is a tool you can purchase and install."
18. "Catching a misconfigured S3 bucket with IaC scanning is strictly better than catching it with CSPM, because IaC scanning prevents it from ever being created public."
Section 3 — Fill in the blank (1 pt each)
19. The same defect is far cheaper to fix the earlier it is caught; this principle, which justifies shift-left, is called shift-left __.
20. [Sec+] The property that the software a pipeline produces is exactly what the verified source defines, unaltered from build to deploy, is called pipeline __.
21. A security check embedded in the pipeline that can pass, warn, or fail the build is a security __.
22. In a fail-safe policy-as-code rule, the default decision should be __ (so anything not explicitly allowed is blocked).
23. The mature DevSecOps pattern for resolving the speed-versus-assurance tension is "prefer _, use _ where you must."
Section 4 — Short answer (2 pts each)
24. [CISSP] Explain in two or three sentences why a valid signature is necessary but not sufficient for trusting a build artifact, and name the control that closes the gap SolarWinds exploited.
25. A team adds six security scanners to a pipeline and developers immediately start disabling them. Name three specific changes (from the chapter's "embed without blocking delivery" rules) that would make the gates something developers trust rather than sabotage.
Section 5 — Applied scenario (5 pts)
26. Meridian's pipeline pushes a container to production. The deploy-time policy-as-code check
evaluates: the image is signed; its provenance builder is attacker-laptop (not meridian-ci); it has
one fixable CRITICAL vulnerability; the secrets scan is clean. (a) Walk through which policy conditions
pass and which fail. (b) Should this deploy? State the decision and every reason it is blocked. (c) Which
single failing condition is the SolarWinds defense, and what would it mean if only that condition had
failed?