Home › Interview questions › AWS
AWS Interview Questions & Answers
74 AWS interview questions in 4 levels — junior to senior, plus 16 production scenarios. Read 3 free answers with real-world analogies.
Free sample answers
What is AWS, and what does it actually mean to say it offers services across IaaS, PaaS, and SaaS?
One-liner
AWS (Amazon Web Services) is a cloud platform that rents out computing resources over the internet, and it offers services at different levels — from raw infrastructure you fully manage yourself to fully managed software you just use directly.
Real-world analogy
It's like a single company offering everything from empty warehouse space you fit out yourself (IaaS), to a fully furnished office suite (PaaS), to a ready-to-use serviced hotel room (SaaS) — same overall provider, different levels of what they set up for you versus what you handle yourself.
Detailed explanation
- IaaS services like EC2 give you raw virtual machines — you manage the operating system, patching, and everything running on top.
- PaaS-style services like Elastic Beanstalk or Lambda handle the underlying infrastructure for you, letting you focus mainly on your actual application code.
- AWS offers over 200 services total, but a small core set (EC2, S3, RDS, IAM, VPC) covers the vast majority of what most teams actually use day to day.
Scenario
A team building a simple web application debates between manually configuring EC2 instances or using a more managed service. Since they don't need deep control over the underlying server, choosing a managed option lets them focus on their application rather than server maintenance, patching, and scaling logic.
Best practices
- Learn the core services (EC2, S3, IAM, VPC, RDS) deeply before trying to learn all 200+ AWS services.
- Default to managed services where they meet your needs, since they reduce ongoing operational work considerably.
- Use the AWS Free Tier to actually practice hands-on rather than only reading about services conceptually.
What's the difference between an Application Load Balancer, a Network Load Balancer, and a Classic Load Balancer?
One-liner
An Application Load Balancer operates at the application layer and supports advanced routing based on URL path or hostname, a Network Load Balancer operates at the network layer for extremely high performance and static IP support, and a Classic Load Balancer is the older, largely legacy option AWS now recommends against for new use cases.
Real-world analogy
An Application Load Balancer is like a receptionist who reads what each visitor actually needs and sends them to the correct department. A Network Load Balancer is like a high-speed turnstile simply directing raw traffic flow as fast as possible without reading anything about it. A Classic Load Balancer is like an older reception desk still in service but no longer the design anyone would choose today.
Detailed explanation
- Application Load Balancers work at Layer 7 (HTTP/HTTPS), enabling routing decisions based on the actual URL path or hostname, which is useful for microservices architectures.
- Network Load Balancers work at Layer 4 (TCP/UDP), offering extremely high performance and the ability to assign a static IP address, useful for non-HTTP traffic or latency-sensitive applications.
- Classic Load Balancers predate both of the others and are generally not recommended for new applications, since the newer options offer more capability at similar or better cost.
Scenario
A team needs to route requests for /api to one set of backend servers and requests for /images to a different set optimized for serving files. A Network Load Balancer can't make this distinction, since it only understands raw network traffic, not URL paths. Using an Application Load Balancer instead lets them configure exactly this kind of path-based routing directly.
Best practices
- Use an Application Load Balancer for most everyday HTTP/HTTPS web application traffic.
- Use a Network Load Balancer specifically when you need extremely high performance, a static IP, or need to load balance non-HTTP protocols.
- Avoid Classic Load Balancers for new applications, since AWS's newer load balancer types offer more capability.
An application suddenly gets 'access denied' trying to read from an S3 bucket that was working fine before. What do you check?
One-liner
Check whether the bucket's own policy or block public access settings were recently changed, whether the specific IAM credentials being used have actually changed or expired, and whether any explicit Deny exists anywhere in the combined policy evaluation.
Real-world analogy
It's like a keycard that used to work at a specific door suddenly being rejected — you'd check whether the door's own access list was recently changed, whether the specific keycard itself has expired, and whether someone's specific badge permissions were recently adjusted.
Detailed explanation
- Checking the bucket's own policy and Block Public Access settings for a recent change is a common first step, since a security tightening effort elsewhere can inadvertently affect access that used to work.
- If the application uses an IAM role's temporary credentials, confirming that role's attached policies haven't changed, and that the role itself hasn't been accidentally deleted and recreated with different permissions, is a reasonable next check.
- Remember that an explicit Deny anywhere in either the IAM policy or the bucket policy always wins, so checking both together (not just one) is necessary to fully understand what's actually happening.
Scenario
An application suddenly can't read from an S3 bucket it's accessed successfully for months. Investigation reveals the bucket's policy was recently tightened as part of an unrelated security improvement, adding a condition restricting access to a specific VPC endpoint the application's current network path doesn't actually go through. Adjusting the bucket policy to correctly account for the application's actual network path restores access without weakening the overall security improvement that was intended.
Best practices
- Check the bucket's own policy and Block Public Access settings first when access suddenly breaks.
- Check for any explicit Deny in both the IAM policy and the bucket policy together, since either one can independently cause a denial.
- Use CloudTrail to check for a recent change to the specific bucket's policy or the relevant IAM role, rather than only investigating from the application's own side.
A preview of the 74 questions in the AWS guide
Junior (20)
- What is AWS, and what does it actually mean to say it offers services across IaaS, PaaS, and SaaS?
- What are AWS regions and availability zones, and why does the distinction actually matter?
- What is EC2, and what are the basic decisions you make when launching an instance?
- What is S3, and what are the different storage classes used for?
+ 16 more Junior questions, with full answers, in the guide.
Mid-level (20)
- How is an IAM policy actually structured, and what do the key fields like Effect, Action, and Resource actually mean?
- What is VPC peering, and what are its actual limitations compared to something like a Transit Gateway?
- What's the difference between a NAT Gateway and an Internet Gateway?
- What's the difference between an S3 bucket policy and an IAM policy when both can control access to the same bucket?
+ 16 more Mid-level questions, with full answers, in the guide.
Senior (18)
- What is the AWS Well-Architected Framework, and how would you actually use it in practice?
- How would you design a multi-account strategy (a 'landing zone') for a large organization adopting AWS at scale?
- What are IAM permission boundaries, and how are they different from Service Control Policies?
- How would you approach cost optimization for AWS at an organizational scale, beyond just resizing individual instances?
+ 14 more Senior questions, with full answers, in the guide.
Scenario (16)
- You can't SSH into an EC2 instance that was working fine before. How do you troubleshoot it?
- An application suddenly gets 'access denied' trying to read from an S3 bucket that was working fine before. What do you check?
- A Lambda function experiences a noticeable delay on its first invocation after being idle, but responds quickly afterward. How do you address this?
- Auto Scaling isn't triggering for your EC2 Auto Scaling Group, even though the application is clearly under heavy load. How do you debug it?
+ 12 more Scenario questions, with full answers, in the guide.
Get the full DevOps / SRE Interview Guide