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 188 questions
151.How do you choose between Load Balancer, Application Gateway and Front Door?MidMicrosoft Azure
Load Balancer works at layer 4 for any TCP or UDP in one region. Application Gateway is layer 7 for HTTP in one region, with URL routing and WAF. Front Door is the global layer 7 entry with caching and regional failover.
152.What are deployment slots?MidMicrosoft Azure
Extra copies of an App Service app, such as staging. You deploy and test there, then swap with production for near-zero downtime. Swapping back is the rollback.
153.When would you pick Cosmos DB over Azure SQL?MidMicrosoft Azure
When you need global distribution, very low latency and flexible JSON data at large scale. Pick Azure SQL for relational data with joins and transactions. In Cosmos DB the partition key is the critical design choice.
154.What is the difference between Service Bus, Event Grid and Event Hubs?MidMicrosoft Azure
Service Bus carries reliable messages that must be processed, with dead-lettering. Event Grid pushes notices that something happened to subscribers. Event Hubs ingests huge event streams for analytics.
155.Bicep or Terraform?MidMicrosoft Azure
Bicep is Azure-only, has no state file and supports new Azure features first. Terraform works across clouds and keeps state. Choose Bicep for an Azure-only team and Terraform for multi-cloud or existing Terraform skills. Always preview with what-if or plan.
156.How is a VPC in GCP different from other clouds?MidGoogle Cloud (GCP)
A VPC is global. One network spans all regions, and only subnets are regional.
157.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.
158.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.
159.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.
160.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.
161.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.
162.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.
163.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.
164.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.
165.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.