AWS interview questions and answers, from services to architecture

AWS interview questions test whether you can pick the right service for a requirement and explain the trade-off: IAM and least privilege, VPC networking, EC2 versus containers versus Lambda, S3 storage classes, RDS versus DynamoDB, and queues for decoupling. Most of the weight sits in scenario questions of the kind the Solutions Architect Associate exam uses, such as making a single-server app highly available or cutting a bill that doubled. Answer with the requirement first (availability, latency, cost, security), then the service.

By Published 7 min read

How AWS questions are asked

AWS shows up in cloud, DevOps, backend and solutions architect interviews. Developers are asked how their code uses IAM roles, S3, queues and managed databases. DevOps and cloud candidates get networking, infrastructure as code and incident questions. Solutions architect interviews, and AWS-heavy roles generally, lean on design scenarios: a set of requirements and constraints, and you choose and justify the services. Holding a certification helps you speak the vocabulary, but interviewers still probe whether you have built and debugged the thing.

  1. Service knowledgeShort questions on what a service does, its main options and its limits.
  2. Design scenario"Design a highly available web app" or "process uploads asynchronously", drawn on a whiteboard with trade-offs.
  3. TroubleshootingAccess denied, an unreachable instance, throttling, a slow function or a cost surprise.
  4. Experience deep diveAn AWS system you ran in production: what broke, what it cost, and what you would change.

AWS fundamentals questions

Basics every AWS interview checks
QuestionWhat it testsWhat a strong answer shows
Region, Availability Zone and edge location?Global infrastructureA region is a geographic area with several isolated AZs (separate data centers with independent power and networking). Edge locations serve CloudFront and Route 53 close to users.
What is the shared responsibility model?Security ownershipAWS secures the infrastructure; you secure what you put on it: IAM, data, network rules, OS patches on EC2. The line moves with the service: more is AWS's on Lambda than on EC2.
IAM user, group, role and policy?IdentityUsers are long-lived identities, groups bundle users, roles are assumed for temporary credentials, and policies are JSON documents that allow or deny actions on resources.
Why should applications use roles instead of access keys?CredentialsRoles give short-lived, automatically rotated credentials through the instance profile, task role or function role. Keys in code or config leak.
How is a request evaluated when policies disagree?Policy logicAn explicit deny anywhere wins. Otherwise an allow is needed from an identity or resource policy, and permission boundaries and SCPs can still cap it.
Security group versus network ACL?Network securitySecurity groups are stateful, attach to network interfaces and only allow. NACLs are stateless, apply to subnets, have numbered allow and deny rules, and need return traffic opened explicitly.
Public versus private subnet?VPC basicsA public subnet's route table sends 0.0.0.0/0 to an internet gateway. A private subnet has no such route; it reaches out through a NAT gateway placed in a public subnet.
What is S3's consistency model?Storage behaviorS3 provides strong read-after-write consistency for puts and deletes, so a read after a successful write returns the new object.
What are the main S3 storage classes?Cost tiersStandard, Intelligent-Tiering, Standard-IA and One Zone-IA for less frequent access, and the Glacier classes for archives with slower or costlier retrieval. Lifecycle rules move objects between them.
What is CloudTrail versus CloudWatch?ObservabilityCloudTrail records API calls (who did what). CloudWatch holds metrics, logs and alarms (how the system behaves).
Basics every AWS interview checks. Scroll sideways on a small screen.
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:PutObject"],
      "Resource": "arn:aws:s3:::acme-reports/exports/*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::acme-reports",
      "Condition": { "StringLike": { "s3:prefix": ["exports/*"] } }
    }
  ]
}
Least privilege for one S3 prefix. ListBucket applies to the bucket ARN, so it needs its own statement with a prefix condition.

Core service questions

