AWS Interview Questions and Answers
AWS interviews start with the core services and when to choose each: EC2 and auto scaling, S3 storage classes and consistency, IAM users, roles and policies, VPC subnets, route tables and security groups, load balancers, and managed databases such as RDS and DynamoDB.
Senior rounds ask you to design on AWS: high availability across availability zones, cost control, serverless with Lambda and API Gateway, queues and event-driven designs (SQS, SNS, EventBridge), monitoring with CloudWatch, and security best practice such as least privilege and encryption.
Questions
- What is the difference between an IAM user, group, role and policy?
- How does IAM policy evaluation work? What wins: Allow or Deny?
- Identity-based vs resource-based policies, and when do you need a role for cross-account access?
- What is STS and how does AssumeRole work?
- What are SCPs and permission boundaries, and how do they differ?
- Explain the EC2 purchasing options.
- EBS vs instance store vs EFS: how do you choose?
- Which EBS volume types exist and when would you use each?
- What is an Auto Scaling Group and which scaling policies are available?
- Application, Network and Gateway Load Balancer: differences?
- Describe the S3 storage classes.
- What is S3's consistency model?
- How do you secure an S3 bucket?
- How do you upload and speed up very large files to S3?
- What is S3 Cross-Region Replication and what does it not do?
- Public vs private subnets, internet gateway and NAT gateway?
- Security groups vs network ACLs?
- Gateway endpoint vs interface endpoint vs PrivateLink?
- VPC peering vs Transit Gateway?
- How do you connect an on-premises network to AWS?
- How does AWS Lambda work and what are its limits?
- What is a Lambda cold start and how do you reduce it?
- Synchronous vs asynchronous vs poll-based Lambda invocation: how are errors and retries handled?
- How do reserved concurrency and provisioned concurrency differ?
- What are DynamoDB partition keys, sort keys and how are items distributed?
- Compare GSI and LSI.
- On-demand vs provisioned capacity, and what are RCU/WCU?
- How do DynamoDB transactions, conditional writes and streams help with consistency?
- RDS Multi-AZ vs read replicas?
- Why choose Aurora over standard RDS MySQL/PostgreSQL?
- ElastiCache Redis vs Memcached?
- SQS standard vs FIFO queues?
- SQS vs SNS vs EventBridge vs Kinesis: when to use which?
- How do you guarantee idempotency with at-least-once delivery?
- What does CloudFront do and how do you invalidate or secure content?
- Explain Route 53 routing policies.
- ECS vs EKS vs Fargate?
- How do pods get AWS permissions in EKS (IRSA vs Pod Identity)?
- CloudWatch vs CloudTrail vs Config?
- How would you troubleshoot a sudden latency spike on an ALB-fronted service?
- What is the Well-Architected Framework?
- Design a highly available, multi-AZ three-tier web application on AWS.
- Compare disaster recovery strategies and their RTO/RPO.
- How do you reduce an AWS bill?
- What is KMS and the difference between customer managed and AWS managed keys?
- Secrets Manager vs Systems Manager Parameter Store?
- Design an event-driven image processing pipeline with serverless services.
- API Gateway REST vs HTTP API vs ALB for fronting Lambda?
- What is the AWS shared responsibility model?
- Explain Regions, Availability Zones and edge locations.
- What is the difference between scalability, elasticity and high availability?
- What is Infrastructure as Code and which AWS tools support it?
- What are best practices for the AWS root user?
- What is IAM Identity Center (AWS SSO) and why use it?
- Cognito user pools vs identity pools?
- What is IAM Access Analyzer?
- How do you grant least privilege in practice?
- What is ABAC and how does it compare to RBAC in AWS?
- GuardDuty vs Inspector vs Macie vs Security Hub?
- AWS WAF vs Shield vs Network Firewall?
- Explain envelope encryption and KMS key rotation.
- How do you enforce encryption in transit and at rest on AWS?
- How would you detect and respond to a compromised access key?
- What is AWS Organizations and why use multiple accounts?
- What is AWS Control Tower?
- What is an AMI and how do you build and share one?
- What are EC2 placement groups?
- How do EC2 instance families map to workloads?
- What is IMDSv2 and why enforce it?
- How do you connect to private EC2 instances securely?
- How do Spot Instances work and how do you handle interruptions?
- EFS vs FSx: which file system for which workload?
- What is AWS Storage Gateway?
- How do you migrate large datasets to AWS?
- How do EBS snapshots work and what is Fast Snapshot Restore?
- How do you get the most throughput from S3?
- What are S3 pre-signed URLs and how do they work?
- What is S3 Versioning and how does it interact with deletes and lifecycle?
- What are S3 Access Points and Object Lambda?
- How can you trigger actions on S3 object creation?
Related
- System design interview questions
- Microservices interview questions
- Kafka interview questions
- Practice coding problems online
Frequently asked questions
What is the difference between a security group and a network ACL?
A security group is a stateful firewall at the instance level; a network ACL is a stateless firewall at the subnet level, with separate inbound and outbound rules.
When would you use Lambda instead of EC2?
For short, event-driven or spiky workloads where you do not want to manage servers. Use EC2 for long-running processes, special hardware or predictable steady load.
How do you make an application highly available on AWS?
Run across multiple availability zones behind a load balancer, use auto scaling, keep state in managed multi-AZ services, and test failover.