How would you secure the software supply chain from source code to a running container in production?
What the interviewer wants to hear
- Protect source: branch protection, reviews, signed commits
- Hardened, isolated and ephemeral build runners
- Dependency and image scanning; pinned versions and digests
- SBOMs, provenance (SLSA) and image signing with Sigstore
- Admission control verifying signatures and policies at deploy time
Model answer
I think of each step as something an attacker could tamper with. For source, I use branch protection, required reviews, CODEOWNERS and secret scanning. Builds run on ephemeral, isolated runners with least-privilege tokens, and third-party actions and base images are pinned by commit SHA or digest. Dependencies are scanned, and tools like Renovate keep them updated in small steps. The pipeline generates an SBOM and build provenance following SLSA, and signs the image with Sigstore cosign, ideally keyless with OIDC identity. The image is pushed by digest to a registry with tag immutability. At deploy time, an admission controller such as Kyverno or Sigstore policy-controller only allows images that are signed by our pipeline, have provenance, and pass vulnerability policy. In production, runtime security and regular rescanning catch new CVEs in old images.
Can you answer it under time pressure?
Take a timed hard round and get scored on every answer.
More hard DevOps Engineer questions
- You are asked to build an internal platform so 30 product teams can deploy services to Kubernetes on their own. How would you design it?
- Your company wants to run a critical service active-active in two cloud regions. What are the main DevOps challenges and how would you handle them?
- Your DORA metrics show a 30% change failure rate and long recovery times. How would you bring them down without slowing teams down?
- How do you plan and carry out a Kubernetes version upgrade for production clusters with minimal risk?
- Leadership asks you to cut the cloud bill for your Kubernetes platform by 30 percent without hurting reliability. How do you approach it?
- You are the incident commander for a major outage affecting all customers. Describe how you run the incident from first page to postmortem.
- Design CI/CD for a monorepo with 60 services and 200 engineers where full builds take over an hour.
- Design a disaster recovery plan for a platform whose business requires an RTO of 1 hour and an RPO of 5 minutes for the loss of a whole cloud region.
- Several teams will share one Kubernetes cluster. How would you isolate tenants and secure the cluster?