iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

Quiz

Eight quick questions on AWS IAM, S3, CloudFront, Lambda, and operational best practices.

Sample questions

EXAMPLE
# AWS quiz

1) IAM least privilege means:
   a) one role for everything
   b) every principal gets only the actions and resources it needs
   c) admin role for developers
   d) no roles, only users

2) S3 bucket policies vs ACLs in 2026:
   a) prefer ACLs
   b) prefer bucket policies + BucketOwnerEnforced ownership controls; ACLs disabled by default
   c) the same
   d) ACLs are mandatory

3) CloudFront origin access:
   a) make the S3 bucket public
   b) use Origin Access Control (OAC) and keep the bucket private
   c) use a NAT gateway
   d) requires VPC peering

4) Lambda cold start hurts:
   a) memory usage
   b) first-request latency, especially with large packages or VPC ENI attachment
   c) max payload size
   d) it does not exist

5) IAM Roles Anywhere is for:
   a) GitHub Actions only
   b) workloads outside AWS that can present X.509 certificates to assume IAM roles
   c) replacing MFA
   d) cross-region replication

6) The cheapest way to host a static site at low traffic:
   a) EC2 + nginx
   b) ECS Fargate
   c) S3 + CloudFront + ACM + Route 53
   d) Lambda@Edge alone

7) AWS Secrets Manager vs SSM Parameter Store:
   a) the same
   b) Secrets Manager rotates secrets and is more expensive; SSM is fine for non-rotating config or KMS-encrypted secrets
   c) SSM is for parameters only
   d) Secrets Manager is free

8) The biggest risk of a long-lived IAM user access key:
   a) cost
   b) it can be leaked from CI logs, dotfiles, screenshots; rotate or move to OIDC/STS
   c) it expires too fast
   d) it cannot do anything

Answers: 1b, 2b, 3b, 4b, 5b, 6c, 7b, 8b.

Why it matters

IAM least privilege + OIDC federation + private origins + secrets in a secret store. If you nail those four, most AWS production issues are about cost and capacity, not security.

Tip: Tweak the snippet with Try it Yourself », then sit the quiz at the bottom of the page.

Example

Example
# 3 questions per lesson.
Try it Yourself »

Discussion

Loading…