Cloud roles increasingly expect hands-on AWS knowledge even outside dedicated DevOps positions. This guide covers the questions that come up most often for cloud/DevOps engineer interviews.
Who should use this guide
Engineers preparing for Cloud Engineer, DevOps Engineer or SRE interviews where AWS is the primary platform.
Interview preparation tips
- Be ready to draw a simple architecture diagram for a typical 3-tier web app on AWS.
- Know the cost and availability trade-offs of your answers, not just the "correct" service name.
- Have one real incident or optimisation story ready, interviewers love concrete war stories.
Beginner questions
1. What is the difference between EC2 and Lambda?
EC2 gives you a persistent virtual machine you manage and pay for continuously. Lambda runs your code only in response to events, scales automatically, and you pay per invocation/duration, no server management.
2. What is an S3 bucket, and how is data organized inside it?
S3 is object storage. Data is stored as objects (files) inside buckets, addressed by a key (effectively a path). There's no real folder hierarchy. It's simulated via key prefixes.
3. What's the difference between a security group and a network ACL?
Security groups are stateful and operate at the instance level, return traffic is automatically allowed. Network ACLs are stateless and operate at the subnet level. You must explicitly allow both inbound and outbound rules.
Intermediate questions
4. Explain the difference between an Application Load Balancer and a Network Load Balancer.
| Aspect | ALB | NLB |
|---|---|---|
| OSI layer | Layer 7 (HTTP/HTTPS) | Layer 4 (TCP/UDP) |
| Routing | Path/host-based rules | Connection-based, ultra-low latency |
| Typical use | Web applications, microservices | High-throughput, low-latency workloads |
5. How does Auto Scaling decide when to add or remove instances?
Auto Scaling Groups use CloudWatch alarms (CPU, request count, custom metrics) against scaling policies, target tracking, step scaling, or scheduled scaling, to add/remove instances within configured min/max bounds.
6. What is the shared responsibility model?
AWS secures "the cloud", physical infrastructure, hardware, and the virtualization layer. You're responsible for security "in the cloud", your data, IAM policies, OS patching (for EC2), and network configuration.
Advanced questions
7. How would you design a highly available, multi-region architecture?
Deploy across at least two Availability Zones within a region behind a load balancer, with Auto Scaling for resilience. For multi-region, replicate data (e.g. S3 Cross-Region Replication, DynamoDB Global Tables) and use Route 53 with health checks for failover or latency-based routing.
8. What's the difference between an IAM role and an IAM user?
An IAM user represents a long-term identity (a person or service) with permanent credentials. An IAM role is assumed temporarily, by a user, service, or another AWS account, granting short-lived credentials without storing static secrets, which is the recommended pattern for EC2/Lambda to access other services.
9. How do you keep infrastructure reproducible across environments?
Treat infrastructure as code, using tools like CloudFormation or Terraform, so that staging and production are defined from the same templates with environment-specific parameters, eliminating manual drift between environments.
Frequently Asked Questions
Do I need an AWS certification to pass these interviews?
Not strictly, but hands-on project experience plus a certification (like AWS Certified Solutions Architect Associate) signals structured knowledge and often helps pass resume screening.
Which AWS services should I prioritize if I'm short on time?
EC2, S3, IAM, VPC basics, Auto Scaling, Load Balancers, and RDS cover the vast majority of interview questions for generalist cloud roles.
Final preparation tips
Build one small project end-to-end on AWS, even a simple app behind a load balancer with auto scaling, real hands-on experience answers questions interviewers haven't even asked yet.
