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.
- Resources belong to a project
- Billing is associated with a project
- IAM permissions are managed at project level
- Each project has a unique Project ID
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.
- Managed Control Plane
- Auto Scaling
- Auto Upgrades
- Integrated Monitoring
- High Availability
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.
- Subnets
- IP Ranges
- Firewall Rules
- Route Tables
- VPN Connectivity
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
- Event Driven Architecture
- Microservices Communication
- Decoupled Systems
- Real-time Streaming
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?
- IAM Roles
- Service Accounts
- Firewall Rules
- Private Google Access
- CMEK (Customer Managed Encryption Keys)
- VPC Service Controls
- Cloud Armor
- Secret Manager
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:
- CPU Utilization
- Load Balancer Capacity
- Memory Usage
- Custom Cloud Monitoring Metrics
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.
- No Server Management
- Auto Scaling
- Pay Per Execution
- Event Driven
Examples:
- File Upload Processing
- Email Notifications
- Pub/Sub Events
- Webhook Processing
Cloud Functions is a serverless platform for running code triggered by events without managing infrastructure.
16. Frequently Asked GCP Interview Questions
- What is GCP and why is it used?
- What is a GCP Project?
- Difference between App Engine and Compute Engine?
- What is GKE?
- How does IAM work?
- What is a Service Account?
- What is a VPC?
- Cloud SQL vs BigQuery?
- What is Pub/Sub?
- How does autoscaling work?
- What are Labels and Tags?
- What are Preemptible VMs?
- How do you secure GCP resources?
- What is Cloud Functions?
- 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.