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 1–15 of 28 questions

Learn DevSecOps →
1.What does shift left mean?Beginner

Moving security checks earlier in the development process, close to the developer, where problems are cheap to fix. It adds checks earlier and does not remove later ones.

2.What is the difference between a threat, a vulnerability and a risk?Beginner

A threat is something that can cause harm, like an attacker. A vulnerability is a weakness it can use. Risk is how likely harm is, multiplied by how bad it would be.

3.Name three items on the OWASP Top 10 and a fix for one.Beginner

Broken access control, injection and security misconfiguration are examples. For injection, use parameterized queries so input is always treated as data.

4.A developer committed an API key and deleted it in the next commit. Is it safe now?Beginner

No. The key is still in Git history and must be treated as stolen. Revoke it, create a new one, check logs for misuse, and add scanning to prevent a repeat.

5.What is the difference between SAST and DAST?Beginner

SAST reads source code without running it and finds code patterns early. DAST attacks a running application from outside and finds runtime issues such as missing headers. They find different things, so use both.

6.What is an SBOM and why keep one for each release?Mid

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.

7.Why scan the lock file for dependencies?Mid

The lock file shows the exact versions in use, including transitive dependencies. Scanning only the manifest can miss libraries that your libraries pull in.

8.How do you make a container image more secure?Mid

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.

9.Why scan a Terraform plan in addition to the code?Mid

Variables and modules can change the final values. The plan JSON shows what will really be created, so checks are more accurate.

10.Why use OIDC for CI instead of stored cloud keys?Mid

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.

11.What is script injection in a CI workflow?Mid

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.

12.What does a default-deny NetworkPolicy do, and what does it need?Mid

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.

13.Why must DAST active scans avoid production?Mid

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.

14.What is the difference between a Veracode Pipeline Scan and a policy scan?Mid

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.

15.What does Twistlock (Prisma Cloud Compute) do?Mid

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.