What is AWS IAM?
Identity and Access Management: controls who/what can access AWS resources and what actions they can perform (users, roles, policies).
IAM: User vs Role vs Policy
User = human identity; Role = assumable identity (by services or users) with temporary credentials; Policy = permissions document attached to a user/role/resource.
What does “least privilege” mean in IAM?
Grant only the minimum permissions required to perform a task; avoid broad actions/resources like ‘*’ unless necessary.
Why avoid long-lived access keys in production?
They are easy to leak and hard to rotate; prefer IAM roles with temporary credentials or secret managers.
What is an IAM role used for in services?
To give AWS services (EC2/ECS/Lambda) permissions via temporary credentials without embedding secrets.
What is a VPC?
A Virtual Private Cloud: your isolated virtual network in AWS where you place subnets, routing, security controls, and resources.
Public subnet vs private subnet
Public subnet routes to an Internet Gateway; Private subnet has no direct inbound internet route (often uses NAT for outbound internet).
What is an Internet Gateway (IGW)?
A gateway that enables resources in a VPC public subnet to have internet connectivity.
What is a NAT Gateway used for?
Allows instances in private subnets to make outbound internet connections without being directly reachable from the internet.
Security Group vs NACL
Security Group = stateful firewall at instance/ENI level; NACL = stateless firewall at subnet level.
What does “stateful” mean for Security Groups?
Return traffic is automatically allowed if inbound/outbound is permitted; you don’t need explicit rules for response traffic.
What is EC2?
Elastic Compute Cloud: virtual machines where you manage OS-level configuration and scaling (with ASG).
What is ECS?
Elastic Container Service: runs containerized applications; integrates with load balancers, IAM roles, and can run on Fargate.
What is Fargate?
Serverless compute for containers: run ECS tasks without managing EC2 instances.
What is EKS?
Elastic Kubernetes Service: managed Kubernetes control plane to run container workloads.
What is Lambda?
Serverless function compute: event-driven, auto-scaling, pay-per-invocation; best for short-lived tasks.
EC2 vs Containers vs Lambda (quick selection)
EC2 = full control; Containers (ECS/EKS) = standardized app packaging + scalability; Lambda = event-driven, minimal ops, some limits (timeouts/cold starts).
What is RDS?
Managed relational database service (e.g., PostgreSQL, Oracle) with backups, patching, and HA options.
When choose RDS (relational DB)?
When you need transactions, strong consistency, joins, constraints, and rich SQL querying.
What is DynamoDB?
Managed NoSQL key-value/document database with low latency and horizontal scalability; designed around access patterns.
When choose DynamoDB?
High throughput/scale needs with predictable key-based access; where joins/complex relational queries are not required.
What is S3?
Object storage for files/blobs (logs, backups, assets), highly durable and scalable.
S3: common use cases
Storing documents/images, backups, static web assets, data lakes, logs and artifacts.
What is CloudWatch Logs?
AWS logging service to collect, store, and query logs from apps and AWS services.