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 1–10 of 10 questions

Learn Google Cloud (GCP) →
1.How is a VPC in GCP different from other clouds?Mid

A VPC is global. One network spans all regions, and only subnets are regional.

2.Two firewall rules conflict. Which wins?Mid

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

3.How can an admin SSH to a VM that has no public IP?Mid

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.

4.How does a private VM reach the internet or download updates?Mid

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

5.When do you pick Spanner, Bigtable or Firestore instead of Cloud SQL?Mid

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.

6.What makes Cloud SQL highly available, and what does a read replica do?Mid

The REGIONAL availability type keeps a standby in another zone for failover. A read replica only serves reads and is for performance.

7.How do you decide on a load balancer type?Mid

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.

8.What is the safest way to store and use secrets?Mid

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.

9.What does Pub/Sub guarantee, and what must your code do about it?Mid

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.

10.How do you keep BigQuery costs low?Mid

Select only needed columns, filter on the partition column, cluster tables, use dry runs and set a maximum bytes billed.