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 91–105 of 126 questions

91.Two firewall rules conflict. Which wins?MidGoogle Cloud (GCP)

The one with the lower priority number. By default incoming traffic is denied and outgoing is allowed, and rules are stateful.

92.How can an admin SSH to a VM that has no public IP?MidGoogle Cloud (GCP)

With Identity-Aware Proxy TCP forwarding (gcloud compute ssh --tunnel-through-iap), with a firewall rule for the IAP range and the right IAM role.

93.How does a private VM reach the internet or download updates?MidGoogle Cloud (GCP)

Through Cloud NAT. Private Google Access covers calls to Google APIs.

94.When do you pick Spanner, Bigtable or Firestore instead of Cloud SQL?MidGoogle Cloud (GCP)

Spanner for global SQL with strong consistency, Bigtable for huge key-based or time-series data, Firestore for flexible documents in web and mobile apps. Otherwise start with Cloud SQL.

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

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

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

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

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

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

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

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

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

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

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