AWS_Interview_Problems
AWS_Interview_Problems
How does Amazon EC2 provide scalability and what are the trade-offs of
instance types?
EC2 provides horizontal and vertical scalability via Auto Scaling Groups and instance
resizing.
Trade-offs between instance types:
General purpose (e.g., t3, m5) — balanced CPU/memory.
Compute optimized (e.g., c5) — good for CPU-intensive workloads.
Memory optimized (e.g., r5) — suitable for in-memory databases.
Storage optimized (e.g., i3) — high IOPS and throughput.
Spot and reserved instances help manage cost based on workload predictability.
What are the key differences between S3, EBS, and EFS in AWS?
S3 (Simple Storage Service):
Object storage — scalable, durable, used for static content, backups, logs.
EBS (Elastic Block Store):
Block storage for EC2 — persistent volumes attached to instances.
EFS (Elastic File System):
Shared file storage — accessible from multiple EC2 instances concurrently.
Each serves a distinct storage access pattern and performance profile.
How does AWS IAM work and what are best practices for managing
permissions?
IAM (Identity and Access Management) controls access to AWS resources.
Best practices:
Follow principle of least privilege — minimal required access.
Use IAM roles instead of long-term credentials.
Use IAM policies (inline or managed) for permission granularity.
Enable MFA (multi-factor authentication).
Monitor with IAM Access Analyzer and CloudTrail logs.