#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Top AWS Interview Questions and Answers for 2026

These AWS interview questions are grouped by level and answered the way interviewers expect: what the service is, when you would use it, and the trade-off. Scenario questions at the end test whether you can combine services.

Blogging Illustration

Most AWS interviews follow the same pattern. The first questions check that you know what the core services do. The middle questions check whether you understand the differences between similar services. The last questions give you a scenario and watch how you design. The answers below follow that order. They are practice questions written to cover common topics, not a record of questions from any particular company.

Basics

1. What is AWS, and what are Regions and Availability Zones?

Amazon Web Services is a cloud platform offering compute, storage, databases, networking and many managed services on a pay-as-you-go basis. A Region is a geographic area, such as Mumbai (ap-south-1) or Hyderabad (ap-south-2). Each Region contains several Availability Zones (AZs): separate data centres with independent power and networking, linked by low-latency connections. Spreading an application across AZs protects it from a single data-centre failure.

2. What is EC2?

Elastic Compute Cloud provides virtual servers (instances). You choose an AMI (machine image), an instance type (CPU, memory, network), storage and a security group, and pay for the time the instance runs.

3. What is S3?

Simple Storage Service is object storage: you store files (objects) in buckets and access them over HTTP APIs. It is used for backups, static websites, data lakes and media. Since December 2020, S3 provides strong read-after-write consistency for all objects.

4. Name the S3 storage classes and when to use them.

Standard for frequently accessed data; Intelligent-Tiering when access patterns are unknown; Standard-IA and One Zone-IA for infrequent access (One Zone stores data in a single AZ, so it is cheaper but less resilient); Glacier Instant Retrieval, Glacier Flexible Retrieval and Glacier Deep Archive for archives, with retrieval times ranging from milliseconds to hours. Lifecycle rules can move objects between classes automatically.

5. What is IAM?

Identity and Access Management controls who can do what. Users are long-term identities for people or applications, groups collect users, roles are identities that are assumed temporarily (by an EC2 instance, a Lambda function or a user from another account), and policies are JSON documents that allow or deny actions on resources.

6. What is the shared responsibility model?

AWS is responsible for security of the cloud: physical data centres, hardware and the virtualisation layer. The customer is responsible for security in the cloud: data, IAM, operating-system patches on EC2, network rules and encryption settings. The split shifts with the service; with Lambda, AWS manages the OS, with EC2 you do.

7. Scalability vs elasticity?

Scalability is the ability to handle more load by adding resources. Elasticity is doing that automatically in both directions, adding capacity when load rises and removing it when load falls, so you only pay for what you need.

Intermediate

8. How does IAM decide whether a request is allowed?

By default everything is denied. An explicit Allow in an applicable policy permits the action, but any explicit Deny overrides every Allow. (Real evaluation also considers permission boundaries, service control policies, session policies and resource policies, but this rule is the core.) The logic in a few lines:

from fnmatch import fnmatch

policies = [
    {"Effect": "Allow", "Action": "s3:*",          "Resource": "arn:aws:s3:::reports/*"},
    {"Effect": "Deny",  "Action": "s3:DeleteObject", "Resource": "arn:aws:s3:::reports/*"},
]

def evaluate(action, resource):
    matches = [p for p in policies
               if fnmatch(action, p["Action"]) and fnmatch(resource, p["Resource"])]
    if any(p["Effect"] == "Deny" for p in matches):
        return "Denied (explicit deny)"
    if any(p["Effect"] == "Allow" for p in matches):
        return "Allowed"
    return "Denied (implicit, nothing allows it)"

for action, resource in [("s3:GetObject", "arn:aws:s3:::reports/q1.csv"),
                         ("s3:DeleteObject", "arn:aws:s3:::reports/q1.csv"),
                         ("s3:GetObject", "arn:aws:s3:::payroll/may.csv")]:
    print(f"{action:<16} {resource:<32} -> {evaluate(action, resource)}")

Output:

s3:GetObject     arn:aws:s3:::reports/q1.csv      -> Allowed
s3:DeleteObject  arn:aws:s3:::reports/q1.csv      -> Denied (explicit deny)
s3:GetObject     arn:aws:s3:::payroll/may.csv     -> Denied (implicit, nothing allows it)

Being able to explain why the second request fails even though s3:* is allowed is exactly what interviewers look for.

9. Security group vs network ACL?

Security groupNetwork ACL
Applies toInstance / network interfaceSubnet
StateStateful: return traffic is allowed automaticallyStateless: return traffic needs its own rule
RulesAllow rules onlyAllow and deny rules
EvaluationAll rules considered togetherNumbered rules, lowest number first; first match wins

10. What makes a subnet public or private?

