INTERVIEW PREP
Interview questions
570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.
Showing 391–405 of 490 questions
391.What is an SBOM and why keep one for each release?MidDevSecOps
A Software Bill of Materials lists the components in a build. When a new vulnerability such as Log4Shell appears, you can search your SBOMs and know which products are affected within minutes.
392.Why scan the lock file for dependencies?MidDevSecOps
The lock file shows the exact versions in use, including transitive dependencies. Scanning only the manifest can miss libraries that your libraries pull in.
393.How do you make a container image more secure?MidDevSecOps
Use a small base image and a multi-stage build, run as a non-root user, keep secrets out, pin the base by digest, scan in CI and in the registry, and rebuild often.
394.Why scan a Terraform plan in addition to the code?MidDevSecOps
Variables and modules can change the final values. The plan JSON shows what will really be created, so checks are more accurate.
395.Why use OIDC for CI instead of stored cloud keys?MidDevSecOps
The pipeline gets a short-lived token by proving its identity, so there is no long-lived secret to leak or rotate. The cloud trust rule should limit access to specific repositories and branches.
396.What is script injection in a CI workflow?MidDevSecOps
It happens when untrusted text, such as a pull request title, is pasted directly into a shell command and runs as code. Pass the value through an environment variable instead.
397.What does a default-deny NetworkPolicy do, and what does it need?MidDevSecOps
It blocks all traffic to or from pods until rules allow it. It needs a network plugin that enforces policies, such as Calico or Cilium, or it does nothing.
398.Why must DAST active scans avoid production?MidDevSecOps
Active scans send attack traffic that can create bad data, lock accounts or crash the service. Scan a staging copy with test data and written permission.
399.What is the difference between a Veracode Pipeline Scan and a policy scan?MidDevSecOps
Pipeline Scan is a fast static scan for merge requests that gives feedback in minutes but doesn't count for compliance. A policy scan is the full scan of a release build that decides pass or fail against the company's security policy.
400.What does Twistlock (Prisma Cloud Compute) do?MidDevSecOps
It secures containers end to end: twistcli scans images in CI, it rescans registries for new CVEs, admission control can block risky Pods, and Defenders on each node check compliance and watch running containers for unusual behavior.
401.What is BOLA and how do you prevent it?SeniorDevSecOps
Broken object level authorization: the API checks that the user is logged in but not that they own the requested object. Check object ownership on the server for every request and test with two users.
402.How do Kyverno and OPA Gatekeeper differ?SeniorDevSecOps
Kyverno policies are Kubernetes-style YAML and suit Kubernetes-only teams. Gatekeeper uses Rego, which is more powerful and shared with OPA used elsewhere, but it takes longer to learn.
403.How would you roll out an admission policy safely?SeniorDevSecOps
Start in audit mode and read the reports, fix or add time-limited exceptions, test the policy in CI, then enforce namespace by namespace.
404.Explain signing and verifying images.SeniorDevSecOps
A pipeline signs an image digest with a tool such as cosign, often keyless with its OIDC identity. At deploy time, an admission policy verifies the signature and identity. Without verification, signing gives no protection.
405.What does Falco do and how do you manage noise?SeniorDevSecOps
Falco watches system calls and applies rules to detect behavior such as a shell in a container. Tune it with exceptions, keep custom rules in Git, route alerts to people, and automate responses only when you trust the rules.