RMRM Full Stack & AI Engineer · All questions · Roadmaps
Cloud · interview questions

AWS Interview Questions

Common AWS interview questions spanning beginner to advanced, covering core services, architecture, security, networking, and best practices frequently asked in cloud engineer, solutions architect, and DevOps roles.

1. What is AWS and what are its core components?

beginner

AWS (Amazon Web Services) is a cloud computing platform offering on-demand infrastructure and services. Core components include compute (EC2, Lambda), storage (S3, EBS), databases (RDS, DynamoDB), networking (VPC, Route 53), and security (IAM, KMS).

2. What is the difference between S3 and EBS?

beginner

S3 is object storage accessible over HTTP, ideal for unstructured data, backups, and static assets, with virtually unlimited capacity. EBS (Elastic Block Store) is block-level storage attached to a single EC2 instance, behaving like a hard drive for OS and application data.

3. What is an IAM Role and how does it differ from an IAM User?

beginner

An IAM User represents a person or application with long-term credentials (username/password or access keys). An IAM Role is an identity with temporary credentials assumed by AWS services, users, or external identities, and has no permanent credentials attached to it.

4. What is a VPC and why is it important?

beginner

A VPC (Virtual Private Cloud) is a logically isolated network within AWS where you control IP addressing, subnets, route tables, and gateways. It is important because it provides network-level security and segmentation for your AWS resources.

5. What is the difference between a public subnet and a private subnet?

beginner

A public subnet has a route to an Internet Gateway, allowing resources to be reachable from the internet. A private subnet has no direct internet route; resources access the internet only through a NAT Gateway or NAT instance.

6. What are the different S3 storage classes?

beginner

S3 storage classes include Standard (frequently accessed data), Intelligent-Tiering (automatic cost optimization), Standard-IA and One Zone-IA (infrequent access), Glacier Instant/Flexible/Deep Archive (long-term archival with varying retrieval times), and S3 Express One Zone (high-performance single-AZ).

7. What is Auto Scaling and how does it work?

intermediate

Auto Scaling automatically adjusts the number of EC2 instances (or other resources) in response to demand using scaling policies based on CloudWatch metrics. It ensures availability by replacing unhealthy instances and controls cost by scaling in when demand drops.

8. What is the difference between horizontal and vertical scaling in AWS?

intermediate

Vertical scaling (scale up) means increasing the instance size (CPU/RAM), which requires downtime and has limits. Horizontal scaling (scale out) means adding more instances, is achieved with Auto Scaling Groups and load balancers, and is preferred for resilience and elasticity.

9. What is CloudFront and how does it improve performance?

intermediate

CloudFront is AWS's CDN that caches content at globally distributed edge locations close to end users, reducing latency. It also integrates with Shield and WAF for DDoS protection and can front S3, EC2, ALB, or custom origins.

10. What is the difference between an Application Load Balancer (ALB) and a Network Load Balancer (NLB)?

intermediate

ALB operates at Layer 7 (HTTP/HTTPS), supporting path-based and host-based routing, WebSockets, and gRPC — ideal for microservices. NLB operates at Layer 4 (TCP/UDP), handling millions of requests per second with ultra-low latency and static IP support.

11. What is the difference between RDS and DynamoDB?

intermediate

RDS is a managed relational database service supporting SQL engines (MySQL, PostgreSQL, Aurora, etc.) suited for structured, relational data with ACID transactions. DynamoDB is a fully managed NoSQL key-value and document database designed for single-digit millisecond latency at any scale.

12. Explain the AWS Shared Responsibility Model.

intermediate

AWS is responsible for security 'of' the cloud — hardware, global infrastructure, managed services. Customers are responsible for security 'in' the cloud — OS patching, application security, IAM configuration, data encryption, and network controls within their environment.

13. What is an SQS queue and how does it differ from SNS?

intermediate

SQS is a managed message queue for decoupling producers and consumers; messages are pulled by consumers and held until processed or expired. SNS is a pub/sub notification service that pushes messages to multiple subscribers (SQS, Lambda, HTTP, email) simultaneously — they are often combined in a fan-out pattern.

14. What is AWS Lambda and what are its cold start considerations?

intermediate

Lambda is a serverless compute service that runs code in response to events without provisioning servers, billing only for execution time. Cold starts occur when a new execution environment is initialized (container spin-up + runtime init), adding latency; mitigations include Provisioned Concurrency, keeping functions warm, and minimizing package size.

15. What is the difference between Security Groups and Network ACLs?

intermediate

Security Groups are stateful, instance-level firewalls that evaluate rules for both inbound and outbound traffic automatically. Network ACLs are stateless, subnet-level firewalls where return traffic must be explicitly allowed; they are evaluated in rule-number order.

16. What is AWS CloudFormation and how does it differ from Terraform?

advanced

CloudFormation is AWS's native IaC service using JSON/YAML templates to provision AWS resources, with native drift detection and StackSets for multi-account deployments. Terraform is a vendor-agnostic IaC tool using HCL that supports multi-cloud, has a richer ecosystem of modules, and manages state explicitly in a backend.

17. What are VPC Endpoints and why would you use them?

advanced

VPC Endpoints allow private connectivity between a VPC and AWS services (like S3 or DynamoDB) without traversing the public internet, reducing exposure and data transfer costs. Gateway Endpoints are route-table-based (S3/DynamoDB); Interface Endpoints use PrivateLink and ENIs for most other services.

18. Explain AWS Transit Gateway and when you would use it over VPC Peering.

advanced

Transit Gateway acts as a regional network hub connecting multiple VPCs and on-premises networks via a single managed gateway, supporting transitive routing. VPC Peering is a 1-to-1 non-transitive connection; Transit Gateway is preferred when managing many VPCs to avoid the complexity of a full mesh peering topology.

19. What is RDS Multi-AZ and how does it differ from Read Replicas?

advanced

Multi-AZ synchronously replicates data to a standby in a different AZ for automatic failover, providing high availability (HA) with typically 60–120 second failover — it does not serve read traffic. Read Replicas use asynchronous replication to offload read workloads and can be promoted to standalone DBs, but are not a HA failover mechanism.

20. What are AWS Service Control Policies (SCPs) and how do they work?

advanced

SCPs are IAM-like policies attached to AWS Organizations OUs or accounts that define the maximum permissions available to all principals within those accounts, even overriding root users. They do not grant permissions themselves; effective permissions are the intersection of SCPs and identity-based policies, making them a preventive guardrail for governance.

Practice these out loud with an AI interviewer that grills you and grades your answers.
Open the app — free to start

© RM Full Stack & AI Engineer · All interview questions · Roadmaps · Open the app