AWS Interview Questions
Answers written to be said out loud in an interview — each with a common follow-up question and a link to the tutorial that explains it in depth.
- Beginner
- 9
- Intermediate
- 11
- Experienced
- 7
01What is the principle of least privilege in IAM?Beginner
Grant identities only the permissions they need for their task, nothing more. Prefer roles with temporary credentials over long-lived access keys, and avoid using the root user.
02What is EC2?Beginner
Elastic Compute Cloud provides resizable virtual servers. You choose an instance type, AMI, storage and security groups, and pay for the time instances run.
03What is S3?Beginner
Simple Storage Service is object storage for files of any size, organised in buckets, with very high durability, versioning, lifecycle rules and multiple storage classes.
04Security groups vs network ACLs?Beginner
Security groups are stateful firewalls attached to instances that allow rules only. Network ACLs are stateless, apply at the subnet level and support allow and deny rules.
05What is AWS, and what are its core service categories?Beginner
Amazon Web Services is a cloud platform offering compute (EC2, Lambda, ECS), storage (S3, EBS), databases (RDS, DynamoDB), networking (VPC, Route 53, CloudFront), security (IAM, KMS) and DevOps tools, billed per use.
06Regions vs Availability Zones vs edge locations?Beginner
A Region is a geographic area with several isolated Availability Zones (one or more datacentres each). Spreading across AZs gives high availability. Edge locations are separate points of presence used by CloudFront and Route 53 to serve users with low latency.
07IAM users vs groups vs roles vs policies?Beginner
Users are long-term identities for people, groups attach permissions to many users, roles are assumed temporarily by services, apps or federated users, and policies are JSON documents that allow or deny actions on resources.
08What is an Amazon Machine Image (AMI)?Beginner
A template for an EC2 instance: the operating system, installed software and configuration. You launch instances from AMIs, and you can create your own “golden” AMI so new instances start ready to run.
09What are S3 storage classes?Beginner
Standard for frequent access, Intelligent-Tiering for unknown patterns, Standard-IA and One Zone-IA for infrequent access, and Glacier Instant/Flexible/Deep Archive for archives. Lifecycle rules move objects between classes automatically.
10How would you host a React SPA on AWS?Intermediate
Upload the build to a private S3 bucket and serve it through CloudFront with Origin Access Control, HTTPS, caching, and an error-response rule that returns index.html for client-side routes.
11RDS vs DynamoDB?Intermediate
RDS is a managed relational database (MySQL, PostgreSQL, SQL Server) with SQL and joins. DynamoDB is a serverless key-value/document database with single-digit-millisecond latency at any scale, designed around access patterns.
12What is AWS Lambda and its limitations?Intermediate
Serverless functions triggered by events, billed per request and duration. Limits include a 15-minute maximum runtime, memory caps, cold starts and statelessness.
13What is a VPC and what are public vs private subnets?Intermediate
A Virtual Private Cloud is your isolated network in AWS. Public subnets route to an internet gateway; private subnets do not and reach the internet (for updates) through a NAT gateway.
14What is Amazon RDS and what does it manage for you?Intermediate
A managed relational database service for SQL Server, PostgreSQL, MySQL, MariaDB and Oracle (Aurora is AWS’s own engine). It handles provisioning, patching, automated backups, Multi-AZ failover and read replicas.
15How do you design a DynamoDB table?Intermediate
Start from access patterns, not entities. Choose a partition key with high cardinality to spread load, add a sort key for range queries, and use global secondary indexes for other patterns. Avoid scans in hot paths.
16What does API Gateway do?Intermediate
It is a managed front door for APIs: routing to Lambda, HTTP backends or AWS services, with authorisation (IAM, Cognito, JWT), throttling, CORS, request validation, stages and custom domains.
17How does Route 53 route traffic?Intermediate
It is AWS’s DNS service. Besides simple records and alias records for AWS resources, it supports weighted, latency-based, failover, geolocation and multivalue routing with health checks.
18What is CloudFront?Intermediate
AWS’s content delivery network. It caches content at edge locations close to users, terminates HTTPS, can sit in front of S3, load balancers or API Gateway, and supports origin access control so S3 buckets stay private.
19What is CloudWatch?Intermediate
AWS’s monitoring service: metrics, logs (CloudWatch Logs with Logs Insights queries), alarms that trigger notifications or scaling, dashboards and X-Ray/Application Signals for tracing.
20How do apps read secrets on AWS?Intermediate
Store them in Secrets Manager (with automatic rotation for databases) or SSM Parameter Store, grant the app’s IAM role permission to read only those secrets, and fetch them at startup or through the ECS/Lambda integrations.
21How do Elastic Load Balancing and Auto Scaling work together?Experienced
An Application Load Balancer distributes traffic across healthy targets. An Auto Scaling group adds or removes instances based on metrics or schedules and registers them with the load balancer automatically.
22What is CloudFormation?Experienced
AWS’s infrastructure-as-code service: you declare resources in YAML/JSON templates and CloudFormation creates, updates and deletes them as a stack, with change sets and drift detection.
23How do you optimise AWS costs?Experienced
Right-size instances, use Savings Plans or Reserved Instances for steady load and Spot for flexible work, apply S3 lifecycle policies, delete idle resources, use Cost Explorer and budgets, and tag everything.
24ECS on Fargate vs EC2 launch type vs EKS?Experienced
ECS is AWS’s own container orchestrator. With Fargate you run tasks without managing servers; with the EC2 launch type you manage the instances. EKS is managed Kubernetes — portable and powerful, but more to operate.
25How would you build a CI/CD pipeline on AWS?Experienced
CodePipeline triggers on a commit, CodeBuild runs buildspec.yml to test and build a container image pushed to ECR, and a deploy stage updates ECS (with CodeDeploy blue/green) or a CloudFormation stack, with manual approval before production.
version: 0.2
phases:
build:
commands:
- dotnet test
- docker build -t $REPO_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .
post_build:
commands:
- docker push $REPO_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION
26What is a serverless architecture on AWS?Experienced
Combining managed services so you run no servers: API Gateway + Lambda for compute, DynamoDB for data, S3 for files, SQS/SNS/EventBridge for events and Step Functions for workflows. You pay per request and scale automatically.
27How do you deploy an ASP.NET Core app on AWS?Experienced
Options include Elastic Beanstalk for a simple managed setup, ECS Fargate with an image in ECR behind an Application Load Balancer, App Runner for a quick container service, or Lambda with the ASP.NET Core hosting package. Use RDS for SQL Server and Secrets Manager for credentials.