Skip to main content
InterviewHubPRO
HomeTracksSection 31: GCP Cloud Architecture (50 Qs)
Section 31 of 6450 Questions (1 Per Page)

Google Cloud Platform (GCP) Enterprise Architecture Master Interview Bank

GCP VPC network peering, Shared VPC, GKE (Google Kubernetes Engine), Cloud Run serverless containers, Cloud Spanner, and Google Cloud IAM.

Curriculum Roadmap & Learning Path

3 Stages
Tip: Click any stage card above to instantly filter the question bank to that topic.3 Connected Milestones
50 of 50 Qs

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

10 Questions
1
JuniorCode#Forms

What is the Google Cloud Platform (GCP) Resource Hierarchy?

GCP organizes resources in a strict four-level hierarchy that determines access control and billing inheritance: Organization (Root node): Represents the entire enterprise domain (e.g. example.com) • Folders: Departmental or environment groups (e.g. Engineering, Finance, Prod, Staging).

2
Junior#gcp#Basic

What are the types of IAM Roles in GCP (Primitive, Predefined, Custom)?

Primitive (Basic) Roles (Legacy): Viewer, Editor, and Owner • Predefined Roles (Best Practice): Granular, service-specific roles created and maintained by Google (e.g. roles/storage.objectViewer.

3
Junior#Security & Auth

What is a GCP Service Account and how does it authenticate?

A Service Account is a special Google identity used by applications and automated workloads (not human users) to call Google APIs: Identified by an email address: backend-app@my-project.iam.gserviceaccount.com • Authentication • Locally: Downloaded JSON service account keys (high security risk).

4
JuniorCode#gcp#Basic

What are the differences between Compute Engine, Cloud Run, GKE, and Cloud Functions?

Compute Engine (IaaS): Raw virtual machines • Google Kubernetes Engine - GKE (CaaS): Managed Kubernetes • Cloud Run (PaaS / Serverless Containers): Serverless container platform • Cloud Functions (FaaS): Event-driven serverless functions (Node.js, Python, Go) triggered by Cloud Storage uploads, Pub/Sub events, or HTTP webhooks.

5
Most AskedJunior#Lifecycle

What are the Cloud Storage (GCS) Storage Classes and their lifecycle policies?

Standard: High-frequency active access (websites, app data, streaming) • Nearline: Accessed less than once a month (30-day minimum retention; monthly backups) • Coldline: Accessed less than once a year (90-day minimum retention; disaster recovery) • Archive: Long-term compliance archiving (365-day minimum retention; lowest storage cost).

6
Junior#Databases & SQL

What is the difference between Cloud SQL, Cloud Spanner, and Cloud Bigtable?

Cloud SQL: Managed relational database (PostgreSQL, MySQL, SQL Server) • Cloud Spanner: Globally distributed, horizontally scalable, multi-region database with full ACID transactions and 99.999% availability SLA.

7
Junior#gcp#Basic

What is a VPC Network in GCP and how does its global nature differ from AWS?

In GCP, a Virtual Private Cloud (VPC) is Global by default, whereas in AWS a VPC is confined to a single Region: A single GCP VPC spans all Google data centers worldwide • Subnets are regional (e.g. subnet in us-central1, subnet in europe-west1), but VMs in different subnets communicate over Google's private fiber.

8
Senior#gcp#Basic

What is Cloud Load Balancing and what is an Anycast IP?

Google Cloud External Load Balancer uses BGP Anycast routing: A single global IPv4 address is announced from over 100 Google Points of Presence (PoPs) worldwide • Traffic enters Google's ultra-low-latency private fiber network at the nearest edge router to the user, terminating TLS at the edge and proxying.

9
Junior#GraphQL

What is Cloud Pub/Sub and how does it compare Push vs Pull subscriptions?

Cloud Pub/Sub is a fully managed, globally distributed asynchronous messaging service: Topics: Publishers send JSON/binary messages to a topic • Pull Subscription: Worker instances poll Pub/Sub for messages, process them, and send an acknowledgment (ack).

10
Junior#gcp#Basic

What is BigQuery and what is its serverless execution model?

BigQuery is Google's serverless, multi-cloud enterprise data warehouse: Requires zero infrastructure provisioning • Separates storage (Colossus columnar storage in Capacitor format) from compute (Slots running the Dremel query engine).

Part 2: Core Architecture & Implementation (Mid-Level)

10 Questions
11
Most AskedSeniorCode#State Management#System Design

How does Cloud Spanner achieve Globally Distributed ACID Transactions via TrueTime?

Traditional databases cannot achieve global distributed ACID without locking because clock drift between servers makes ordering transactions impossible.: TrueTime API: Google equips data centers with GPS receivers and atomic rubidium clocks, guaranteeing a bounded clock uncertainty interval.

12
Senior#System Design

What is GKE Autopilot and how does it differ from GKE Standard?

GKE Standard: You manage the Kubernetes nodes, VM instance types, OS patching, and pay for the underlying Compute Engine VM instances regardless • GKE Autopilot: Google manages and provisions the entire node infrastructure, node pools, OS hardening, and scaling • You only manage Kubernetes manifests (Deployments, Services).

13
SeniorCode#System Design

What is Workload Identity Federation in GCP and why should you eliminate service account JSON keys?

Hardcoded JSON keys are the #1 cause of cloud credential leaks on GitHub: Workload Identity Federation: Allows external workloads (AWS EC2, GitHub Actions, Kubernetes pods) to impersonate a GCP Service Account using.

14
Senior#System Design

What is VPC Network Peering vs Shared VPC in GCP?

VPC Peering: Connects two independent VPC networks (even across different organizations) to exchange traffic privately with 0 egress bandwidth cost • Shared VPC: Connects projects within the same organization.

15
Senior#System Design

How does Cloud Run achieve Zero-to-One Scale and Concurrency?

Scale to Zero: If no HTTP requests arrive, Cloud Run deallocates all container instances, dropping hosting costs to $0 • Cold Starts: Optimized to spin up new container instances in under 1 second.

16
Senior#Security & Auth#System Design

What is Cloud KMS and how does Customer-Managed Encryption Keys (CMEK) work?

All GCP data is encrypted at rest by default using Google-managed keys: CMEK (Customer-Managed Encryption Keys): Enterprise compliance requires customers to control the encryption keys used to encrypt GCS buckets.

17
Senior#System Design

What are Cloud Armor and Google Cloud's DDoS mitigation capabilities?

Cloud Armor provides Enterprise Web Application Firewall (WAF) and DDoS defense at Google's network edge: Built on top of the same infrastructure protecting Google Search and YouTube • Inspects Layer 7 HTTP/HTTPS traffic at the global edge before it reaches your backend VMs or Cloud Run containers.

18
Senior#System Design

What is Cloud NAT (Network Address Translation) and Private Google Access?

Private Google Access: Allows Compute Engine VMs with only private internal IPs (no public IP) to access Google APIs and Cloud Storage over • Cloud NAT: Allows private VMs without public IPs to initiate outbound connections to the public internet (for OS security updates, package.

19
Senior#System Design

How does BigQuery Slot Allocation work (On-demand vs Reservations)?

On-Demand: Free tier gives access to up to 2,000 shared burstable slots • Capacity (Editions: Standard, Enterprise, Enterprise Plus): You purchase dedicated baseline Slots (virtual CPUs) per hour with auto-scaling slot.

20
Senior#Forms#Memory Management

What is Google Cloud Operations Suite (formerly Stackdriver)?

Google's native observability platform comprising: Cloud Logging: Collects, filters, and analyzes log entries with structured JSON querying and automated log routing sinks to BigQuery or Pub/Sub • Cloud Monitoring: Collects system and custom metrics, renders dashboards, and triggers alerts to PagerDuty/Slack.

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

30 Questions
21
Senior#gcp#Advanced Internals

What is VPC Service Controls (VPC-SC) and how does it prevent Data Exfiltration?

Traditional IAM protects identities, but does not stop an insider with valid credentials from copying sensitive data to an unauthorized personal cloud bucket: VPC Service Controls: Establishes a cryptographic security perimeter around GCP resources (BigQuery, GCS, Spanner).

22
Senior#gcp#Advanced Internals

What is Google Cloud Interconnect (Dedicated vs Partner) vs Cloud VPN?

Options for connecting on-premises enterprise data centers to GCP: Cloud VPN: IPsec tunnels over the public internet (up to 3 Gbps per tunnel) • Dedicated Interconnect: Direct physical 10 Gbps or 100 Gbps fiber circuit connected to a Google Colocation facility.

23
Senior#gcp#Advanced Internals

How do you design multi-region Disaster Recovery (Active-Active vs Active-Passive) on GCP?

Global Anycast Load Balancer: Serves as the single frontend entry point routing users to the nearest healthy region • Active-Active with Cloud Spanner: Spanner replicates writes across multi-region configurations (e.g. nam-eur-asia1) with zero downtime if an.

24
Senior#gcp#Advanced Internals

How does GKE multi-tenancy work (Namespace isolation, NetworkPolicies, and GKE Workload Identity)?

Namespaces: Logical separation of resources per tenant • NetworkPolicies (Calico / Datapath v2 - eBPF): Restricts east-west pod traffic so pods in tenant-a cannot communicate with pods in tenant-b.

25
Senior#gcp#Advanced Internals

What is the Jupiter Data Center Fabric and how does it enable Bps-scale BigQuery shuffles?

Jupiter is Google's custom software-defined data center network topology: Delivers over 1 Petabit per second of bisection bandwidth using Clos topologies • Allows any server in a Google data center to communicate with any other server at full line rate with zero oversubscription.

26
Senior#gcp#Advanced Internals

How do you implement Zero-Trust BeyondCorp Enterprise access on GCP?

BeyondCorp eliminates the traditional VPN perimeter by shifting access controls to the application layer: Identity-Aware Proxy (IAP): Verifies user identity (via Google Workspace / Okta) and device posture (disk encryption, OS version, location).

27
Senior#System Design

What is Anthos / Google Distributed Cloud (GDC)?

Anthos is Google's hybrid and multi-cloud application management platform: Runs unified GKE clusters across on-premises bare-metal servers, AWS, and Azure • Enables central management of configuration, security policies, and service meshes across hybrid clouds from a single Google Cloud console pane.

28
Senior#gcp#Advanced Internals

How does Cloud Spanner handle schema migrations online with zero downtime?

Spanner executes DDL schema updates as long-running, asynchronous background transactions: When adding a column or secondary index, Spanner introduces multiple intermediate phases: ABSENT -> WRITEONLY -> READONLY.

29
Senior#gcp#Advanced Internals

What are Organization Policies and Hierarchical Firewall Rules?

Organization Policies: Centralized constraints enforced enterprise-wide (e.g. constraints/compute.vmExternalIpAccess disables public IPs on all • Hierarchical Firewalls: Firewall rules defined at the Org or Folder level that apply to all VPCs beneath them, preventing project administrators.

30
Senior#gcp#Advanced Internals

How do you optimize BigQuery Costs for multi-petabyte datasets?

Avoid SELECT *; only query explicit columns (BigQuery charges strictly per byte of columns scanned) • Enforce requirepartitionfilter = true on partitioned tables to prevent accidental full-table scans • Use Clustered Tables to reduce the volume of data scanned by filter predicates.

31
Senior#gcp#Advanced Internals

What is Dataproc and how does it compare to managing Apache Spark on GKE?

Cloud Dataproc: Managed Apache Hadoop and Apache Spark service • Spark on GKE: Uses the open-source Spark-on-K8s Operator.

32
Senior#gcp#Advanced Internals

How does Cloud Run with Direct VPC Egress work?

Traditionally, serverless containers required a Serverless VPC Access connector VM to communicate with private resources: Direct VPC Egress: Routes traffic from Cloud Run container instances directly into your VPC network subnets without intermediary connector VMs.

33
Senior#Pipes#CI/CD & DevOps

What is Cloud Deploy and how does it orchestrate GKE / Cloud Run release pipelines?

Cloud Deploy is Google's opinionated, serverless delivery service: Defines multi-target promotion pipelines (e.g. dev -> staging -> prod) • Uses Skaffold for declarative render and deploy steps • Features one-click rollbacks, deployment approval gates, and audit logging.

34
Senior#gcp#Advanced Internals

How does GCP Cloud Armor ML-based Adaptive Protection work?

Adaptive Protection uses machine learning models trained on baseline application traffic patterns: Automatically detects Layer 7 anomalous traffic surges and application-layer DDoS attacks • Generates tailored, real-time WAF mitigation rules with one-click deployment to block attack signatures without disrupting legitimate user traffic.

35
Senior#Forms

When should you choose Google Cloud Platform over AWS or Azure?

Big Data & Real-Time Analytics: BigQuery and Cloud Pub/Sub provide an unmatched serverless analytics ecosystem • Global Network Performance: GCP's Anycast IP global network provides lower latency and simpler multi-region networking than AWS.

36
Senior#gcp#Advanced Internals

GKE Autopilot vs GKE Standard: Architectural Trade-Offs.

GKE Standard: You manage worker node pools, machine types, OS patching, and cluster auto-scaling • GKE Autopilot: Fully hands-off, managed Kubernetes.

37
Senior#gcp#Advanced Internals

Cloud Run: Concurrency Tuning, Min Instances, and VPC Egress.

Cloud Run runs stateless containers over fully managed serverless infrastructure: Container Concurrency: Unlike AWS Lambda which serves 1 request per container instance, Cloud Run serves up to 1,000 concurrent requests per • Min Instances: Setting --min-instances 1 keeps warm containers running continuously, reducing cold starts to 0ms.

38
Senior#HTTP & REST APIs

Cloud Spanner & The TrueTime API: External Consistency at Global Scale.

Cloud Spanner is the world's first globally distributed database providing both strict relational ACID semantics and non-blocking multi-region read/write scalability: The TrueTime API: Uses atomic clocks and GPS receivers integrated into Google datacenters to provide a bounded uncertainty time window (\epsilon.

39
Senior#gcp#Advanced Internals

Cloud Pub/Sub vs Pub/Sub Lite.

Cloud Pub/Sub: Fully serverless, globally available event streaming • Pub/Sub Lite: Partition-based messaging system (similar to Apache Kafka).

40
Senior#gcp#Advanced Internals

Cloud Bigtable: Row Key Design and Anti-Hotspotting.

Cloud Bigtable is Google's NoSQL wide-column database powering Search, Maps, and YouTube: Row Key Ordering: Data is sorted lexicographically by Row Key • The Hotspotting Trap: Starting row keys with timestamps (2026-11-20#user123) pushes all writes to a single tablet server.

41
Senior#gcp#Advanced Internals

VPC Service Controls (VPC SC): Data Exfiltration Defense.

Standard IAM credentials can be leaked by an attacker to download database records from outside corporate networks.

42
Senior#gcp#Advanced Internals

Workload Identity Federation: Eliminating Long-Lived Service Account Keys.

Downloading JSON service account keys (credentials.json) into CI/CD pipelines (GitHub Actions, GitLab) is the #1 cause of cloud security breaches: Workload Identity Federation: External systems (GitHub Actions) exchange OpenID Connect (OIDC) identity tokens with Google Cloud's Security.

43
Most AskedSenior#Routing#System Design

Global External Application Load Balancer: Anycast IP Routing.

Google Cloud Load Balancing uses BGP Anycast IP addresses: A single global static IP address is advertised across Google's 100+ global Points of Presence (PoPs) • User TCP/TLS connections terminate at the nearest edge datacenter, routing traffic across Google's private, low-latency fiber optic backbone.

44
Senior#gcp#Advanced Internals

Cloud Armor: Enterprise WAF and DDoS Mitigation.

Built on the same infrastructure defending Google Search and YouTube: Defends against multi-terabit volumetric Layer 3/4 and Layer 7 DDoS attacks • Provides pre-configured rules for OWASP Top 10 vulnerabilities (SQLi, XSS, RCE), geo-blocking, and IP rate limiting directly at Google's global.

45
Most AskedSenior#gcp#Advanced Internals

Cloud Storage (GCS) Autoclass and Storage Classes.

Standard: Hot data accessed frequently • Nearline / Coldline / Archive: Colder tiers with lower storage costs (0.010 - 0.0012/GB) and higher retrieval fees • Autoclass: Automatically transitions objects between storage classes based on access patterns without write-rewrite fees or management scripts.

46
Senior#System Design

Cloud Functions (2nd Gen): Eventarc Architecture.

Cloud Functions 2nd Gen is powered by Cloud Run and Eventarc: Supports up to 60-minute execution times, larger memory sizes (up to 32GB RAM), and multiple concurrent requests per instance • Eventarc: Subscribes to 130+ Google Cloud event sources (Cloud Storage file uploads, Firestore updates, Cloud Audit Logs) using standard.

47
Senior#Pipes#CI/CD & DevOps

Cloud Deploy: Managed Continuous Delivery Pipelines.

Google Cloud Deploy manages automated, opinionated delivery pipelines for GKE, Cloud Run, and Anthos: Enforces progressive delivery (Canary, Blue/Green, Parallel deployments) • Features one-click rollbacks, promotion approvals, and integrates with Skaffold and Cloud Build.

48
Senior#gcp#Advanced Internals

Google Cloud Operations Suite: Cloud Trace & OpenTelemetry.

Formerly Stackdriver, Google Cloud Operations Suite provides unified telemetry: Cloud Trace: Tracks latency across distributed microservice requests, identifying backend database bottlenecks and slow RPC calls • Cloud Logging: Petabyte-scale structured log aggregation with real-time log-based metrics.

49
Senior#Security & Auth

Cloud Key Management Service (KMS) & Customer-Managed Encryption Keys (CMEK).

Google Cloud encrypts all customer data at rest by default using Google-managed keys. CMEK gives organizations regulatory compliance control: Keys are hosted in Cloud KMS or Hardware Security Modules (FIPS 140-2 Level 3 HSM).

50
Senior#gcp#Advanced Internals

FinOps in Google Cloud: Committed Use Discounts (CUDs).

Optimizing GCP cloud spend: Committed Use Discounts (CUDs): Commit to continuous compute or spend for 1 or 3 years in exchange for up to 70% cost savings compared to • BigQuery Reservations: Switch from on-demand query billing ($6.25/TB scanned) to dedicated flat-rate slots for predictable enterprise budgets.