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 31–45 of 54 questions
31.What is the difference between a Region and an Availability Zone?BeginnerAWS
A Region is a geographic area, such as eu-west-1. It has several Availability Zones, which are separate data centers a short distance apart with their own power and network. Spreading across zones keeps your app up if one zone fails.
32.What is the shared responsibility model?BeginnerAWS
AWS secures the cloud itself: buildings, hardware and the base services. You secure what you put in it: your data, access rules, operating system settings and network rules.
33.Why should you not use the root user for daily work?BeginnerAWS
It can do everything and cannot be limited. Protect it with MFA, lock away its keys, and use an IAM Identity Center or IAM user with limited rights every day.
34.What is an IAM role and when do you use it?BeginnerAWS
A role is a set of permissions that something can take on for a short time, without a password or long-term key. Use roles for EC2, Lambda and containers, and for people through SSO.
35.How do S3 storage classes differ?BeginnerAWS
Standard is for frequent access. Infrequent Access is cheaper to store but charges to read. Glacier classes are very cheap for archives but take minutes to hours to get data back. Intelligent-Tiering moves objects for you.
36.What is the difference between a region and a zone?BeginnerGoogle Cloud (GCP)
A region is a place in the world made of several zones. A zone is one data center area inside it. Zones can fail on their own, so important apps run in two or more zones.
37.What is the difference between a project name and a project ID?BeginnerGoogle Cloud (GCP)
The name is a label you can change. The ID is unique worldwide and cannot be changed. Commands and APIs use the ID.
38.What are the three parts of an IAM binding?BeginnerGoogle Cloud (GCP)
A principal (who), a role (what they can do) and a resource (where). A set of bindings on a resource is its IAM policy.
39.Why avoid the Owner and Editor roles for daily work?BeginnerGoogle Cloud (GCP)
They are very wide and can change almost everything. Use predefined roles for one service, and custom roles when none fit.
40.Which GCP service would you use to run a container with no servers to manage?BeginnerGoogle Cloud (GCP)
Cloud Run. It gives a URL, scales with traffic and can scale to zero.
41.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.
42.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.
43.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.
44.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.
45.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.