Skip to content
TryHired.
Interview prep · Technical

AWS interview questions: answers from basics to architecture

The AWS fundamentals interviewers check, from IAM and VPCs to high availability and disaster recovery, in plain words.

Updated Nov 12, 2026 · Examples are configuration and formulas, not executed · questions: TryHired
Quick answer

AWS interviews usually cover the global layout (regions and Availability Zones), compute choices (EC2, containers, Lambda), storage (S3 classes, EBS, EFS), identity (IAM roles and least privilege), networking (VPCs, subnets, security groups) and how to design for availability, security and cost. Below are 20 questions from basic to advanced with short, stable answers and example policies or templates.

Basic

Basic aws interview questions

Advice

Basic1. What are regions and Availability Zones?

A region is a separate geographic area, such as us-east-1, with its own services and data. Each region contains several Availability Zones: isolated data-center groups with independent power and networking, connected by low-latency links. Spreading resources across AZs protects against one zone failing; spreading across regions protects against a regional outage.

Basic2. When would you choose EC2, containers or Lambda?

EC2 gives you virtual servers you manage, which suits long-running or specialized workloads. Containers on ECS or EKS (optionally on Fargate, with no servers to manage) suit packaged services. Lambda runs functions on demand in response to events and bills per invocation and duration, which suits spiky, event-driven work; a single invocation has a maximum run time of 15 minutes.

Basic3. What are the S3 storage classes?

S3 Standard is for frequently accessed data. Intelligent-Tiering moves objects between access tiers automatically. Standard-IA and One Zone-IA are for infrequent access (One Zone-IA keeps data in a single AZ). Glacier Instant Retrieval, Glacier Flexible Retrieval and Glacier Deep Archive are for archives, trading slower or costlier retrieval for lower storage cost. Lifecycle rules move objects between classes.

Basic4. What are IAM users, groups, roles and policies?

A policy is a JSON document that allows or denies actions on resources. Users are long-term identities for people or legacy apps; groups attach policies to many users. Roles are identities that services, applications or federated users assume to get temporary credentials. Best practice is least privilege and roles instead of long-lived access keys.

JSON (IAM policy) · Example (not executed)
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ReadReportsBucket",
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:ListBucket"],
      "Resource": [
        "arn:aws:s3:::example-reports",
        "arn:aws:s3:::example-reports/*"
      ]
    }
  ]
}

Basic5. What is the difference between a security group and a network ACL?

A security group is a stateful firewall attached to instances and other resources: you write allow rules, and return traffic is allowed automatically. A network ACL is a stateless firewall on a subnet: it has ordered allow and deny rules, and return traffic must be allowed explicitly.

Basic6. What are VPCs, public subnets and private subnets?

A VPC is your private network in AWS. A public subnet has a route to an internet gateway, so resources with public addresses can be reached from the internet. A private subnet has no such route; its resources reach the internet, if needed, through a NAT gateway. Databases and internal services usually sit in private subnets.

Basic7. What is the difference between EBS, EFS and S3?

EBS is block storage attached to one EC2 instance at a time (like a disk), in one AZ. EFS is a managed network file system many instances can mount at once. S3 is object storage accessed over an API, designed for very high durability and effectively unlimited size, and used for files, backups, static websites and data lakes.

Basic8. When would you use RDS or DynamoDB?

