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 136–150 of 192 questions
136.What makes Cloud SQL highly available, and what does a read replica do?MidGoogle Cloud (GCP)
The REGIONAL availability type keeps a standby in another zone for failover. A read replica only serves reads and is for performance.
137.How do you decide on a load balancer type?MidGoogle Cloud (GCP)
By layer and scope. A public website uses the global external Application Load Balancer. TCP or UDP traffic that must keep the client IP uses a passthrough Network Load Balancer. Internal HTTP uses the internal Application Load Balancer.
138.What is the safest way to store and use secrets?MidGoogle Cloud (GCP)
Keep them in Secret Manager, give each service account access to only its own secrets, and inject them at run time. Never store them in code, Git or images.
139.What does Pub/Sub guarantee, and what must your code do about it?MidGoogle Cloud (GCP)
It delivers at least once, so a message can arrive twice. Handlers must be idempotent. Use a dead-letter topic so a failing message does not block work.
140.How do you keep BigQuery costs low?MidGoogle Cloud (GCP)
Select only needed columns, filter on the partition column, cluster tables, use dry runs and set a maximum bytes billed.
141.What does rate() do?MidMonitoring with Prometheus, Grafana & Datadog
It turns a counter into growth per second over a time window, such as rate(x[5m]). Use it on counters, not gauges.
142.How do you get a latency percentile in PromQL?MidMonitoring with Prometheus, Grafana & Datadog
Use a histogram metric: histogram_quantile(0.95, sum by (le) (rate(x_bucket[5m]))). Do not average percentiles from different servers.
143.What is an exporter?MidMonitoring with Prometheus, Grafana & Datadog
A small program that reads data from software you cannot change, such as a database or Linux, and exposes it as a /metrics page for Prometheus.
144.What is the job of Alertmanager?MidMonitoring with Prometheus, Grafana & Datadog
Prometheus decides when an alert fires. Alertmanager groups alerts, mutes silenced ones, and routes them to Slack, email or a pager.
145.What makes a good alert?MidMonitoring with Prometheus, Grafana & Datadog
It reports a symptom users feel, needs a human to act, has a for: duration to avoid spikes, and links to a runbook. Alerts that nobody acts on should be fixed or removed.
146.How is Loki different from Elasticsearch?MidMonitoring with Prometheus, Grafana & Datadog
Loki indexes only labels, so it is cheap and works well with Prometheus-style labels. Elasticsearch indexes all the text, so full-text search is rich but costs more storage and memory.
147.What is a trace and a span?MidMonitoring with Prometheus, Grafana & Datadog
A trace is the full journey of one request. A span is one step inside it, with a start time and duration. Spans nest to show who called whom.
148.How do you monitor an app on Kubernetes?MidMonitoring with Prometheus, Grafana & Datadog
Install kube-prometheus-stack, expose a /metrics port on the app, and create a ServiceMonitor that selects its Service. Prometheus then scrapes the pods as they come and go.
149.Why is Prometheus pull-based, and when do you push instead?MidMonitoring with Prometheus, Grafana & Datadog
Pulling lets Prometheus see at once when a target is down, because the scrape fails, and you do not have to configure each app with the server address. Push is only for short-lived batch jobs that end before a scrape, using the Pushgateway.
150.What is a recording rule?MidMonitoring with Prometheus, Grafana & Datadog
A rule that Prometheus evaluates on a schedule and stores as a new metric. Use it for heavy queries that you use often, so dashboards load fast and alerts stay simple.