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 'policy-as-code' in the CI/CD context. Provide a simple example rule (textual) that would prevent merges if a commit contains high-severity SCA findings or secrets, and name two tools that can enforce such rules in pipelines.
Architect an RBAC and tenant isolation model for a shared CI/CD platform serving thousands of developers and hundreds of teams. Address secrets isolation, artifact repository separation, quota enforcement, identity integration (SSO/IdP), and an onboarding workflow that grants least privilege. Explain how to handle cross-tenant shared libraries and operator privileges.
A dependency scanner flags a widely used npm package as containing malicious code. Design a detection and remediation plan covering immediate containment, dependency audit and impact analysis across services, hotfix rollout or dependency replacement, notifying stakeholders and downstream teams, and the long-term supply-chain controls you'd put in place to reduce the odds of a similar compromise recurring.
Describe how to safely integrate DAST scans into CI/CD for services that rely on third-party APIs and internal-only endpoints. Include strategies to avoid flaky results from external partners, protect credentials used by DAST tools, and ensure DAST tests do not cause harmful side effects in production.
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.)
Unlock Full Question Bank
Get access to all 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.