Interview Q&A · questions with model answers
Google Cloud Engineer Interview Questions
Part of the study plan for: Cloud Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked Explain Google Cloud's resource hierarchy: organisation, folders, projects and resources.
Everything belongs to a project, which holds resources, enabled APIs, quotas and billing linkage. Projects can be grouped into folders (by department, environment or team) under one organisation…
-
Most asked How does IAM work in Google Cloud, and why should you avoid basic roles?
An IAM allow policy on a resource binds principals (users, groups, service accounts, workload identities) to roles, which are collections of permissions. Basic roles (Owner, Editor, Viewer) grant…
-
Most asked What are service accounts, and how should workloads authenticate without service account keys?
A service account is an identity for a workload rather than a person. Workloads on Google Cloud get short-lived credentials automatically by attaching a service account (Compute Engine, Cloud Run,…
-
Most asked How is networking in a Google Cloud VPC different from AWS?
A Google Cloud VPC network is global: one network spans all regions, and its subnets are regional, so VMs in different regions talk over Google's backbone with internal IPs without peering. Firewall…
-
Most asked When would you choose Cloud Run, GKE or Compute Engine?
Cloud Run for stateless HTTP services, jobs and event handlers in containers when you want no cluster to manage and scale to zero. GKE when you need Kubernetes: many services with shared platform…
-
Most asked Compare Google Cloud's database options: Cloud SQL, AlloyDB, Spanner, Firestore and Bigtable.
Cloud SQL: managed MySQL, PostgreSQL and SQL Server for typical relational apps. AlloyDB: PostgreSQL-compatible with higher performance and analytics acceleration. Spanner: relational and strongly…
-
Most asked How do you design a Google Cloud landing zone for a company with several teams?
Use the organisation with a folder structure per environment (and business unit if needed), separate projects per application and environment, a Shared VPC host project per environment owned by the…
-
Most asked How do you run Terraform for Google Cloud safely in a team?
Store state in a Cloud Storage backend (with object versioning; the GCS backend locks state natively), run plans and applies from CI with a dedicated service account authenticated through Workload…
-
Most asked Design a highly available web application on Google Cloud.
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…
-
Explain how Cloud Run scales and bills, and what concurrency means.
Cloud Run starts container instances as requests arrive and stops them when idle (down to zero unless you set minimum instances). Each instance handles up to concurrency requests at once (80 by…
-
What are Cloud Storage classes, and how do you reduce storage costs for ageing data?
Cloud Storage has Standard, Nearline (minimum 30 days), Coldline (90 days) and Archive (365 days) classes: colder classes cost less to store but more to read, with minimum storage durations. Use…
-
How does BigQuery work, and how do you control its cost?
BigQuery is a serverless data warehouse that separates storage (columnar, in Google's storage) from compute (slots allocated per query). With on-demand pricing you pay per byte scanned; with…
-
How do Pub/Sub, Cloud Tasks and Eventarc differ, and when do you use each?
Pub/Sub is a global publish/subscribe message bus: one message to many subscribers, high throughput, at-least- once delivery. Cloud Tasks queues tasks for one target with rate limits, retries and…
-
Explain Google Cloud's load balancing options.
Cloud Load Balancing is software-defined, with no instances to pre-warm. The global external Application Load Balancer gives one anycast IP for HTTP(S) worldwide, routes by host and path, and works…
-
What are organisation policies, and which ones would you set from day one?
Organisation policies are guardrails set at the organisation, folder or project level that restrict what can be configured, regardless of IAM permissions. Common day-one policies: disable service…
-
Write a Terraform configuration that deploys a container to Cloud Run with a dedicated service account.
Create a service account for the service, give it only the roles it needs (for example reading one secret), deploy the Cloud Run service with that identity and the image tag, and decide explicitly…
-
How do you give GitHub Actions access to Google Cloud without a service account key?
Create a workload identity pool with an OIDC provider for token.actions.githubusercontent.com, restrict it with an attribute condition to your repository (and branch or environment), allow that…
-
How do you monitor and log workloads on Google Cloud?
Cloud Logging collects platform and application logs automatically for most services; Cloud Monitoring collects metrics, runs uptime checks, and alerts. Route logs with sinks (to central buckets,…
-
How do you control and reduce Google Cloud costs?
Make costs visible (labels, billing export to BigQuery, budgets with alerts), then reduce them: rightsize with recommender suggestions, use committed use discounts for steady workloads, Spot VMs for…
-
A VM in a private subnet can't reach Cloud Storage or the internet. How do you troubleshoot it?
Check the path piece by piece: for Google APIs, is Private Google Access enabled on the subnet (or a Private Service Connect endpoint configured) and does DNS resolve the API names correctly? For…
-
Cloud Run latency spikes on the first requests after quiet periods. What's happening, and how do you fix it?
These are cold starts: with no warm instances, Cloud Run starts a new container and the first requests wait for image pull, process start and application initialisation. Fix with minimum instances…
-
Someone accidentally granted a public principal access to a Cloud Storage bucket with customer data. What do you do?
Remove the public binding immediately (allUsers/allAuthenticatedUsers), enable public access prevention, then check Data Access audit logs (if enabled) and access logs for reads during the exposure…
-
How do you build and deploy containers on Google Cloud with Cloud Build, Artifact Registry and Cloud Deploy?
Cloud Build runs build steps in containers (test, build the image, scan, push) triggered by commits; images go to Artifact Registry (Container Registry is retired); Cloud Deploy promotes the same…
-
What is VPC Service Controls, and when do you need it?
VPC Service Controls draws a service perimeter around projects so Google APIs such as Cloud Storage and BigQuery can only be used from inside it (or through defined access levels and ingress/egress…
-
How do Compute Engine managed instance groups provide autoscaling and self-healing?
A managed instance group (MIG) creates identical VMs from an instance template, keeps the target size, recreates VMs that fail an autohealing health check, scales on CPU, load-balancer utilisation…
-
Tell me about a time you migrated a workload to Google Cloud, or between cloud providers.
Use STAR: the situation (what was migrated and why), your task, the actions (assessment, choosing rehost vs replatform vs refactor, landing zone, data migration approach, cutover plan, rollback) and…
-
What is the Google Cloud shared responsibility model for a managed database such as Cloud SQL?
Google runs the infrastructure, hardware, database software installation, patching (within maintenance windows), backups machinery and high-availability mechanics. You remain responsible for who can…
-
Google Cloud or AWS: how would you compare them for a new project?
Both cover the core well; differences are in strengths and fit. Google Cloud is strong in data and analytics (BigQuery), Kubernetes (GKE), global networking and AI (Vertex AI, Gemini); AWS has the…