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 181–195 of 224 questions

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

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

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

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

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

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

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

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

189.What is an error budget and how is it used?MidSRE Practices

It is the failure the SLO allows, which is 100% minus the SLO. If budget remains, the team can release and take risks. When it is spent, risky changes stop and the team works on reliability, as set out in a written policy.

190.How much downtime does 99.9% allow over 30 days?MidSRE Practices

43.2 minutes. 30 days is 43,200 minutes, and 0.1% of that is 43.2.

191.Why use percentiles instead of averages?MidSRE Practices

Averages hide slow requests. If most requests are fast and a few take 10 seconds, the average looks fine while some users suffer. p95 and p99 show the slow tail.

192.What should wake a person at night?MidSRE Practices

An urgent symptom that users feel, tied to the SLO, with a clear action and a runbook. Causes such as high CPU or a disk at 80% should be dashboards or tickets.

193.What is burn rate and how do you alert on it?MidSRE Practices

Burn rate is the actual error rate divided by the allowed error rate. Alert with several rules: fast burn such as 14.4 over 1 hour pages, slow burn such as 1 over 3 days opens a ticket. Each rule has a long and a short window.

194.What is the first priority in an incident?MidSRE Practices

Mitigate the harm, for example by rolling back, failing over or scaling. Find the root cause after users are safe.

195.What roles exist in incident response?MidSRE Practices

An incident commander who decides and does not debug, an operations lead who does the technical work, a communications lead, and a scribe. Experts join as needed.