AWS Roadmap
Amazon Web Services is the most widely used cloud platform. Backend developers, DevOps and cloud engineers, data engineers and architects all meet it at work, and cloud questions appear in many interviews. The catalogue is huge, but a core of about twenty services appears in almost every architecture.
This roadmap teaches that core in the order that builds on itself. It starts with the cloud model, regions and shared responsibility, then identity, networking, compute, storage, databases, serverless, containers and operations. For each service you learn what it does, how to configure it sensibly, what it costs you in effort and money and what interviewers ask about it. Topics are marked core, recommended or optional.
By the end you will be able to design and build a secure, multi-zone web application on AWS, explain each choice and estimate its cost. Practise design questions in system design practice and keep track of your progress in progress page.
- Level
- Beginner to advanced
- Time
- 12-16 weeks at about 8 hours a week
- Scope
- 46 topics in 9 stages
- Before you start
- Basic networking ideas: IP addresses, ports, DNS and HTTP; Comfort with a terminal, see Linux Roadmap and Shell and Bash Roadmap; One programming language for the serverless and SDK exercises, for example Python Roadmap or Node.js Roadmap; A credit card for a free-tier account and the habit of deleting what you create
What you will be able to do
- Explain regions, availability zones and the shared responsibility model.
- Write least-privilege IAM policies and use roles instead of access keys.
- Design a VPC with public and private subnets, routing and security groups.
- Launch, scale and load balance EC2 instances, and choose storage and purchasing options.
- Choose between S3 classes, RDS, DynamoDB and ElastiCache for a given workload.
- Build event-driven systems with Lambda, API Gateway and EventBridge, and run containers on ECS, Fargate or EKS.
- Monitor, route and operate a system with CloudWatch and Route 53 and respect service quotas.
The roadmap at a glance
- Stage 1Cloud and AWS FoundationsBeginner · 1-2 weeks · 7 topics
- Stage 2Identity and Access ManagementBeginner · 1-2 weeks · 4 topics
- Stage 3Networking with VPCIntermediate · 2 weeks · 4 topics
- Stage 4Compute with EC2Intermediate · 2 weeks · 7 topics
- Stage 5Storage and Content DeliveryIntermediate · 1-2 weeks · 4 topics
- Stage 6DatabasesIntermediate · 2 weeks · 5 topics
- Stage 7Serverless and Event-Driven ServicesIntermediate · 2 weeks · 5 topics
- Stage 8Containers on AWSAdvanced · 2 weeks · 4 topics
- Stage 9DNS, Observability, Email and LimitsAdvanced · 2 weeks · 6 topics
Stage 1 Cloud and AWS Foundations
Goal. Explain what AWS is, how it is organised and who is responsible for what, and set up a safe account.
Introduction to AWS and What is Cloud Computing? Core
Cloud computing means renting computing resources over the internet and paying for what you use, instead of buying and running your own hardware. You ask for a server, a database or a storage bucket through an API or a console, and it exists within seconds.
Amazon Web Services (AWS) is the largest provider of such services. It offers well over two hundred services, but a small core appears in almost every system: identity, networking, virtual machines, object storage, databases, serverless functions and monitoring. This roadmap teaches that core in an order that builds on itself, so you can design and discuss real architectures.
Practice. Create a free-tier account, sign in to the console and find the pages for billing, IAM and the service list.
IaaS vs PaaS vs SaaS Core
These labels describe how much the provider manages for you. With infrastructure as a service you rent raw building blocks, such as EC2 virtual machines, and you manage the operating system and everything above it. With platform as a service you bring code and the provider runs the platform, as with Elastic Beanstalk or Lambda. With software as a service you use a finished application, such as a hosted email system.
The more the provider manages, the less work you do, and the less control you have. Most AWS services sit at different points on this scale, and real systems mix them. Interviews often ask you to place a service, for example RDS, on the scale and say what you still manage.
Practice. Place EC2, RDS, Lambda and S3 on the IaaS to SaaS scale and write what you manage in each.
Public vs Private vs Hybrid Cloud Core
A public cloud such as AWS shares physical infrastructure between many customers, isolated by software. A private cloud runs on infrastructure dedicated to one organisation, either in its own data centre or hosted. A hybrid cloud connects the two, for example an on-premises database with application servers in AWS.
Reasons for hybrid include data residency rules, existing hardware, latency to factory or office systems and gradual migration. AWS supports it with Site-to-Site VPN, Direct Connect for a dedicated line, and Outposts, which places AWS-managed hardware in your site. Keep in mind that hybrid adds networking and operations complexity, so it needs a clear reason.
Practice. List two workloads that justify hybrid cloud and the connection type you would use for each.
AWS Global Infrastructure Core
AWS is divided into Regions, each a separate geographic area with its own services and prices, such as eu-west-1 in Ireland. A Region contains several Availability Zones (AZs), which are one or more data centres with independent power and networking, connected by fast links. Edge locations, used by CloudFront and Route 53, sit in many more cities to serve users close to them.
Design rules follow from this. Put workloads in the Region closest to users or that meets legal needs. Spread across at least two AZs to survive a data centre failure. Use multiple Regions only for disaster recovery or global needs, since data transfer and complexity grow. Resources are usually Regional, a few services are global, and an AZ name in one account may map to a different physical zone in another.
Practice. Pick a Region for an imaginary app with users in Europe and justify it, then choose two AZs to use.
Well Architected Framework Recommended
The Well Architected Framework is AWS's set of design principles, organised into pillars: operational excellence, security, reliability, performance efficiency, cost optimisation and sustainability. Each pillar comes with questions you ask about a workload, such as how you detect failures, how you manage identities and how you right-size resources.
You do not need to memorise the lists. Use the pillars as a checklist in interviews: when you propose a design, mention how it stays up, how it is secured, how you will observe it, what it costs and how it scales. The AWS Well-Architected Tool in the console lets you review a workload against the questions and track improvements.
Practice. Review a simple web app design against each pillar and write one weakness per pillar.
Services, Accounts, Billing and Cost Basics Core
A new account starts with a root user that has unlimited power. Protect it with multi-factor authentication, do not create access keys for it and use it only for the few tasks that need it. Everything else is done through IAM identities or IAM Identity Center. Teams usually use several accounts, grouped with AWS Organizations, to separate production from development and to limit the blast radius.
Set up billing alerts and a budget on day one. The free tier helps, but forgotten NAT gateways, load balancers, large instances and unattached resources create bills. Use Cost Explorer to see spend, tags to attribute cost to projects, and delete what you no longer need.
Practice. Enable MFA on the root user and create a monthly budget with an email alert.
Stage 2 Identity and Access Management
Goal. Control who can do what in an account, and use roles instead of long-lived keys.
IAM and Users / User Groups Core
IAM (Identity and Access Management) decides who can sign in and what they may do. It is global and free. Users represent people or programs with long-lived credentials. User groups collect users so you can attach permissions once to the group.
Modern practice is to avoid IAM users for people. Use IAM Identity Center with your company directory to give staff temporary access to accounts. Where IAM users still exist, put them in groups, require MFA, give no more than they need and avoid access keys. Check the credential report regularly for unused users and old keys.
Practice. Create a group with read-only permissions, add a test user with MFA and sign in as that user.
Policies: Identity-Based and Resource-Based Core
A policy is a JSON document that allows or denies actions on resources. Identity-based policies attach to a user, group or role and say what that identity can do. Resource-based policies attach to a resource, such as an S3 bucket or an SQS queue, and say who may access it, including identities in other accounts.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::example-bucket/*"
}]
}Evaluation rules to remember: everything is denied by default, an explicit Deny always wins and an Allow is needed from the relevant policies. Permission boundaries and service control policies limit the maximum permissions further. Use least privilege and start from AWS managed policies only when they fit.
Practice. Write a policy that allows reading one S3 prefix only and test it with the IAM policy simulator.
Roles, Assuming Roles and Instance Profiles Core
A role is an identity with permissions and no password or keys. Something assumes the role and receives temporary credentials from the Security Token Service. The role's trust policy says who may assume it: an AWS service, another account or a federated identity.
Assuming Roles is how cross-account access works: a user in account A calls sts:AssumeRole for a role in account B. Services use roles too. A Lambda function has an execution role, and an EC2 instance uses an instance profile, which is a container that passes a role to the instance. Code on the instance gets credentials automatically from the metadata service, so no keys are stored on disk. Always prefer roles to access keys.
Practice. Create a role for EC2 with read access to one bucket, attach it through an instance profile and read the bucket without keys.
IAM Best Practices Core
Core habits: enable MFA for privileged users, use temporary credentials, grant least privilege, review access with IAM Access Analyzer and last-used data, rotate or delete keys and separate duties by account. Use conditions in policies, such as limiting by source IP, MFA presence or tags, when they add safety.
Tag-based access control scales well: allow actions only on resources whose tag matches the principal's tag. Avoid wildcards on actions and resources in production. Log activity with CloudTrail so you can answer who did what and when. Treat any exposed key as compromised and rotate it immediately.
Practice. Run IAM Access Analyzer on an account and fix one finding.
Stage 3 Networking with VPC
Goal. Design a private network with public and private subnets and control traffic with routes and security rules.
VPC and CIDR Blocks Core
A Virtual Private Cloud (VPC) is your own isolated network inside a Region. You choose its address range as a CIDR block, such as 10.0.0.0/16, which gives 65,536 addresses. The number after the slash is how many leading bits are fixed, so a larger number means a smaller range.
Plan ranges early. Do not overlap with other VPCs or office networks you may connect later, because overlapping ranges cannot be routed together. A new account comes with a default VPC for quick tests, but real workloads should use a VPC you design. Use private IPv4 ranges from RFC 1918 and consider IPv6 where needed.
Practice. Create a VPC with a /16 range, then work out how many addresses a /24 and a /28 subnet hold.
Subnets, Public Subnet and Private Subnet Core
A subnet is a slice of the VPC range that lives in one Availability Zone. In a public subnet, the route table sends internet-bound traffic to an internet gateway, so instances there may hold public addresses. A private subnet has no direct route from the internet, which suits databases and application servers.
A common layout has a public and a private subnet in each of two or three zones: load balancers in the public ones, application servers and databases in the private ones. AWS reserves five addresses in each subnet, so tiny subnets lose a lot. What makes a subnet public is its route table, not its name.
Practice. Create two public and two private subnets across two AZs with non-overlapping ranges.
Route Tables, Internet Gateway and NAT Gateway Core
A route table lists where traffic for each destination goes. Every subnet is associated with one. An Internet Gateway lets a VPC talk to the internet in both directions, and a public subnet's table has a default route 0.0.0.0/0 pointing at it.
Private instances still often need outbound access, for updates or APIs. A NAT Gateway sits in a public subnet, and the private subnet's default route points to it. Traffic can leave, but nothing can start a connection inward. NAT gateways cost money per hour and per gigabyte, and one per AZ is needed for resilience. VPC endpoints for S3 and DynamoDB give private access with no NAT charges for that traffic.
Practice. Configure a private subnet to reach the internet through a NAT gateway and verify with a test instance.
Security Groups and Network ACLs Core
A security group is a stateful firewall attached to network interfaces. You write allow rules only. Return traffic is allowed automatically. Rules can reference another security group, so you can say that the database accepts port 5432 from the application group, with no addresses at all.
Network ACLs act at the subnet level, are stateless and have numbered allow and deny rules. Most designs leave the default NACL open and rely on security groups, adding NACLs for broad blocks. Keep rules tight: never open SSH to 0.0.0.0/0, and prefer Systems Manager Session Manager over opening port 22 at all.
Practice. Build a web, app and database tier where each tier accepts traffic only from the tier before it.
Stage 4 Compute with EC2
Goal. Launch, size, secure and scale virtual machines behind a load balancer.
EC2, Instance Types and AMIs Core
EC2 provides virtual machines. You choose an instance type, an image and a network location, and it boots in a minute or two. Instance types are named by family, generation and size, such as m7g.large. Families group by purpose.
AMIs (Amazon Machine Images) are the templates an instance boots from: operating system, software and settings. Use AWS-provided or marketplace images, or build your own with a pipeline so every server starts identical. AMIs are Regional, but can be copied. Prefer a baked image over installing everything at boot when start-up speed and consistency matter.
Practice. Launch a small instance from an Amazon Linux AMI, connect to it and then create your own AMI from it.
General Purpose, Compute and Memory Families, and CPU Credits Core
General Purpose (the m family) balances CPU and memory. Compute optimised (c) has more CPU per gigabyte, memory optimised (r, x) has more memory, storage optimised (i, d) has fast local disks, and accelerated (p, g) has GPUs. A trailing g means Graviton, AWS's Arm processor, which often gives better price for performance.
Burstable instances (t3, t4g) run at a baseline and earn CPU credits while idle, then spend them in bursts. If the credits run out, performance drops to the baseline, unless unlimited mode is on, which charges extra. They suit small, spiky workloads and not steady high CPU. Right-size by watching real utilisation, not by guessing.
Practice. Compare a t3 and an m5 instance for a steady workload and explain which you would pick and why.
Keypairs, User Data Scripts and Instance Metadata Core
A key pair is an SSH public and private key. AWS stores the public half and puts it on a new Linux instance, and you keep the private half. Lose it and you cannot log in with it, so many teams skip SSH and use Session Manager instead.
User data scripts run once at first boot, usually to install software or register the instance:
#!/bin/bash
dnf install -y nginx
systemctl enable --now nginxThey are limited to 16 KB and run as root, with output in a log file. Do not put secrets in user data, because anyone with access to the instance can read it. The instance metadata service gives the instance its identity and role credentials, and should be set to require IMDSv2 tokens.
Practice. Launch an instance with user data that installs a web server and verify the page from your browser.
Storage / Volumes, Storage Types, Provisioned IOPS and Magnetic Core
Elastic Block Store (EBS) volumes are network disks attached to instances, living in one AZ. They persist after the instance stops and can be snapshotted to S3-backed storage. Types: General Purpose SSD (gp3) is the default for most work, with performance set separately from size. Provisioned IOPS SSD (io2) serves databases needing consistent high I/O. Throughput-optimised and cold HDD types suit big sequential reads. Magnetic volumes are the old generation and not for new workloads.
Instance store gives fast disks physically attached to the host, but data disappears when the instance stops, so use it for caches and scratch space. Encrypt volumes, and snapshot on a schedule through Data Lifecycle Manager or AWS Backup.
Practice. Attach a new gp3 volume to an instance, format and mount it, then take a snapshot and restore it to a new volume.
Purchasing Options and Elastic IP Core
On-demand pricing is flexible, per second, with no commitment. Savings Plans and Reserved Instances trade a one or three year commitment for a discount, and suit steady usage. Spot Instances use spare capacity at big discounts, but AWS can reclaim them with two minutes of warning, so they fit stateless, interruptible work such as batch jobs and workers. Dedicated hosts exist for licensing and compliance needs.
An Elastic IP is a static public IPv4 address you own until you release it. Since AWS now charges for all public IPv4 addresses, use them sparingly: put a load balancer or DNS name in front of instances instead of relying on a fixed address.
Practice. Estimate the monthly cost of one instance on-demand and with a one year commitment using the pricing calculator.
Elastic Load Balancers and Health checks Core
Elastic Load Balancing spreads traffic across targets in several AZs. The Application Load Balancer works at HTTP level with path and host routing and suits web applications. The Network Load Balancer works at TCP and UDP level, keeps static addresses and handles very high throughput. The Gateway Load Balancer fronts virtual security appliances.
Health checks decide which targets receive traffic. The balancer probes a path or port, and removes targets that fail, adding them back when they recover. Make the health endpoint cheap and meaningful: check that the app can serve, not only that the process runs. Enable access logs, use HTTPS with certificates from ACM, and tune deregistration delay so in-flight requests finish.
Practice. Place two instances behind an application load balancer and stop one to watch the health check react.
Auto-Scaling, Auto Scaling Groups, Launch Templates and Scaling Policies Core
An Auto Scaling group keeps a number of instances running, replaces unhealthy ones and adds or removes capacity based on demand. Auto-Scaling needs a template describing what to launch. Launch templates are the current way to do that, with versions and support for newer features. Launch Config / Autoscaling Groups: launch configurations are the older form, and AWS no longer adds features to them, so use templates.
Scaling policies: target tracking keeps a metric near a value, such as 50 percent CPU. Step scaling reacts in bands. Scheduled scaling prepares for known peaks. Set minimum, desired and maximum sizes, spread across AZs, and use ELB health checks so failed instances are replaced. Instances must be stateless for this to work.
Practice. Create an Auto Scaling group with a target tracking policy and generate load to see it add instances.
Stage 5 Storage and Content Delivery
Goal. Store objects durably, control their cost and serve them quickly worldwide.
S3: Buckets and Objects Core
S3 is object storage. A bucket is a container with a globally unique name in one Region, and an object is a file plus metadata stored under a key. There are no real folders, only keys with prefixes that the console shows as folders. Objects can be up to 5 TB, and multipart upload helps with large files.
S3 is designed for very high durability and is strongly consistent for reads after writes. Security defaults matter: Block Public Access is on by default and should stay on, new buckets have ACLs disabled and encryption is on by default with S3-managed keys. Grant access through IAM policies and bucket policies, and use pre-signed URLs to give temporary access to one object.
Practice. Create a private bucket, upload a file, then generate a pre-signed URL that expires in five minutes.
Storage Classes: Standard, S3-IA and Glacier Core
Storage classes trade price against access speed and cost. Standard is for frequently used data. Standard-IA (S3-IA, infrequent access) is cheaper to store but charges per retrieval and has a minimum storage period, and suits backups you rarely read. One Zone-IA keeps data in a single AZ. Intelligent-Tiering moves objects between tiers automatically for unknown patterns.
Glacier classes are for archives. Instant Retrieval returns in milliseconds, Flexible Retrieval takes minutes to hours and Deep Archive takes hours and is the cheapest. Choose by how often and how fast you need the data, and remember small objects can cost more in the cold classes because of minimum sizes and overheads.
Practice. Pick a class for logs, backups and legal archives and explain each choice with access frequency.
Bucket / Object Lifecycle, Versioning and Backup / Restore Core
Lifecycle rules automate cost control. A rule might move objects to Standard-IA after 30 days, to Glacier after 90 and delete them after a year. They can also remove incomplete multipart uploads and old object versions.
Versioning keeps every version of an object, so overwrites and deletes can be undone. A delete adds a delete marker and the earlier versions remain until a lifecycle rule removes them. With versioning, add rules for non-current versions or storage will keep growing. For Backup / Restore, combine versioning, cross-Region replication and AWS Backup, and add Object Lock for write-once retention. Test the restore, since a backup you have never restored is only a hope.
Practice. Enable versioning, overwrite and delete a file, then restore the earlier version and add a lifecycle rule.
CloudFront, Distributions, Invalidations and Lambda Edge Recommended
CloudFront is a content delivery network. A distribution defines origins, such as an S3 bucket or a load balancer, and behaviours that map paths to origins and caching settings. Users are served from the nearest edge location, and cached copies reduce latency and origin load. Use Origin Access Control so the bucket is reachable only through CloudFront.
Invalidations remove cached objects before their time to live ends, for example /index.html. They are limited and, past a free allowance, charged, so prefer versioned file names such as app.3f2a1.js with long cache times. Lambda@Edge and the lighter CloudFront Functions run code at the edge for redirects, header changes, authentication and rewrites.
Practice. Put a CloudFront distribution in front of a private S3 bucket holding a static page and verify direct access is blocked.
Stage 6 Databases
Goal. Choose between relational, key-value and cache services and operate each sensibly.
RDS and DB Instances Core
Amazon RDS runs relational databases such as PostgreSQL, MySQL, MariaDB, Oracle and SQL Server, and Aurora, AWS's own engine compatible with MySQL and PostgreSQL. AWS handles provisioning, patching, backups and failover, while you manage schema, queries, access and sizing.
A DB instance has an instance class, storage and an engine version. Put instances in private subnets and let only the application's security group reach them. Multi-AZ keeps a standby in another zone for automatic failover. Read replicas scale reads and need your application to route read queries. Automated backups give point-in-time recovery. Turn on encryption, and use Secrets Manager for credentials. Learn the SQL side in SQL Roadmap.
Practice. Launch a small PostgreSQL instance in private subnets, connect from an EC2 instance and test a snapshot restore.
DynamoDB: Tables, Items and Attributes Core
DynamoDB is a managed key-value and document database that gives single-digit millisecond reads at almost any scale. Tables / Items / Attributes: a table holds items, which are like rows, and each item has attributes, which are like columns but can differ from item to item. Only the key attributes are fixed.
There are no servers to manage and no joins. You model for the queries you already know. It supports transactions, TTL to expire items, encryption, point-in-time recovery and global tables for multi-Region replication. It is a good fit for sessions, carts, user profiles, and event data. It is a poor fit for ad hoc analytics or heavily relational data.
Practice. Create a table with a simple key, put and query a few items using the console or CLI.
Primary Keys, Secondary Indexes and Data Modeling Core
Each table has a primary key: either a partition key alone, or a partition key plus a sort key. The partition key determines where data lives, so choose a value with many distinct values to spread load. The sort key orders items within a partition and allows range queries.
Secondary indexes give alternative access paths. A global secondary index has its own keys and can be added later. A local secondary index shares the partition key and must be created with the table. Data modeling starts with access patterns: list the queries, then design keys so each is a single Query. Single-table design places several entity types in one table with generic key names. Avoid Scan on big tables, because it reads everything.
Practice. Model orders and customers for three access patterns using a partition key, sort key and one GSI.
Capacity Settings, Streams and DynamoDB Local Recommended
Capacity Settings choose how you pay. On-demand mode charges per request and suits unpredictable traffic. Provisioned mode sets read and write capacity units, optionally with auto scaling, and is cheaper for steady traffic. Throttling happens when you exceed capacity or hit a hot partition.
Streams record every change to items for 24 hours. Lambda functions can read them to build search indexes, send notifications, replicate data or keep aggregates. DynamoDB Local is a downloadable version that runs on your machine, so you can develop and test without an account or charges, though it does not replicate every real-service behaviour, such as capacity throttling.
Practice. Run DynamoDB Local, create a table in it and write a script that reads and writes items.
ElastiCache Recommended
ElastiCache provides managed in-memory data stores with Redis OSS or Valkey and with Memcached. Use it to keep hot data close to the application: cached query results, sessions, rate limit counters, leaderboards and queues. Reads take well under a millisecond.
Common patterns are cache-aside, where the app checks the cache and loads from the database on a miss, and write-through. Always set expiry times and plan for the cache being empty, because it is not the source of truth. Run in private subnets with security groups, and use replication groups and Multi-AZ for availability. Learn the commands in Redis Roadmap.
Practice. Add a cache-aside layer to a small app and measure the request time with and without the cache.
Stage 7 Serverless and Event-Driven Services
Goal. Build functions behind an API, trigger them from events and know the limits that matter.
Lambda: Creating and Invoking Functions Core
Lambda runs your code in response to triggers without you managing servers. You upload code or a container image, set memory and a timeout, and give it an execution role. You pay for requests and for the duration, scaled by memory, and CPU grows with memory.
export const handler = async (event) => {
const name = event.queryStringParameters?.name ?? "world";
return { statusCode: 200, body: `Hello ${name}` };
};Creating / Invoking Functions can be done synchronously, as API Gateway does and the caller waits, asynchronously, as S3 notifications do with automatic retries, or by polling, as with SQS and Kinesis. Handle retries by making functions idempotent, and send failures to a dead-letter queue or on-failure destination.
Practice. Create a function, test it from the console and invoke it from the CLI with a JSON payload.
Lambda Versioning, Aliases, Layers and Custom Runtimes Recommended
Publishing a function creates an immutable numbered version. An alias such as prod points to a version and can split traffic between two, which enables gradual releases and quick rollback. Versioning / Aliases let API Gateway or triggers reference the alias so they never need updating.
Layers are zip archives of libraries or other files mounted into the function, useful for shared dependencies, though container images are often simpler. Custom runtimes let you run a language Lambda does not provide: you ship a bootstrap executable that talks to the runtime API. Managed runtimes get deprecated on a published schedule, so track the runtime versions you use and upgrade before the end of support.
Practice. Publish two versions, create a prod alias and shift 10 percent of traffic to the newer version.
Events, Cold Start and Limitations Core
Events trigger functions: S3 uploads, DynamoDB streams, SQS messages, EventBridge rules and API calls. A cold start is the extra time to create a new execution environment, download code and run initialisation, before the handler runs. It affects the first request after idle time or during scale-up. Reduce it with smaller packages, lighter initialisation, more memory, or provisioned concurrency. SnapStart helps for some runtimes.
Cold Start and Limitations: the maximum run time is 15 minutes, memory goes up to 10 GB, the deployment package has size limits and the default account concurrency is limited. Local disk is temporary, and the function is stateless. Long-running or very steady heavy workloads can be cheaper on containers or instances.
Practice. Measure the first and the second invocation time of a function and try raising its memory.
API Gateway Core
API Gateway is the managed front door for HTTP APIs. It handles routing, authorisation, throttling, request validation, CORS and custom domains, and integrates with Lambda, HTTP backends and other AWS services. HTTP APIs are cheaper and simpler. REST APIs offer more features, such as usage plans, API keys and request transformation. WebSocket APIs support two-way connections.
Protect APIs with IAM authorisation, Cognito or JWT authorisers, or a Lambda authoriser. Set throttling limits and enable access logs. Use stages for environments, and the default 29 second integration timeout means long jobs should be asynchronous: accept the request, put work on a queue and return an identifier.
Practice. Expose a Lambda function through an HTTP API with a JWT authoriser and a throttle limit.
Event Bridge and Scheduled Execution Recommended
Amazon EventBridge is an event bus. Services and your own applications put events on it, and rules match event patterns and route them to targets such as Lambda, SQS, Step Functions or another account. It decouples producers from consumers, so adding a new reaction does not change the sender.
Scheduled execution is done with EventBridge Scheduler, which replaces the older scheduled rules. It runs a target at a cron or rate expression, or once at a given time, with time zone support and retries. Typical uses are nightly reports, cleaning jobs and reminders. Design handlers to be idempotent, because events can be delivered more than once.
Practice. Create a rule that sends S3 upload events to a Lambda function and a schedule that runs it every night.
Stage 8 Containers on AWS
Goal. Run container workloads with ECS, Fargate or EKS and store images in ECR.
ECR Core
Elastic Container Registry stores container images in private repositories, with optional public ones. Log in with the AWS CLI token, tag the image with the repository address and push it:
aws ecr get-login-password | docker login --username AWS --password-stdin ACCOUNT.dkr.ecr.REGION.amazonaws.com
docker tag app:1.0 ACCOUNT.dkr.ecr.REGION.amazonaws.com/app:1.0
docker push ACCOUNT.dkr.ecr.REGION.amazonaws.com/app:1.0Turn on image scanning, set lifecycle policies to remove old images and prefer immutable tags so a tag always means the same image. Access is through IAM and repository policies. If you are new to images, learn Docker Roadmap first.
Practice. Push an image to a private repository and add a lifecycle rule that keeps only the ten latest images.
ECS, Clusters, ECS Container Agents, Tasks and Services Core
Elastic Container Service is AWS's own container orchestrator. A cluster groups capacity. A task definition describes containers: image, CPU, memory, ports, environment and roles. A task is a running copy of that definition. A service keeps a desired number of tasks running, replaces failures and connects them to a load balancer.
With EC2 capacity, Clusters / ECS Container Agents applies: each instance runs an agent that registers it with the cluster and starts tasks. Give tasks a task role for application permissions and an execution role for pulling images and writing logs. Use rolling updates or blue-green deployments with CodeDeploy.
Practice. Define a task for a simple web container and run it as a service behind a load balancer.
Fargate Core
Fargate is serverless capacity for ECS and EKS. You give a task CPU and memory, and AWS runs it without you managing instances, patching hosts or sizing clusters. You pay for the resources requested while the task runs.
It suits most services where operational simplicity matters. Trade-offs are a higher unit price than well-used EC2, fewer low-level options such as privileged containers and host access, and start-up time for each task. Tasks get their own network interface, so plan subnet address space and security groups per service. Spot capacity is available for fault-tolerant tasks.
Practice. Run the same container on Fargate and compare setup effort with an EC2-backed cluster.
EKS Recommended
Elastic Kubernetes Service runs the Kubernetes control plane for you across several AZs. You add worker capacity as managed node groups, Fargate profiles or Karpenter-managed nodes, and deploy with the usual manifests or Helm. Learn the platform itself in Kubernetes Roadmap.
EKS adds AWS integration: IAM roles for service accounts or Pod Identity give pods AWS permissions, the load balancer controller creates load balancers from Ingress objects, and the VPC CNI gives pods VPC addresses. It costs a fixed hourly fee per cluster plus the nodes, and Kubernetes versions need upgrades regularly. Choose it when you need the Kubernetes ecosystem or portability, and ECS when you want less to operate.
Practice. Create a small cluster with a managed node group using Terraform or eksctl and deploy a sample app.
Stage 9 DNS, Observability, Email and Limits
Goal. Route traffic with DNS, monitor systems, send email reliably and work within service quotas.
Amazon Route 53, Hosted Zones and Routing Policies Core
Amazon Route 53 is a DNS service. A hosted zone holds the records for a domain, and a public one answers internet queries, while a private one answers only inside chosen VPCs. Common records are A and AAAA for addresses, CNAME for names and MX for mail. An alias record points a name, including the root of a domain, at AWS resources such as load balancers and CloudFront, with no extra query charge.
Routing policies choose the answer: simple, weighted for gradual shifts, latency-based, geolocation, failover for active-passive and multi-value. Combined with health checks, failover can send users to a standby site when the primary fails. Keep TTLs low before a migration.
Practice. Create a hosted zone, add an alias to a load balancer and a weighted pair of records for a test.
Route 53 Health checks Recommended
Health checks probe an endpoint over HTTP, HTTPS or TCP from several locations. They can also watch a CloudWatch alarm or combine other checks. A record tied to a health check is returned only while the check passes, which drives failover and multi-value answers.
Choose a path that tests something real and light, and set the interval and failure threshold to balance speed and false alarms. Add alarms and notifications. Remember that DNS changes take effect as caches expire, so failover time includes the TTL and not only the detection time.
Practice. Set up primary and secondary records with a health check and take the primary down to watch the switch.
CloudWatch: Metrics, Logs and Alarms Core
CloudWatch is where AWS services and your own applications send their numbers, log lines and events. Metrics are time series, such as CPU use, in namespaces with dimensions, kept at set resolutions. Logs are stored in log groups and streams, searched with Logs Insights queries and turned into metrics with filters. Alarms watch a metric and trigger an action, such as a notification through SNS or an Auto Scaling policy.
EC2 does not send memory or disk metrics by default: install the CloudWatch agent. Create dashboards for key signals, set log retention to control cost and use structured JSON logs so queries are easy. CloudTrail records API activity, and X-Ray or OpenTelemetry provide traces.
Practice. Create an alarm on CPU for an instance that sends an email and test it by generating load.
Amazon SES: Identity Verification, DKIM Setup and the Sandbox Recommended
Simple Email Service sends transactional and bulk email. Identity Verification proves you own a sender address or domain; verify the whole domain for production. DKIM Setup adds cryptographic signatures through DNS records so receivers can confirm messages came from you, and you should also publish SPF and a DMARC policy.
New accounts start in the Sandbox / Sending Limits state: you can send only to verified addresses and at low volumes. Request production access with a clear description of your use and how you handle bounces. Sending quotas then grow with good behaviour.
Practice. Verify a domain, publish DKIM records and send a test message to a verified address.
SES Reputation, Configuration Sets, Dedicated IP and Feedback Handling Optional
Sender Reputation is how mailbox providers judge your mail, based on bounces, complaints and engagement. High bounce or complaint rates can pause sending. Keep lists clean, honour unsubscribes and ramp up volume gradually.
Configuration Sets group settings for a set of messages: event publishing to CloudWatch, SNS or Firehose, tracking, and which IP pool to use. A Dedicated IP gives you an address with your own reputation, worthwhile only for large, steady volume, and it needs a warm-up period. Feedback Handling means consuming bounce and complaint events through SNS and removing or suppressing those addresses automatically, which also protects your reputation.
Practice. Publish bounce and complaint events to an SNS topic and write a small handler that suppresses the address.
Quotas and Limits Recommended
Every service has Quotas, also called Limits, that cap resources per account and Region: for example VPCs per Region, running instance vCPUs, Lambda concurrency and API request rates. Some are soft and can be raised through Service Quotas, and others are hard limits.
Know the quotas of what you design with, since they shape architecture, for example Lambda concurrency, DynamoDB throughput and API Gateway throttles. Request increases before a launch, as some take days. Use CloudWatch alarms on usage, and handle throttling errors in code with exponential backoff and jitter. New accounts often start with low limits.
Practice. Open Service Quotas, find three quotas relevant to a web app and write what happens when each is reached.
Projects to build
Build these in order. Each one should end up in a public repository with a short README that explains your decisions.
- Static site with a CDNBeginner
Host a static website in a private S3 bucket behind CloudFront with HTTPS and a custom domain from Route 53. Add a lifecycle rule for old logs and a billing alarm.
S3 · CloudFront · Route 53
- Three-tier web applicationIntermediate
Deploy a web app in a VPC with public and private subnets across two zones, an application load balancer, an Auto Scaling group and an RDS database in private subnets. Use roles for permissions and Systems Manager for access.
VPC · EC2 · RDS · IAM
- Serverless REST APIIntermediate
Build a to-do API with API Gateway, Lambda and DynamoDB. Add a JWT authoriser, a GSI for a second query and alarms on errors and throttles.
Lambda · DynamoDB · API Gateway
- Event-driven image pipelineAdvanced
Upload images to S3, resize them with Lambda through an SQS queue, store metadata in DynamoDB and email a summary nightly through SES. Handle retries and a dead-letter queue.
S3 · SQS · Lambda · SES
- Containerised service on ECSAdvanced
Containerise an application, push it to ECR and run it on Fargate behind a load balancer with blue-green deployments, autoscaling and structured logs in CloudWatch. Describe it all as code.
ECR · ECS · Fargate · CloudWatch
Interview questions
Try to answer each question out loud before you open the answer.
What is the difference between a Region and an Availability Zone?Junior
A Region is a geographic area with several isolated Availability Zones. An AZ is one or more data centres with separate power, cooling and networking, linked to others in the Region by fast connections. I deploy across at least two AZs for resilience, and use more than one Region only for disaster recovery or global users.
Explain the shared responsibility model.Junior
AWS secures the cloud itself: facilities, hardware and the managed service platforms. I secure what I put in it: data, identities, permissions, network rules, guest operating systems and application code. The split changes by service. On EC2 I patch the OS, on RDS AWS patches the engine, and I still own access and encryption settings.
What is the difference between an IAM user, group and role?Junior
A user is an identity with long-lived credentials. A group is a set of users that share policies. A role has no credentials of its own: something assumes it and gets temporary ones, subject to a trust policy. I use roles for services and cross-account access, and Identity Center for people, with few or no IAM users.
How does IAM policy evaluation work?Mid
Requests are denied by default. An explicit Deny in any applicable policy wins. Otherwise, the request needs an Allow, and permission boundaries, service control policies and session policies must also permit it. Resource-based policies can grant access across accounts. I debug with the policy simulator and CloudTrail.
What makes a subnet public?Junior
Its route table has a default route to an internet gateway, and the instances need public or elastic IP addresses. A private subnet has no such route. Private instances reach the internet through a NAT gateway in a public subnet, and AWS services through VPC endpoints.
Security groups versus network ACLs?Mid
Security groups are stateful, attach to network interfaces, have allow rules only and can reference other groups. Network ACLs are stateless, attach to subnets and have ordered allow and deny rules. I rely on security groups for most control, and use NACLs for coarse subnet-wide blocks.
How would you make a web application highly available on AWS?Mid
Run instances or tasks in at least two AZs behind an application load balancer with health checks, in an Auto Scaling group. Put the database in Multi-AZ mode. Keep servers stateless, with sessions in a cache or database. Store assets in S3 with CloudFront, use Route 53 health checks if a second Region is needed and rehearse a failure.
When would you pick Spot, On-Demand or Savings Plans?Mid
On-demand for new or unpredictable load. Savings Plans or reserved capacity for steady baseline usage after measuring it. Spot for stateless, interruptible work such as batch, CI and queue workers, with graceful handling of the two-minute notice. Real systems mix all three.
How do S3 storage classes and lifecycle rules reduce cost?Mid
Lifecycle rules move objects as they age, for example Standard to Standard-IA after 30 days, then Glacier, and delete when retention ends. Classes trade lower storage prices for retrieval fees, minimum durations and slower access. Intelligent-Tiering fits unknown patterns. I also clean up old versions and incomplete uploads.
RDS or DynamoDB?Mid
RDS for relational data, joins, transactions across tables and flexible queries. DynamoDB when access patterns are known and need massive scale and low latency with little operations. In DynamoDB I design keys from the queries, and there are no ad hoc joins. Many systems use both.
How do you choose a DynamoDB partition key?Senior
I pick an attribute with many distinct values that is used in most queries, so traffic spreads evenly across partitions. A key like a status flag creates a hot partition. A sort key supports range queries within an item collection, and secondary indexes cover other patterns. I list access patterns before designing.
What is a Lambda cold start and how do you reduce it?Mid
It is the time to create a new execution environment and run initialisation code before the handler runs. It appears after idle periods and when scaling out. I reduce it with small packages, lazy initialisation, more memory, SnapStart where supported and provisioned concurrency for latency-sensitive paths.
How do you handle retries and duplicates in event-driven systems?Senior
Delivery is at least once in most AWS services, so handlers must be idempotent. I use idempotency keys or conditional writes in DynamoDB, send failures to a dead-letter queue, set sensible retry counts with backoff and alarm on queue depth and age.
ECS on Fargate versus EKS?Senior
ECS on Fargate is simpler: no cluster nodes to manage and tight AWS integration. EKS gives the Kubernetes API, its ecosystem and portability, at the cost of more concepts and upgrades. I choose ECS unless the team already uses Kubernetes or needs its tools.
How would you give an EC2 instance access to S3 securely?Mid
Create an IAM role with a policy limited to the needed bucket and prefix, attach it through an instance profile and let the SDK pick up temporary credentials from the metadata service with IMDSv2 required. No access keys on disk. Add a bucket policy or VPC endpoint condition if access should come only from inside the VPC.
Your AWS bill doubled this month. How do you investigate?Senior
Open Cost Explorer and group by service, account, Region and tag to find the change. Look for common causes: NAT gateway data, idle load balancers, unattached volumes and snapshots, over-sized or forgotten instances, data transfer and log growth. Fix the cause, add budgets and anomaly alerts, and enforce tagging.
Common mistakes
- Using the root user or long-lived access keys for daily work; use roles and Identity Center with MFA.
- Making buckets public or writing wildcard policies; keep Block Public Access on and grant least privilege.
- Opening SSH or database ports to the whole internet; use security group references and Session Manager.
- Running everything in one AZ; spread across at least two and test failover.
- Forgetting costs from NAT gateways, idle load balancers and snapshots; set budgets and delete experiments.
- Treating DynamoDB like a relational database; model for access patterns and avoid scans.
- Storing state on instances that Auto Scaling may replace; keep servers stateless.
- Building by clicking and never recording it; describe infrastructure as code with Terraform Roadmap.
- Ignoring quotas until launch day; check and request increases early.
Ready-for-interview checklist
- I can explain Regions, AZs and edge locations and choose between them.
- I can state the shared responsibility model for EC2, RDS and Lambda.
- I can write a least-privilege IAM policy and a role with a trust policy.
- I can design a VPC with public and private subnets, NAT and endpoints.
- I can launch EC2 with user data, an instance profile and a load balancer.
- I can configure an Auto Scaling group with a target tracking policy.
- I can choose an EBS volume type and an EC2 purchasing option for a workload.
- I can set up S3 with versioning, lifecycle rules and CloudFront.
- I can choose between RDS, DynamoDB and ElastiCache and justify it.
- I can model a DynamoDB table from access patterns.
- I can build a Lambda and API Gateway API and explain cold starts.
- I can describe ECS, Fargate and EKS and when to use each.
- I can create Route 53 records with failover, and CloudWatch alarms.
- I can estimate the monthly cost of a simple architecture.
Related roadmaps
- Cloud Computing RoadmapService models, networking, storage, cost and multi-cloud.
- Terraform RoadmapProviders, state, modules, workspaces and CI pipelines.
- Docker RoadmapImages, containers, networking, volumes, Compose and security.
- Kubernetes RoadmapPods, deployments, services, config, scaling and operations.
- Linux RoadmapFilesystem, processes, permissions, networking and troubleshooting.
- SQL RoadmapQueries, joins, window functions, indexes and transactions.
FAQ
How long does it take to learn AWS?
The core services take about three months at eight hours a week, including hands-on practice. You can build a simple application in the first month. Mastery of the full catalogue is not realistic, and not needed for most roles.
Which AWS services should I learn first?
IAM, VPC, EC2, S3 and CloudWatch come first, because everything else depends on them. Then add RDS, Lambda, DynamoDB, Route 53 and a container service. Use the order of this roadmap.
Do I need an AWS certification?
Not for most jobs, but the Cloud Practitioner and Solutions Architect Associate syllabi are a useful study guide and can help a first application. Hands-on projects convince interviewers more than a certificate alone.
Can I learn AWS for free?
Largely, yes, within the free tier and credits for new accounts, if you set budgets and delete resources after each session. Watch for NAT gateways, load balancers and databases, which are not always free.
AWS, Azure or Google Cloud first?
The ideas transfer between them, so start with the one used by the jobs you want or by your employer. AWS has the largest share of roles. Read Cloud Computing Roadmap for the provider-neutral concepts.