A public subnet's route table has a route to an internet gateway. A private subnet has no such route; instances there reach the internet for updates through a NAT gateway placed in a public subnet, and cannot be reached directly from outside.

11. EBS vs EFS vs S3?

EBS is block storage attached to one EC2 instance in one AZ, like a disk. EFS is a managed NFS file system that many instances can mount at once. S3 is object storage accessed through an API, not mounted as a normal disk, and scales without limits you manage.

12. RDS Multi-AZ vs read replicas?

Multi-AZ keeps a synchronous standby in another AZ for high availability; it fails over automatically and is not used for reads in the classic setup. Read replicas copy data asynchronously and serve read traffic to scale reads; they can lag slightly behind the primary.

13. What does Auto Scaling do?

An Auto Scaling group keeps a desired number of EC2 instances running, replaces unhealthy ones, and adjusts the count using scaling policies, for example target tracking on average CPU at 50%. Combined with a load balancer, it gives both availability and elasticity.

14. ALB vs NLB?

The Application Load Balancer works at layer 7 (HTTP/HTTPS) and can route by path or host name, such as /api to one target group and /images to another. The Network Load Balancer works at layer 4 (TCP/UDP), handles very high throughput with low latency and supports static IP addresses.

15. What is Lambda and what are its limits?

Lambda runs your function in response to events (an API request, an S3 upload, a queue message) without servers to manage, and bills per request and execution time. A single invocation can run for at most 15 minutes, and memory can be set from 128 MB to 10,240 MB. Cold starts add latency when a new execution environment starts, which matters for latency-sensitive APIs.

16. CloudWatch vs CloudTrail?

CloudWatch collects metrics, logs and alarms about how resources perform. CloudTrail records API calls: who did what, when and from where. "Why is the server slow?" is a CloudWatch question; "who deleted this bucket?" is a CloudTrail question.

17. On-Demand, Reserved/Savings Plans and Spot instances?

On-Demand has no commitment and the highest hourly price. Reserved Instances and Savings Plans give lower prices in exchange for a one- or three-year commitment. Spot uses spare capacity at a large discount but can be reclaimed with a two-minute warning, so it suits batch jobs, CI runners and fault-tolerant workloads.

Advanced and design

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

Operational excellence, security, reliability, performance efficiency, cost optimisation and sustainability.

19. How would you encrypt data in AWS?

At rest: enable encryption on S3, EBS and RDS, usually with keys in AWS KMS, and use customer-managed keys when you need control over rotation and key policies. In transit: TLS everywhere, with certificates from AWS Certificate Manager on load balancers and CloudFront.

20. What is infrastructure as code on AWS?

Defining resources in templates instead of clicking in the console, using CloudFormation, the AWS CDK or Terraform. It makes environments repeatable, reviewable in Git and easy to recreate.

Scenario questions

21. Design a highly available web application.

A VPC with public and private subnets in at least two AZs; an ALB in the public subnets; EC2 instances in an Auto Scaling group (or containers on ECS) in the private subnets; RDS Multi-AZ for the database; static files in S3 served through CloudFront; Route 53 for DNS; CloudWatch alarms for health. Mention what fails over automatically and what does not.

22. Users upload images; you need thumbnails.

Upload to S3 (directly from the browser with a pre-signed URL), trigger a Lambda function on the upload event, write the thumbnail to another bucket or prefix, and store metadata in DynamoDB. For heavy bursts, put an SQS queue between S3 and the processing function so nothing is lost.

23. The monthly bill doubled. What do you check?

Cost Explorer grouped by service and by tag; idle or oversized EC2 instances; unattached EBS volumes and old snapshots; NAT gateway data processing charges; data transfer out to the internet; S3 data that could move to a cheaper storage class. Then set AWS Budgets alerts so it does not happen silently again.

24. An EC2 instance in a private subnet cannot download updates.

Check, in order: the private subnet's route table has 0.0.0.0/0 pointing to a NAT gateway; the NAT gateway sits in a public subnet whose route table points to the internet gateway; the security group allows outbound traffic; the network ACL allows outbound traffic and the return traffic on ephemeral ports (because NACLs are stateless).

How to prepare

Build one small project rather than memorising answers: for example, a static site on S3 and CloudFront, plus an API on Lambda with a DynamoDB table, all defined in code. Interviewers often ask you to walk through something you built. Deploying container apps with Docker and AWS is a good second project, and preparing for the AWS Cloud Practitioner exam covers the entry certification. For broader context, see cloud skills recruiters look for and DevOps for beginners.

Sources: AWS documentation: IAM policy evaluation logic, Lambda quotas, Amazon S3 consistency model (December 2020 announcement), Amazon VPC security groups and network ACLs, AWS Well-Architected Framework

Placed Students

Our Clients

Partners