Google Cloud Engineer interview question · Most asked
Design a highly available web application on Google Cloud.
Design Asked in Cloud Engineer interviews
Summary
Put a global external Application Load Balancer (with Cloud Armor and Cloud CDN) in front of a stateless tier spread across zones (a regional managed instance group, GKE regional cluster or Cloud Run, which is regional and zone-redundant by default), use a regional high-availability database (Cloud SQL HA with a standby in another zone, or Spanner for multi-region), and keep state in managed services.
Longer Answer
- Compute: regional MIGs with autohealing health checks; GKE regional clusters; or Cloud Run in two regions behind the global load balancer for regional failover.
- Data: Cloud SQL HA (synchronous standby, automatic failover) plus cross-region read replicas for DR; Cloud Storage dual- or multi-region for files; Memorystore with replicas.
- Network: one global VPC; Cloud NAT per region.
- Operations: backups and point-in-time recovery, tested failovers, SLOs and uptime checks from several regions.
- Decide RTO/RPO first: multi-region active-active (Spanner, global LB) costs much more than zonal HA.
Key Points
- Global ALB with Cloud Armor and CDN.
- Regional, multi-zone compute.
- Cloud SQL HA or Spanner.
- Managed state; backups and PITR.
- Choose regions by RTO/RPO.
Explanation
What interviewers look for
Using Google Cloud's regional and global building blocks deliberately.
More Google Cloud Engineer questions
- How do you design a Google Cloud landing zone for a company with several teams?
- Explain Google Cloud's resource hierarchy: organisation, folders, projects and resources.
- How does IAM work in Google Cloud, and why should you avoid basic roles?
- When would you choose Cloud Run, GKE or Compute Engine?
- What are service accounts, and how should workloads authenticate without service account keys?
- Compare Google Cloud's database options: Cloud SQL, AlloyDB, Spanner, Firestore and Bigtable.
- How is networking in a Google Cloud VPC different from AWS?
- How do you run Terraform for Google Cloud safely in a team?