Skip to content
$ lynuxpro

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 166–180 of 217 questions

166.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.

167.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.

168.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.

169.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.

170.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.

171.What is workload identity?SeniorDevSecOps

A platform-issued, short-lived identity for software such as pods and CI jobs, replacing stored keys. Examples are IRSA, Azure Workload Identity and Google Workload Identity Federation.

172.How do you prioritize vulnerabilities beyond CVSS?SeniorDevSecOps

Consider known exploitation (CISA KEV), EPSS, internet exposure, whether the vulnerable code is reachable, what data or access is at stake, and whether a fix exists.

173.How should accepted risks be handled?SeniorDevSecOps

Each needs an owner, a written reason and an expiry date, so it is reviewed again and does not live forever.

174.A scanner reports 300 vulnerabilities in an old image. How do you handle it?SeniorDevSecOps

Don't block everything at once. Fix by risk: critical and high with a fix available first, especially if reachable or internet-facing. Rebuild on a fresh, smaller base image (which often removes most findings), baseline the rest with owners and due dates, and block only new critical/high findings in CI.

175.What is SLSA?SeniorDevSecOps

Supply-chain Levels for Software Artifacts. It defines levels of build trust, from having provenance (L1), to a hosted build service signing it (L2), to a hardened, isolated build that is hard to forge (L3).

176.What is the difference between compliance and security?SeniorDevSecOps

Compliance proves you meet a set of rules and is a minimum bar. Security is the real protection. You can pass an audit and still have weaknesses, so automate checks and aim beyond the framework.

177.Walk through responding to a leaked cloud access key.SeniorDevSecOps

Disable the key at once (do not delete it yet), review audit logs for what it did, contain affected resources, snapshot evidence, rebuild affected systems clean, rotate other exposed secrets, find the root cause, and hold a blameless review.

178.Why store audit logs in a separate account?SeniorDevSecOps

An attacker who controls the main account can erase local logs. A separate, write-protected account keeps trustworthy evidence.

179.How do you stop on-call from burning people out?SeniorSRE Practices

Keep a rotation of enough people, limit pages per shift, delete or fix noisy alerts, write runbooks, protect sleep, give time off after hard nights, and review the pages weekly.

180.How do you plan capacity?SeniorSRE Practices

Measure demand, forecast growth and launches, find the safe load per unit by load testing, calculate units for peak, add headroom, and make sure you survive the loss of a zone. Use autoscaling with limits and recheck regularly.