RDS runs managed relational databases (PostgreSQL, MySQL, MariaDB, Oracle, SQL Server; Aurora is AWS's compatible engine) for SQL queries, joins and transactions. DynamoDB is a managed key-value and document database that scales horizontally with predictable latency when you design your access patterns around partition keys.

Intermediate

Intermediate aws interview questions

Advice

Intermediate9. How do load balancers and Auto Scaling groups work together?

An Auto Scaling group keeps a desired number of EC2 instances running across AZs, replaces unhealthy ones and scales on metrics or schedules. A load balancer spreads traffic across the healthy instances: an Application Load Balancer routes HTTP(S) by host and path (layer 7), and a Network Load Balancer handles TCP and UDP at high throughput (layer 4).

Intermediate10. What is the difference between CloudWatch and CloudTrail?

CloudWatch collects metrics, logs and alarms about how your resources and applications are performing. CloudTrail records API activity: who did what, when and from where in your account. One answers is it healthy; the other answers who changed it.

Intermediate11. How would you make a web application highly available on AWS?

Run stateless app servers in an Auto Scaling group across at least two AZs behind a load balancer, keep sessions out of the servers (for example in ElastiCache or DynamoDB), use a Multi-AZ database with automated backups, serve static assets from S3 through CloudFront, and add health checks and alarms so failures are detected and replaced automatically.

Intermediate12. How do you secure data in S3?

Keep Block Public Access on unless a bucket must be public, grant access with IAM and bucket policies scoped to what is needed, encrypt objects (S3 encrypts new objects by default with SSE-S3; use SSE-KMS when you need key control and audit), enable versioning for recovery, and log access.

Intermediate13. Why use IAM roles for EC2 and Lambda instead of access keys?

A role gives the instance or function temporary credentials that AWS rotates automatically, so no long-lived key sits in code, environment variables or images where it could leak. Permissions are attached to the role and can be changed without redeploying.

Intermediate14. What is the difference between SQS, SNS and EventBridge?

SQS is a queue: messages wait until a consumer polls and deletes them, which decouples producers from consumers. SNS is publish-subscribe: one message is pushed to many subscribers. EventBridge is an event bus that routes events from AWS services, your apps and partners to targets based on rules.

Intermediate15. What is a Lambda cold start?

When no warm execution environment is available, Lambda must create one (download the code, start the runtime and run initialization code) before handling the request, which adds latency. Smaller packages, lighter initialization and provisioned concurrency reduce it.

Advanced

Advanced aws interview questions

Advice

Advanced16. What is the shared responsibility model?

AWS is responsible for security of the cloud: the physical facilities, hardware and the infrastructure that runs its services. You are responsible for security in the cloud: your data, identities and permissions, network configuration, operating systems you manage and application code. The split shifts with the service: you manage more on EC2 than on Lambda or S3.

Advanced17. What are the pillars of the Well-Architected Framework?

There are six: operational excellence, security, reliability, performance efficiency, cost optimization and sustainability. Interviewers often use them as the structure for a design review.

Advanced18. How do you reduce AWS costs?

Right-size instances from real usage, turn off idle resources, use Savings Plans or Reserved Instances for steady workloads and Spot Instances for interruptible ones, move cold data to cheaper storage classes with lifecycle rules, and watch data transfer. Cost Explorer and budgets make the spend visible.

Advanced19. What disaster recovery strategies does AWS describe?

From cheapest and slowest to restore, to most expensive and fastest: backup and restore, pilot light (core data replicated, servers off), warm standby (a scaled-down copy running) and multi-site active-active. You pick based on the recovery time and recovery point objectives the business needs.

Advanced20. What is infrastructure as code on AWS?

You define resources in templates or code and let a tool create and update them, so environments are repeatable and changes are reviewed like code. AWS CloudFormation uses YAML or JSON templates; the AWS CDK generates CloudFormation from programming languages; Terraform is a popular third-party option.

YAML (CloudFormation) · Example (not executed)
AWSTemplateFormatVersion: '2010-09-09'
Resources:
  ReportsBucket:
    Type: AWS::S3::Bucket
    Properties:
      VersioningConfiguration:
        Status: Enabled
      PublicAccessBlockConfiguration:
        BlockPublicAcls: true
        BlockPublicPolicy: true
        IgnorePublicAcls: true
        RestrictPublicBuckets: true
Practice

How to practice with this page

Advice
  • Draw one architecture you built on AWS and explain every component's job.
  • Practice the why: why this service, what would break, what it costs.
  • Write one IAM policy from scratch with only the permissions an app needs.
  • Know the Well-Architected pillars well enough to use them as a checklist.
Next

Related interview prep

Disclosure: TryHired makes HIRED, a paid job-search program, so we have a conflict of interest when we mention it. This question bank is free, with no TryHired signup.

FAQ

Questions people ask

What AWS questions are asked in interviews?
Regions and AZs, EC2 versus Lambda, S3 storage classes, IAM roles and policies, VPC networking, security groups, databases, high availability, monitoring, cost and disaster recovery. Architect roles add design scenarios.
Do I need an AWS certification for a cloud job?
Not always, but the Solutions Architect Associate and Cloud Practitioner certifications cover much of what interviews test and show structured knowledge. See the TryHired certification guides.
How do I prepare for an AWS interview?
Build and explain one small architecture end to end, practice IAM policies, and be ready to discuss trade-offs: availability, security and cost.
Are AWS interviews hands-on?
Some include a design discussion or a short exercise in the console or with infrastructure as code; many are conversations about systems you have built.
What is the difference between AWS, Azure and Google Cloud for interviews?
The concepts transfer: compute, storage, identity, networking and managed databases exist on all three under different names. Learn one well and map the names.
Method

How this page is built

TryHired wrote these questions and answers. Blocks marked Example (not executed) are configuration, commands or formulas that cannot run on the build machine: no output is claimed for them. The question list is general practice: it does not predict what a particular employer will ask.

What this page can't tell you
  • Interviewers ask different questions for different roles and levels.
  • Answers are short explanations, not complete references.
  • AWS adds and changes services, limits and prices often; check current documentation before quoting numbers.
  • Answers describe AWS; other clouds have equivalents with different names.
Sources
  1. AWS documentation, Regions and Availability Zones: https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/regions.html
  2. Amazon S3 documentation, storage classes: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html
  3. AWS IAM documentation, policies and permissions: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html
  4. AWS Well-Architected Framework: https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html
  5. Amazon VPC documentation, security groups vs network ACLs: https://docs.aws.amazon.com/vpc/latest/userguide/infrastructure-security.html