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 151–165 of 192 questions

151.A Grafana panel shows no data. How do you debug it?MidMonitoring with Prometheus, Grafana & Datadog

Check the time range and data source, run the same query in Prometheus or Explore, see if the target is up on the Targets page, check that the metric and label names are spelled right, and look at the query's rate window against the scrape interval.

152.How do you avoid a huge Datadog bill?MidMonitoring with Prometheus, Grafana & Datadog

Control the three big drivers: custom metrics (avoid high-cardinality tags like user IDs), indexed logs (exclusion filters, sampling, archives in cheap storage) and APM (sampling, keep errors). Review Plan & Usage monthly and tag everything with team so costs can be traced.

153.What is unified service tagging in Datadog?MidMonitoring with Prometheus, Grafana & Datadog

Using the same env, service and version tags on metrics, logs and traces (for example through DD_ENV, DD_SERVICE and DD_VERSION). It lets you jump from a slow trace to the matching logs and compare behavior before and after a deploy.

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

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

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

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

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

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

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

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

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

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

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

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