Interview Q&A · questions with model answers
AWS Cloud Engineer Interview Questions
Part of the study plan for: Cloud Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked When should you choose EC2 over alternatives?
Choose EC2 when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads.
-
Most asked When should you choose Lambda over alternatives?
Choose Lambda when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers.
-
Most asked Compare Lambda with adjacent AWS options for the same problem space.
Compare Lambda by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
-
Most asked When should you choose ECS Service over alternatives?
Choose ECS Service when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide.
-
Most asked Compare ECS Service with adjacent AWS options for the same problem space.
Compare ECS Service by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
-
Most asked When should you choose VPC over alternatives?
Choose VPC when you need controlled network boundaries, private subnets, routing, security segmentation, private service access, or hybrid connectivity.
-
Most asked When should you choose ALB over alternatives?
Choose ALB when you need HTTP routing, TLS termination, host/path rules, target health checks, WebSockets, redirects, fixed responses, or routing to EC2/ECS/Lambda targets.
-
Most asked EC2 vs Lambda: when should each be the primary compute layer?
Choose between Lambda vs EC2 by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
-
Most asked ECS Service vs Lambda for APIs: what are the key scaling and operations tradeoffs?
Choose between Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
-
Most asked API Gateway vs ALB for HTTP APIs: how do you decide?
Choose between API Gateway vs ALB by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
-
Most asked When should ECS Service be fronted by ALB instead of API Gateway?
Choose between API Gateway vs ECS Service vs ALB by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
-
Most asked When should VPC endpoints be mandatory in this architecture?
Choose between EC2 vs Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
-
Most asked When is EC2 a poor fit, and what would you pick instead?
EC2 is a poor fit when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms.
-
Most asked When is Lambda a poor fit, and what would you pick instead?
Lambda is a poor fit when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large…
-
Most asked When is ECS Service a poor fit, and what would you pick instead?
ECS Service is a poor fit when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.
-
Compare EC2 with adjacent AWS options for the same problem space.
Compare EC2 by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
-
When should you choose API Gateway over alternatives?
Choose API Gateway when you need managed authentication hooks, request validation, throttling, usage plans, API keys, transformations, stages, or direct Lambda/service integration.
-
Compare API Gateway with adjacent AWS options for the same problem space.
Compare API Gateway by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
-
Compare VPC with adjacent AWS options for the same problem space.
Compare VPC by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
-
Compare ALB with adjacent AWS options for the same problem space.
Compare ALB by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
-
What metrics should trigger scaling or incident response across this stack?
Choose between EC2 vs Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
-
How does stateful vs stateless design impact EC2 architecture?
For EC2, state management should be designed around workload requirements, service limits, and measurable operational outcomes.
-
When is API Gateway a poor fit, and what would you pick instead?
API Gateway is a poor fit when you need ultra-low-cost high-throughput simple HTTP routing, long-lived streaming, large payloads, or full load-balancer control.
-
How does stateful vs stateless design impact API Gateway architecture?
For API Gateway, state management should be designed around workload requirements, service limits, and measurable operational outcomes.
-
How does stateful vs stateless design impact Lambda architecture?
For Lambda, state management should be designed around workload requirements, service limits, and measurable operational outcomes.
-
How does stateful vs stateless design impact ECS Service architecture?
For ECS Service, state management should be designed around workload requirements, service limits, and measurable operational outcomes.
-
When is VPC a poor fit, and what would you pick instead?
VPC is a poor fit when you are designing a purely managed public service with no private networking needs, though most production AWS environments still rely on VPC design somewhere.
-
How does stateful vs stateless design impact VPC architecture?
For VPC, state management should be designed around workload requirements, service limits, and measurable operational outcomes.
-
When is ALB a poor fit, and what would you pick instead?
ALB is a poor fit when you need static IPs, ultra-low latency Layer 4 pass-through, non-HTTP protocols, or API-management features such as usage plans and request validation.
-
How does stateful vs stateless design impact ALB architecture?
For ALB, state management should be designed around workload requirements, service limits, and measurable operational outcomes.