Q1. Difference between an AWS Region and an Availability Zone?
A Region is a geographic area with multiple isolated AZs. An AZ is one or more discrete data centers with redundant power and networking within a Region.
Q2. Why does IAM use "default deny"?
To enforce least privilege — nothing is allowed unless explicitly permitted in a policy.
Q3. Difference between an IAM User and an IAM Role?
A User has long-term credentials. A Role provides temporary credentials assumed by trusted entities (users, services, federated identities).
Q4. Which CLI command verifies your current AWS identity?
aws sts get-caller-identity
Q5. What does MFA add to authentication?
A second factor beyond the password, reducing risk if the password is compromised.
Q6. Why attach policies to groups instead of individual users?
Simplifies management, ensures consistency, and reduces orphaned permissions.
Q7. Purpose of Principal in a role trust policy?
It defines who or what is allowed to assume the role (e.g., ec2.amazonaws.com).
Q8. Which IAM tool shows services a user actually accessed?
IAM Access Advisor.
Q9. Which Region-selection factor relates to legal requirements?
Compliance and data residency.
Q10. What is an Edge Location used for?
Caching content and reducing latency for CloudFront, Route 53, and Global Accelerator.
Q11. Name two IAM best practices.
Enable MFA on root and privileged users; grant least privilege.
Q12. What does aws configure --profile <name> do?
Creates a named profile storing credentials and region in ~/.aws/credentials and ~/.aws/config.
Q13. Why did Step D4 intentionally fail?
To prove the least-privilege policy denies unauthorized actions.
Q14. What is an AWS Local Zone?
An extension of a Region placed in a metro area to run latency-sensitive workloads closer to end users.
Q15. Safest way to give EC2 access to S3?
Attach an IAM Role to the instance so it receives temporary credentials — never embed access keys.