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 229 questions

151.Why must a workload identity pool provider have an attribute condition?SeniorGoogle Cloud (GCP)

Without it, any identity from that outside system could try to use the pool. A condition such as the repository name limits who can act as the service account.

152.What is the difference between GKE Autopilot and Standard?SeniorGoogle Cloud (GCP)

In Autopilot Google manages nodes and you pay for pod resources. In Standard you manage node pools and pay for the VMs. Start with Autopilot unless you need node-level control.

153.How do you roll out a risky change on Cloud Run?SeniorGoogle Cloud (GCP)

Deploy a new revision with no traffic and a tag, test it, send a small share of traffic, watch errors, then increase or roll back by changing traffic splits.

154.Which Terraform IAM resource is safe to use, and why?SeniorGoogle Cloud (GCP)

google_project_iam_member, because it adds one member to a role. _binding replaces all members of a role, and _policy replaces the whole policy, which can remove access.

155.What is an organization policy and how is it different from IAM?SeniorGoogle Cloud (GCP)

It limits what is possible below a node, such as no external IPs or no service account keys. IAM limits who may act. Both inherit downwards.

156.What is a landing zone?SeniorGoogle Cloud (GCP)

A ready base for a company: folder structure, groups and IAM, organization policies, shared networking, central logging, Security Command Center, billing and a project factory, built as code.

157.What is a fleet in GKE and why use one?SeniorGoogle Cloud (GCP)

A group of clusters managed together. Config Sync, Policy Controller, shared identity and multi-cluster traffic give the same rules and a global entry point across clusters.

158.How do an SLO and an error budget guide releases?SeniorGoogle Cloud (GCP)

The SLO is the reliability target, such as 99.9%. The error budget is the failure still allowed. With budget left you can ship. When it is used up, slow releases and fix reliability. Burn-rate alerts warn early.

159.What are the three pillars of observability?BeginnerMonitoring with Prometheus, Grafana & Datadog

Metrics, logs and traces. Metrics are numbers over time, logs are text records of events, and traces follow one request through many services.

160.What are the four golden signals?BeginnerMonitoring with Prometheus, Grafana & Datadog

Latency, traffic, errors and saturation. Watching these four tells you most of what users feel.

161.How does Prometheus collect data?BeginnerMonitoring with Prometheus, Grafana & Datadog

It pulls. Every scrape interval it visits each target's /metrics page and stores the numbers. If a scrape fails, the up metric becomes 0.

162.What is the difference between a counter and a gauge?BeginnerMonitoring with Prometheus, Grafana & Datadog

A counter only goes up (until a restart), like total requests. A gauge goes up and down, like memory in use. You usually take the rate of a counter.

163.What is a label, and why can too many be a problem?BeginnerMonitoring with Prometheus, Grafana & Datadog

A label splits a metric into separate series, for example by status code. Every unique label combination is a new series, so labels with many values (like user id) use huge memory. This is high cardinality.

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

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