Secure Software Delivery: DevSecOps, Pipeline, and Supply Chain Security Questions
Embedding security into how software is built, assembled from dependencies, and shipped. Covers shift-left and secure-SDLC practices, infrastructure-as-code security, CI/CD pipeline and secrets management, integrating security scanning into build and deploy, and configuration and secret management across environments, together with software supply chain security: software composition analysis (SCA), dependency and open-source vulnerability management, build-provenance and artifact integrity, and mitigating supply-chain attack vectors. The 'secure the delivery pipeline and everything it pulls in' discipline, distinct from vendor-risk governance.
Explain how you would assess third-party dependencies and supply-chain risk for an application. Cover creation and use of an SBOM, static and dynamic SCA tools, version pinning, dependency update policies, and how to handle transitive dependencies or private packages in CI/CD.
Write an OPA (Rego) policy snippet that enforces two Kubernetes admission rules: 1) container images must come from registries 'mycompany.registry/' or 'gcr.io/mycompany/', and 2) containers must not be allowed to run as root (either securityContext.runAsNonRoot == true or securityContext.runAsUser != 0). Include brief comments explaining your logic. (Assume input is the Kubernetes admission review JSON.)
Write a Python function that consumes a SARIF (Static Analysis Results Interchange Format) JSON file and returns a filtered SARIF JSON containing only results whose severity equals 'error' or 'high' and that are not suppressed by any id in a provided list of suppress-rule-ids. Preserve the 'runs' array and tool metadata. Include brief comments explaining key steps. (No need to handle streaming; focus on correct SARIF structure transformation.)
Describe the common ways secrets accidentally end up in Git history or CI artifacts. For each leakage vector, provide two concrete preventive controls you would implement (tooling, process, or policy) to stop that class of leak.
In the context of CI/CD, explain the difference between 'secrets' and general configuration values. Provide concrete examples of each, describe why secrets require special handling, and list three practical controls you would apply in a pipeline to protect secrets from accidental exposure.
Unlock Full Question Bank
Get access to all 24 Secure Software Delivery: DevSecOps, Pipeline, and Supply Chain Security interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.