Compute, data and messaging
QuestionWhat it testsWhat a strong answer shows
EC2, ECS on Fargate, EKS or Lambda?Compute choiceEC2 for full control or special hardware; Fargate to run containers without managing servers; EKS when the team wants Kubernetes; Lambda for event-driven, short work that scales to zero. Mention Lambda's maximum run time and cold starts.
On-Demand, Savings Plans, Reserved Instances and Spot?Pricing modelsOn-Demand for flexible load, commitments for steady baseline usage, Spot for interruptible work such as batch jobs, since Spot capacity can be reclaimed with a short warning.
Application, Network or Gateway Load Balancer?Load balancingALB routes HTTP by host, path and headers. NLB handles TCP and UDP at very high throughput with static IPs. GWLB inserts third-party network appliances.
RDS Multi-AZ versus read replicas?Database availabilityMulti-AZ keeps a synchronous standby for failover, mainly for availability. Read replicas are asynchronous copies that scale reads and can be promoted, with possible lag.
When choose DynamoDB over RDS?Data modelingKnown access patterns, very high scale and single-digit millisecond key lookups. You design keys and indexes around queries up front; ad hoc joins and reporting suit a relational database better.
What makes a DynamoDB partition hot?Key designToo many requests on one partition key, such as a date or a popular tenant. Spread writes with a higher-cardinality key or write sharding.
SQS, SNS, EventBridge or Kinesis?MessagingSQS is a queue for one consumer group with retries and dead-letter queues. SNS fans out to many subscribers. EventBridge routes events by rules. Kinesis is an ordered stream that several consumers can replay.
SQS standard versus FIFO?Delivery semanticsStandard gives at-least-once delivery with best-effort ordering, so consumers must be idempotent. FIFO keeps order within a message group and deduplicates, at lower throughput.
What does the SQS visibility timeout do?RetriesIt hides a received message while it is processed. If the consumer does not delete it in time, it reappears and may be processed twice.
What does CloudFront add in front of S3 or an API?Edge cachingCaching near users, TLS at the edge, and with origin access control the bucket can stay private while CloudFront serves it.
Secrets Manager or Parameter Store?SecretsBoth store encrypted values. Secrets Manager adds built-in rotation for supported databases; Parameter Store is simpler and suits plain configuration.
Which Route 53 routing policies do you know?DNSSimple, weighted, latency-based, failover with health checks, geolocation, geoproximity and multivalue answer. Use weighted for canary releases and failover for disaster recovery.
Compute, data and messaging. Scroll sideways on a small screen.

Solutions architect associate style questions

These scenarios mirror the shape of associate-level architect questions: a requirement with a constraint hidden in one phrase. Read for words like "most cost-effective", "least operational overhead" or "must not lose messages", because they decide between two working answers.

  • A web app runs on one EC2 instance with a local MySQL. Make it highly available. An ALB in front of an Auto Scaling group spread across at least two AZs, the database moved to RDS Multi-AZ (or Aurora), sessions out of the instance into ElastiCache or DynamoDB, and static files on S3 behind CloudFront.
  • Uploads must be processed, and processing sometimes takes minutes and fails. S3 event to SQS, workers on an Auto Scaling group or ECS service polling the queue, a visibility timeout longer than the work, a dead-letter queue, and idempotent processing.
  • Store logs cheaply for seven years, rarely read. S3 with a lifecycle rule that moves objects to a Glacier class after a set number of days, plus Object Lock if they must be tamper-proof.
  • Private instances need to read S3 without internet access. A gateway VPC endpoint for S3 in the private subnets' route tables. It also avoids NAT gateway data charges.
  • Choose a disaster recovery strategy for an RTO of an hour and an RPO of minutes. Compare backup and restore, pilot light, warm standby and active-active by cost and recovery time; here pilot light or warm standby with cross-region replication of data fits.
  • A read-heavy product catalog makes the database the bottleneck. Cache hot reads in ElastiCache, add read replicas, and put CloudFront in front of cacheable API responses. State how you invalidate.
  • Several accounts need central guardrails. AWS Organizations with service control policies, centralized CloudTrail logging to a separate account, and IAM Identity Center for human access.
  • A partner must upload files to your bucket without AWS credentials. Presigned URLs generated by your backend with a short expiry and a fixed key prefix.
  • Which framework would you use to review an architecture? The Well-Architected Framework: operational excellence, security, reliability, performance efficiency, cost optimization and sustainability.
  • Encrypt data at rest with control over the key. KMS customer managed keys, with key policies limiting who can use them; explain envelope encryption, where a data key encrypts the data and KMS encrypts the data key.

For general design method behind these answers, see the system design interview framework, and for data store trade-offs, SQL vs NoSQL. Query-level database questions are in SQL interview questions.

Troubleshooting and senior scenarios

