Interview Prep
Interview questions, roadmaps and practice sets
Tutorials
Free tutorials on 30+ topics
Blog
Career guides, skills and interview tips
Free PDFs
Notes, cheat sheets and question banks
Certificates
Free skill tests and course certificates
Tools & Whiteboard
Free tools you can use right in the browser
Practice Tests
Mock tests, MCQs and quick Q&A
Free LMS
Learn on the Uncodemy LMS
Choose the best training program according to your career.
Improve the performance of your business with our innovative Industrial Training Program.
Read More →
Our instructor-led training classes are designed to make you an expert.
Read More →
Real-life case studies are a great way to demonstrate your practical knowledge.
Read More →
Explore blogs, latest technologies and industry updates with practical examples.
Read More →Browse all available training programs and choose the right one for your career.
Read More →Know more about who we are and what we stand for.
Discover our mission to equip individuals with essential IT skills and industry expertise.
Read More →
Free tutorials, interview questions, tools and calculators to help you learn.
Explore →Learn, practice and plan your career — bilkul free.
Book a free video counselling session and pick the right course for you.
Read More →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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Security group | Network ACL | |
|---|---|---|
| Applies to | Instance / network interface | Subnet |
| State | Stateful: return traffic is allowed automatically | Stateless: return traffic needs its own rule |
| Rules | Allow rules only | Allow and deny rules |
| Evaluation | All rules considered together | Numbered rules, lowest number first; first match wins |
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.
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.
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.
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.
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.
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.
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.
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.
Operational excellence, security, reliability, performance efficiency, cost optimisation and sustainability.
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.
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.
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.
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.
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.
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).
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