AWS interview questions

22 questions from the AWS Fundamentals: Core Services for Cloud Beginners course, each with the correct answer and an explanation. Try to answer before you open the answer.

Module 1: Getting Started

1. Why deploy your app's servers across multiple Availability Zones?

  1. It makes the code run faster
  2. It reduces the AWS bill automatically
  3. It survives the failure of a single data center
  4. It lowers latency to every country
Show answer

Answer: It survives the failure of a single data center

AZs are physically isolated, so spreading instances across them gives you resilience if one AZ goes down.

Lesson: The Console, Regions & Availability Zones

Module 2: IAM

2. What does the principle of least privilege recommend?

  1. Give admin access so nothing is ever blocked
  2. Never grant any permissions
  3. Share the root password
  4. Grant only the permissions actually needed for the task
Show answer

Answer: Grant only the permissions actually needed for the task

Least privilege minimizes what could go wrong if credentials leak or a mistake happens.

Lesson: Policies & Least Privilege

Module 3: Compute

3. If a security group allows inbound traffic on port 443, what happens to the response traffic?

  1. It's automatically allowed because security groups are stateful
  2. It's blocked unless a separate outbound rule allows it
  3. It depends on the instance's operating system
  4. It is deleted
Show answer

Answer: It's automatically allowed because security groups are stateful

Stateful means the return traffic of an allowed request is automatically permitted, regardless of outbound rules.

Lesson: Security Groups

Module 4: Storage

4. A company accidentally exposes customer data because a bucket became public. What AWS setting most directly guards against this?

  1. S3 storage classes
  2. Block Public Access
  3. Lifecycle rules
  4. EC2 instance types
Show answer

Answer: Block Public Access

Block Public Access prevents a bucket from being made public even by a misconfigured policy.

Lesson: Bucket Policies & Public Access

Module 5: Databases

5. A small team wants a Postgres database and has no dedicated DBA. What's usually the better starting choice?

  1. Self-manage Postgres on EC2
  2. Avoid a database entirely
  3. Use RDS for Postgres
  4. Run it on a laptop
Show answer

Answer: Use RDS for Postgres

Without dedicated ops expertise, a managed service like RDS removes patching, backup, and failover burden.

Lesson: RDS vs Self-Managed Database

6. What does a DynamoDB query use to find items fast?

  1. The partition key (and sort key)
  2. A full table scan
  3. SQL joins
  4. The AMI id
Show answer

Answer: The partition key (and sort key)

Queries by key are fast; scans read the whole table.

Lesson: DynamoDB at a Glance

Module 6: Networking

7. You need to route requests to different backend services based on the URL path. Which fits best?

  1. Network Load Balancer
  2. Security Group
  3. Auto Scaling Group
  4. Application Load Balancer
Show answer

Answer: Application Load Balancer

ALB understands HTTP and can route based on path, host, or headers.

Lesson: Elastic Load Balancer at a Glance

Module 7: Serverless

8. What is a key benefit of the API Gateway + Lambda pattern for a low-traffic API?

  1. You pay roughly per request with no idle server cost
  2. You pay for servers running 24/7 regardless of traffic
  3. It removes the need for authentication
  4. You must run servers 24/7
Show answer

Answer: You pay roughly per request with no idle server cost

Lambda's pricing is per invocation/duration, so a low-traffic API isn't paying for idle capacity.

Lesson: API Gateway + Lambda Pattern

Module 8: Content Delivery

9. You want 5% of traffic to hit a new version for a canary test. Which Route 53 policy fits?

  1. Simple routing
  2. Weighted routing
  3. Failover routing
  4. Geolocation only
Show answer

Answer: Weighted routing

Weighted routing lets you split traffic by percentage between two versions.

Lesson: Route 53 (DNS) Basics

Module 9: Monitoring

10. What can a CloudWatch alarm do besides sending a notification?

  1. Nothing, it only notifies
  2. Automatically fix application bugs
  3. Trigger an action, like Auto Scaling
  4. Delete the resource
Show answer

Answer: Trigger an action, like Auto Scaling

Alarms can trigger Auto Scaling actions or other automated responses, not just notify.

Lesson: CloudWatch Alarms at a Glance

11. Which service fans one message out to many subscribers?

  1. SNS
  2. SQS
  3. S3
  4. IAM
Show answer

Answer: SNS

SNS is publish/subscribe; SQS is a queue for consumers to poll.

Lesson: Messaging: SQS & SNS

Module 10: Containers on AWS

12. A team wants to stay portable across cloud providers using Kubernetes they already know. What fits best on AWS?

  1. ECS
  2. Lambda
  3. S3
  4. EKS
Show answer

Answer: EKS

EKS runs standard Kubernetes, preserving portability and reusing existing Kubernetes expertise.

Lesson: ECS vs EKS at a Glance

Module 11: Tooling

13. What is the main benefit of describing infrastructure as code instead of clicking through the console?

  1. Changes become reviewable, versioned, and repeatable
  2. It makes servers run faster
  3. It removes the need for IAM permissions
  4. It replaces IAM
Show answer

Answer: Changes become reviewable, versioned, and repeatable

IaC turns infrastructure changes into code that can be reviewed, versioned, and reliably reapplied.

Lesson: Infrastructure as Code Awareness

Module 12: Cost

14. You want an early email warning before monthly spend exceeds $100. What should you set up?

  1. A new IAM policy
  2. An AWS Budget with a notification threshold
  3. A CloudFront distribution
  4. An S3 bucket policy
Show answer

Answer: An AWS Budget with a notification threshold

AWS Budgets is built exactly for setting a spend threshold and getting notified as it's approached.

Lesson: Cost Management Basics

15. Which AWS service is object storage?

  1. EC2
  2. RDS
  3. S3
  4. IAM
Show answer

Answer: S3

S3 stores files as objects in buckets.

Lesson: Cost Management Basics

16. What does least privilege recommend?

  1. Grant admin to everyone
  2. Share root credentials
  3. Disable IAM
  4. Grant only the permissions actually needed
Show answer

Answer: Grant only the permissions actually needed

Start narrow and add as required.

Lesson: Cost Management Basics

17. Why use multiple Availability Zones?

  1. To survive the failure of one data center
  2. To make code faster
  3. To lower the bill automatically
  4. To skip backups
Show answer

Answer: To survive the failure of one data center

AZs are isolated data centers in a region.

Lesson: Cost Management Basics

18. Which feature is a stateful virtual firewall for EC2?

  1. S3 bucket
  2. Security group
  3. CloudFront
  4. Route 53
Show answer

Answer: Security group

Response traffic is allowed automatically.

Lesson: Cost Management Basics

19. Which service runs code on events without servers?

  1. EC2
  2. RDS
  3. Lambda
  4. VPC
Show answer

Answer: Lambda

You pay per invocation and duration.

Lesson: Cost Management Basics

20. What does Block Public Access do?

  1. Encrypts objects
  2. Deletes old data
  3. Speeds up uploads
  4. Prevents buckets from becoming public
Show answer

Answer: Prevents buckets from becoming public

It overrides accidental public policies.

Lesson: Cost Management Basics

21. Which service is AWS's CDN?

  1. CloudFront
  2. Route 53
  3. SQS
  4. Aurora
Show answer

Answer: CloudFront

CloudFront caches content at edge locations.

Lesson: Cost Management Basics

22. Why tag AWS resources?

  1. To make them faster
  2. To see who and what is driving cost
  3. To encrypt them
  4. To skip IAM
Show answer

Answer: To see who and what is driving cost

Cost Explorer can group spend by tag.

Lesson: Cost Management Basics

← Back to the course