How do AWS services map to GCP, and what are the important differences?
Service mapping
- Compute: EC2 → Compute Engine; EKS → GKE; ECS/Fargate and App Runner → Cloud Run; Lambda → Cloud Run functions; Elastic Beanstalk → App Engine.
- Storage: S3 → Cloud Storage; EBS → Persistent Disk / Hyperdisk; EFS → Filestore.
- Databases: RDS → Cloud SQL; Aurora → AlloyDB; DynamoDB → Firestore or Bigtable; ElastiCache → Memorystore; Redshift → BigQuery; no direct equivalent of Spanner on AWS (Aurora DSQL is the nearest).
- Messaging: SQS/SNS → Pub/Sub; Kinesis → Pub/Sub or Dataflow; MSK → Managed Service for Apache Kafka; EventBridge → Eventarc; Step Functions → Workflows.
- Networking and security: VPC → VPC (global); Route 53 → Cloud DNS; CloudFront → Cloud CDN; WAF/Shield → Cloud Armor; IAM roles → service accounts; Secrets Manager → Secret Manager; KMS → Cloud KMS.
- Operations: CloudWatch → Cloud Monitoring and Cloud Logging; X-Ray → Cloud Trace; CloudFormation → Terraform or Infrastructure Manager.
Notable differences
- GCP VPCs are global with regional subnets; AWS VPCs are regional with zonal subnets.
- GCP's resource hierarchy (organisation, folders, projects) is the unit of isolation and billing; AWS uses accounts in AWS Organizations.
- Pub/Sub combines queue and fan-out semantics in one service.
- GCP's global HTTP(S) load balancer exposes one anycast IP worldwide.
- BigQuery is serverless with separate storage and compute pricing.
Follow-up questions interviewers ask
Try answering each one before you open it.
How would you approach a multi-cloud or cloud-portable Java platform?
Be deliberate: multi-cloud for its own sake doubles operational effort. Where portability is a real requirement, standardise on portable layers (containers and Kubernetes, Terraform, OpenTelemetry, PostgreSQL, Kafka), keep cloud-specific services behind your own interfaces (a BlobStorage port with S3 and GCS adapters, Spring Cloud AWS and Spring Cloud GCP), and accept that managed differentiators (Spanner, DynamoDB) trade portability for capability. Usually the better goal is a strong exit strategy and multi-region resilience within one primary cloud.