What breaks in AWS accounts
ScenarioLikely causeWhat to say you would check
AccessDenied reading an S3 object your policy clearly allows.Another layer deniesThe bucket policy, an SCP, a permission boundary, Block Public Access, or a KMS key policy that does not let you decrypt. CloudTrail shows the denied call and the policy simulator tests it.
An instance in a private subnet cannot install packages.No egress routeThe route table needs 0.0.0.0/0 to a NAT gateway in a public subnet that itself routes to an internet gateway; then security group and NACL outbound rules.
A Lambda function times out calling the database.Network or connectionsA function in a VPC needs routes and security groups to the database; many concurrent functions can exhaust database connections, which RDS Proxy pools.
The monthly bill doubled.Cost driversCost Explorer grouped by service and tag: NAT gateway data processing, cross-AZ or internet data transfer, forgotten instances or volumes, or log ingestion.
DynamoDB returns throttling errors at peak.Capacity or hot keysProvisioned capacity too low, auto scaling too slow for the spike, or a hot partition key. On-demand mode or better key design.
The ALB returns 502 errors after a deploy.Target healthTargets failing health checks, the app listening on a different port, or idle timeouts mismatched between the load balancer and the app.
What breaks in AWS accounts. Scroll sideways on a small screen.
aws sts get-caller-identity
aws iam simulate-principal-policy \
  --policy-source-arn arn:aws:iam::123456789012:role/report-writer \
  --action-names s3:PutObject \
  --resource-arns arn:aws:s3:::acme-reports/exports/q3.csv
aws ec2 describe-route-tables \
  --filters Name=association.subnet-id,Values=subnet-0abc1234
aws logs tail /aws/lambda/process-upload --since 15m --follow
AWS CLI checks that answer "who am I and what can I reach" during an incident.
  • How do you manage infrastructure? Infrastructure as code with CloudFormation, CDK or Terraform, reviewed in pull requests, with drift detection and separate accounts per environment.
  • How would you migrate an on-premises app? Assess and group workloads, choose rehost, replatform or refactor per app, migrate data with replication and a cutover window, and plan rollback.
  • How do you keep costs down without hurting reliability? Rightsizing from metrics, commitments for steady load, Spot for interruptible work, lifecycle rules on storage, tags with budgets and alerts, and removing idle resources.

Fictional example

Answering "Tell me about an AWS cost problem you solved"
Our bill rose sharply in one month with no traffic change. Cost Explorer by usage type showed most of the increase was NAT gateway data processing. VPC flow logs showed our batch workers in private subnets pulling large files from S3 through the NAT gateway. We added a gateway endpoint for S3 to those route tables, so that traffic stayed on the AWS network at no processing charge, and the NAT line dropped back to its usual level the next month. We also tagged every resource by team and set budget alerts per tag, so the next surprise would reach the team that caused it within a day rather than at month end.

AWS practice plan

  • Week 1: build a two-AZ VPC with public and private subnets by hand, then in infrastructure as code. Put an ALB and an Auto Scaling group in it, and break the NAT route on purpose.
  • Week 2: an upload pipeline with S3, SQS, a dead-letter queue and a Lambda or container worker. Write the IAM policies yourself with least privilege and test them with the simulator.
  • Week 3: practice ten architect scenarios aloud. For each, state the requirement, two options, the deciding constraint and the cost driver, in under three minutes.

Containers on AWS connect to Docker interview questions and Kubernetes interview questions for EKS. The surrounding role is in DevOps engineer interview questions.

Architecture answers depend on stating the constraint before naming a service, and that is easy to skip out loud. Natively, an AI interview assistant for Mac and Windows, transcribes a mock architect round on your machine so you can reread where you jumped to a service too early. In practice it can read a scenario or a diagram from a screenshot and sketch an approach, and with Pro or the free trial it draws on the résumé and job description you add. Sessions keep their transcript and notes for later review.

Questions people ask

What AWS questions are asked in interviews?

IAM roles and policies, VPC subnets, security groups and NAT, EC2 versus containers versus Lambda, S3 storage classes, RDS versus DynamoDB, SQS and SNS, plus design scenarios on availability, disaster recovery and cost.

What are solutions architect associate style questions?

Scenarios with a requirement and a deciding constraint, such as the most cost-effective or least operationally heavy option, where you choose between services like Multi-AZ databases, queues, caches, endpoints and storage classes.

How do I answer an AWS design question?

Restate the requirements and constraints, propose a design across at least two Availability Zones, name the trade-off behind each service choice, and close with cost, security and how you would monitor it.

Do AWS interviews require certification?

Usually not. A certification shows vocabulary, but interviewers mostly test whether you have built, secured and debugged systems on AWS, through scenarios and your own project stories.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP