Skip to content
Tutorials Center
My learning

Topics

Lesson 44 of 45 ยท Practice and Review

Google Cloud Interview Questions

Prepare for Google Cloud interviews with beginner to architect questions and model answers on IAM, networking, compute, data and cost, plus flashcards.

Interviewers rarely want a list of product names. They want to hear that you can pick the right service, explain the trade-off, and avoid the classic mistakes. This lesson collects questions that come up again and again, grouped from beginner to architect level, each with a short model answer you can put in your own words.

Nothing here needs an account: the answers are explanations and read-only commands. At the end, a flashcard stand-in in JavaScript lets you drill yourself; it is a small teaching tool, not a Google service. Use the answers as a checklist of ideas, not as text to memorize.

Three levels of questions

Beginner Concepts and vocabulary.
Practitioner Build, secure and debug.
Architect Trade-offs and design.

Always answer with a reason, not only a name.

1 / 2

Beginner questions

What is the difference between IaaS, PaaS and SaaS? IaaS gives you virtual machines, disks and networks to manage yourself (Compute Engine). PaaS runs your code and hides the servers (App Engine, Cloud Run). SaaS is a finished application you only use. The higher you go, the less you manage and the less control you have. See what is cloud computing.

What are regions and zones? A region is a geographic location such as europe-west1; a zone is an isolated deployment area inside it, such as europe-west1-b. Spreading across zones protects against a zone failure; spreading across regions protects against a regional one. Choose by latency, price, features and data residency (regions and zones).

Explain the resource hierarchy. Organization, then folders, then projects, then resources. IAM policies and organization policies are inherited downward, so a grant high up reaches everything below it. A project is the unit for billing links, APIs, quotas and permissions (hierarchy).

What is the difference between a project ID, name and number? The ID is a globally unique, permanent string you use in commands. The name is a friendly label you can change. The number is assigned by Google and used internally.

Which storage class would you use for data read once a year? Archive or Coldline, depending on how rarely and how fast you need it back, with the trade-off of a minimum storage duration and retrieval fees (Cloud Storage).

Practitioner questions

What is an IAM policy? A list of bindings, each connecting a role (a set of permissions) to principals, attached to a resource. Access is the union of what policies on the resource and its ancestors allow, minus anything a deny policy blocks. See IAM.

Basic, predefined and custom roles? Basic roles (Owner, Editor, Viewer) are very broad and should be avoided in production. Predefined roles are curated per service. Custom roles let you pick exact permissions when no predefined role fits (least privilege).

Why avoid service account keys? A key file is a long-lived credential that leaks easily. Attach a service account to the workload, use impersonation for humans and automation, and use Workload Identity Federation for outside systems (service accounts).

Compute Engine, GKE, Cloud Run, App Engine or Functions? Use Compute Engine when you need full control of the machine, Cloud Run for stateless containers that scale to zero, functions for small event handlers, App Engine for its opinionated app platform, and GKE when you need Kubernetes features such as complex multi-service orchestration (compute, Cloud Run, GKE).

How does a Cloud Run service scale? Per request: each instance handles up to a configured concurrency, new instances start as load grows, and with minimum instances set to zero it scales to nothing when idle. Cold starts are the price of scale to zero.

How would you debug 403 PERMISSION_DENIED? Check who is calling, which project, whether the API is enabled, which permission the error names, and whether an organization policy or deny policy intervenes (common mistakes).

Terminal
gcloud auth list
gcloud config get project
gcloud projects get-iam-policy my-project-id \
  --flatten="bindings[].members" \
  --filter="bindings.members:user:[email protected]" \
  --format="table(bindings.role)"

Push or pull in Pub/Sub? Pull suits workers that control their own pace; push delivers to an HTTPS endpoint such as Cloud Run, which is simpler for services. Either way, delivery is at-least-once, so handlers must be idempotent (Pub/Sub).

Architect questions

Design a highly available web application. Run stateless instances in several zones (a managed instance group or Cloud Run) behind a global external load balancer with health checks, keep state in a regional or multi-region database such as Cloud SQL with high availability or Spanner, put static files on Cloud Storage with Cloud CDN, and automate everything with Terraform (instance groups, load balancing). State the recovery targets (RTO and RPO) you are designing for.

Choosing a database. Relational with moderate scale: Cloud SQL. Relational with global consistency and horizontal scale: Spanner. PostgreSQL-compatible performance for analytics-heavy workloads: AlloyDB. Flexible documents with real-time sync: Firestore. Huge key-based, low-latency throughput: Bigtable. Analytics over large tables: BigQuery (databases).

Connect an office to Google Cloud. Cloud VPN over the internet for quick, encrypted, modest bandwidth; Dedicated or Partner Interconnect for private, higher bandwidth and steadier latency; peering or Shared VPC to connect VPCs (hybrid connectivity). Address ranges must not overlap.

Reduce a cloud bill by thirty percent. Find the top spenders with a billing export and labels, right-size or schedule idle machines, delete orphaned disks and IPs, use Spot VMs for fault-tolerant work, buy committed use discounts for the stable base, cut BigQuery scans with partitioning and clustering, and set budgets (cost management).

How do you keep a project secure by default? Least-privilege IAM, no keys, organization policies, private IPs with controlled egress, secrets in Secret Manager, encryption keys in KMS where required, VPC Service Controls around sensitive data, and audit logs reviewed (reliability and security).

Flashcards (stand-in)

This stand-in shuffles the cards with a fixed seed so the order is the same every time, "answers" each with your list, and scores you. Edit myAnswers to try your own.

JS Stand-in: a flashcard quiz

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The one wrong answer is deliberate: App Engine can also scale to zero in the standard environment, but the question asks about containers, which points to Cloud Run. In an interview, name the nuance rather than just the product.

A second drill: spot the weak answer (stand-in)

Good answers contain a reason. This stand-in scores an answer by looking for trade-off words, to show what interviewers listen for. It is a toy heuristic, not a real grader.

JS Stand-in: does the answer give a reason?

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which statement about the resource hierarchy is correct?

    The hierarchy is organization, folders, projects, resources, and policies flow down it.
  2. 2. Which approach replaces a downloaded service account key for a Cloud Run service?

    An attached service account provides short-lived tokens automatically.
  3. 3. You need global strong consistency for a relational workload. Which database fits best?

    Spanner is the relational database built for horizontal scale with global consistency.
  4. 4. Why should message handlers be idempotent?

    At-least-once delivery allows duplicates; idempotent handlers make them safe.

Summary

  • Beginner questions test vocabulary: IaaS/PaaS/SaaS, regions and zones, hierarchy, storage classes.
  • Practitioner questions test hands-on judgement: IAM roles, no keys, choosing compute, debugging 403s, Pub/Sub semantics.
  • Architect questions test trade-offs: high availability, database choice, hybrid connectivity, cost and security.
  • Always give a reason and name the alternative.

Next: Google Cloud Cheat Sheet