Google Cloud Platform (GCP) Interview Notes

1. What is GCP?

Google Cloud Platform (GCP) is a cloud computing platform that provides Infrastructure, Platform, Serverless, Analytics, AI/ML, Networking, and Security services.

It runs on the same infrastructure used by Google products such as Google Search, Gmail, Google Maps, and YouTube.

Interview Answer: GCP is Google's cloud computing platform that provides scalable and secure cloud services including compute, storage, networking, databases, AI, and Kubernetes.

2. Core Components of GCP

Category Services
Compute Compute Engine, App Engine, Cloud Run, GKE
Storage Cloud Storage, Persistent Disk, Cloud SQL, Bigtable
Networking VPC, Cloud CDN, Load Balancer, Cloud NAT
Data & Analytics BigQuery, Dataflow, Dataproc
Messaging Pub/Sub
AI & ML Vertex AI, Vision AI, Speech-to-Text

3. What is a GCP Project?

A Project is the fundamental organizational unit in GCP.

A GCP Project is a logical container used to organize resources, billing, APIs, and permissions.

4. App Engine vs Compute Engine

Feature App Engine Compute Engine
Type PaaS IaaS
Infrastructure Management Fully Managed User Managed
Scaling Automatic Manual / Auto Scaling
Flexibility Limited High
Use Case Web Apps, APIs Custom Applications
App Engine is a fully managed PaaS service, while Compute Engine provides virtual machines with complete control.

5. What is Google Kubernetes Engine (GKE)?

GKE is Google's managed Kubernetes service that simplifies deployment, scaling, monitoring, and management of Kubernetes clusters.

GKE is a managed Kubernetes service that automates cluster operations and infrastructure management.

6. How does IAM work in GCP?

IAM (Identity and Access Management) controls access to GCP resources.

Role Type Description
Basic Roles Owner, Editor, Viewer
Predefined Roles Service Specific Roles
Custom Roles User-defined Permissions
IAM = Who (Identity) + What (Role) + Which Resource.

7. What is a VPC?

VPC (Virtual Private Cloud) is a logically isolated network in GCP.

VPC provides secure networking for GCP resources with custom IP ranges and firewall controls.

8. Cloud SQL vs BigQuery

Feature Cloud SQL BigQuery
Type Relational Database Data Warehouse
Workload OLTP OLAP
Scale GB/TB Petabyte Scale
Examples Transactions Analytics & Reporting
Cloud SQL is used for transactional workloads, while BigQuery is used for large-scale analytics.

9. What is Cloud Pub/Sub?

Cloud Pub/Sub is a fully managed messaging service for asynchronous communication.

Flow:

Publisher ? Topic ? Subscription ? Subscriber
Pub/Sub is Google's messaging service used for asynchronous and event-driven communication.

10. Preemptible VM vs Standard VM

Feature Preemptible VM Standard VM
Cost Very Cheap Regular Cost
Availability Can be terminated anytime Persistent
Best Use Batch Jobs Production Systems
Preemptible VMs are low-cost temporary VMs, while Standard VMs provide stable and reliable execution.

11. How do you secure GCP Resources?

GCP security is implemented using IAM, encryption, firewall rules, service accounts, and network isolation.

12. What is a Service Account?

A Service Account is a special identity used by applications and services to access GCP resources.

Service Accounts enable applications to authenticate securely without using user credentials.

13. Labels vs Tags

Labels Tags
Key-Value Metadata Network Related Identifier
Cost Tracking Firewall Rules
Resource Organization Network Security

14. How does Autoscaling work in GCP?

Managed Instance Groups (MIGs) support autoscaling based on:

GCP automatically increases or decreases VM instances based on workload demand.

15. What is Cloud Functions?

Cloud Functions is a serverless compute service that executes code in response to events.

Examples:

Cloud Functions is a serverless platform for running code triggered by events without managing infrastructure.

16. Frequently Asked GCP Interview Questions

  1. What is GCP and why is it used?
  2. What is a GCP Project?
  3. Difference between App Engine and Compute Engine?
  4. What is GKE?
  5. How does IAM work?
  6. What is a Service Account?
  7. What is a VPC?
  8. Cloud SQL vs BigQuery?
  9. What is Pub/Sub?
  10. How does autoscaling work?
  11. What are Labels and Tags?
  12. What are Preemptible VMs?
  13. How do you secure GCP resources?
  14. What is Cloud Functions?
  15. Difference between Cloud Run and Cloud Functions?

30-Second Interview Summary

GCP is Google's cloud platform providing compute, storage, networking, analytics, AI/ML, and Kubernetes services. Key services include Compute Engine, App Engine, Cloud Run, GKE, Cloud SQL, BigQuery, Pub/Sub, and Cloud Functions. Security is managed through IAM, Service Accounts, VPCs, and encryption. GKE manages Kubernetes workloads, BigQuery handles analytics, and Cloud Functions enables serverless event-driven applications.