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 121–135 of 190 questions

121.How do you respond to a security alert in Defender for Cloud?SeniorMicrosoft Azure

Check whether it is normal, contain it first (disable the identity or isolate the resource), then investigate with logs in Log Analytics or Sentinel. Fix the cause, such as closing a port or rotating a credential, and improve the control so it cannot repeat.

122.How do you design for the loss of an entire region?SeniorMicrosoft Azure

Use zone redundancy inside regions and deploy to a paired or second region. Replicate data with geo-redundant storage, SQL failover groups or Cosmos DB multi-region. Put Front Door or Traffic Manager in front for failover, keep infrastructure as code so you can rebuild, and rehearse the failover.

123.Why avoid service account key files, and what do you use instead?SeniorGoogle Cloud (GCP)

Keys are long-lived secrets that leak easily. Use attached service accounts on GCP, impersonation for people, Workload Identity Federation for CI and other clouds, and Workload Identity for GKE pods.

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

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

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

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

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

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

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

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

132.Explain SLI, SLO and error budget.SeniorMonitoring with Prometheus, Grafana & Datadog

An SLI is a measurement of good service. An SLO is the target for it, such as 99.9% over 30 days. The error budget is the failure the target allows, here 0.1%. When the budget is used up, teams focus on reliability.

133.What is a burn-rate alert?SeniorMonitoring with Prometheus, Grafana & Datadog

It alerts on how fast the error budget is being spent instead of on single errors. Teams use several windows, for example a high rate over 1 hour pages, and a slow rate over 3 days creates a ticket.

134.When do you need Thanos or Mimir?SeniorMonitoring with Prometheus, Grafana & Datadog

When you need long retention, a single view across many Prometheus servers, or more scale than one machine gives. Thanos extends existing Prometheus servers. Mimir is a central multi-tenant store fed by remote_write.

135.How do you keep dashboards and alerts reliable over time?SeniorMonitoring with Prometheus, Grafana & Datadog

Keep them as code in Git, review changes, check them with promtool in CI, unit-test alert rules, and provision Grafana from files or Terraform instead of clicking.