# Cloud Engineer (AWS) roadmap

> AWS-first path from cloud basics to designing, securing, automating and costing production systems, with Azure and GCP equivalents.

Canonical: https://www.internhack.in/roadmaps/tracks/cloud-engineer
Last updated: 2026-11-28

16 sections, 60 topics, about 327 hours.

An AWS-first cloud engineering roadmap built for Indian students. Start with cloud concepts, the shared responsibility model and AWS regions including Mumbai and Hyderabad, plus the Linux, networking and Git fundamentals underneath. Set up an account safely with budgets and cost alerts, then go deep on IAM and VPC networking. Learn compute with EC2, Auto Scaling and load balancers, storage with S3, EBS and EFS, and databases with RDS, Aurora, DynamoDB and ElastiCache. Build serverless and event-driven systems, run containers on ECS Fargate or EKS, manage everything with Terraform or CDK, and ship through CI/CD pipelines. Finish with observability, security services, reliability and disaster recovery, FinOps, the Cloud Practitioner and Solutions Architect Associate certifications, portfolio projects and interview prep. Every lab is designed to stay in the free tier and be torn down after.

## Outcomes

- Explain cloud service models, shared responsibility and how to choose regions and AZs for Indian users
- Open and run an AWS account safely with MFA, budgets, alerts and no surprise bills
- Design least-privilege IAM with roles, policy conditions, OIDC federation and SCP guardrails
- Build multi-AZ VPCs with public and private subnets, NAT, security groups, endpoints and peering
- Run scalable compute with EC2, Auto Scaling, load balancers, ECS Fargate or EKS
- Choose and operate the right storage and database: S3, EBS, EFS, RDS, Aurora, DynamoDB and ElastiCache
- Build event-driven serverless systems with Lambda, API Gateway, SQS, SNS, EventBridge and Step Functions
- Manage all infrastructure as code with Terraform or CloudFormation/CDK and deploy through CI/CD
- Monitor, trace and audit workloads with CloudWatch, X-Ray, CloudTrail and Config
- Secure workloads with KMS, Secrets Manager, GuardDuty, Security Hub and WAF
- Design for reliability and disaster recovery using the Well-Architected Framework
- Optimize cost with FinOps practices, rightsizing, Savings Plans and Spot
- Earn AWS certifications and present a portfolio that wins cloud interviews

## Prerequisites

- Basic computer literacy
- Comfort with any one programming language is helpful
- A card that supports international transactions for the AWS account

## Cloud Foundations

What the cloud actually is, who is responsible for what, and how AWS is laid out across the world and inside India.

### Cloud Computing Concepts: IaaS, PaaS and SaaS

core · beginner · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloud-concepts

Understand the cloud service models, deployment models and pay-as-you-go economics that every AWS, Azure and GCP service is built on.

Cloud computing means renting computing resources (servers, storage, databases, networks) over the internet, on demand, and paying only for what you use. Instead of buying a server that sits idle at night, you start one in minutes and switch it off when you are done.

#### Service models
- **IaaS (Infrastructure as a Service)**: you rent virtual machines, disks and networks and manage the operating system yourself. Examples: Amazon EC2, Azure Virtual Machines, Google Compute Engine.
- **PaaS (Platform as a Service)**: the provider runs the platform and you bring code or data. Examples: AWS Elastic Beanstalk, Amazon RDS, Azure App Service, Google App Engine.
- **SaaS (Software as a Service)**: finished software you configure, such as Gmail, Zoho or Salesforce.
- **Serverless / FaaS**: you upload functions or containers, pay per request or per millisecond, and capacity scales to zero (AWS Lambda, Azure Functions, Google Cloud Run).

#### Deployment models
- **Public cloud**: shared provider infrastructure (AWS, Azure, GCP).
- **Private cloud**: dedicated infrastructure, often on premises (VMware, OpenStack).
- **Hybrid**: a mix, common in Indian banks and government projects that keep some data on premises for regulatory reasons.

#### Why companies move to the cloud
- **Elasticity**: scale up for a Big Billion Days sale, scale down after.
- **CapEx to OpEx**: no large upfront hardware purchase.
- **Speed**: a new environment in minutes instead of weeks of procurement.
- **Global reach**: deploy close to users in many countries.

#### Pitfalls
- Assuming the cloud is always cheaper. A badly sized, always-on setup can cost more than a rented physical server.
- Thinking "serverless" means no servers. It means you do not manage them.

You are ready to move on when you can classify ten services you know (Gmail, EC2, RDS, Lambda, Google Drive) into IaaS, PaaS, SaaS or serverless and explain your reasoning.

Key concepts: IaaS, PaaS, SaaS, Serverless and FaaS, Public, private and hybrid cloud, Elasticity and scalability, CapEx vs OpEx, Pay-as-you-go pricing, Multi-cloud.

Mini project: Make a table of 12 products you use (UPI apps, Gmail, Netflix, college ERP) and guess which service model and which cloud each might run on. Then read the AWS 'What is cloud computing' page and correct your guesses. No account needed yet.

Self-check: A startup runs its app on Amazon RDS for PostgreSQL. Who installs database patches, and who designs the tables and indexes?

Resources:
- [What is cloud computing?](https://aws.amazon.com/what-is-cloud-computing/) (AWS)
- [Types of cloud computing](https://aws.amazon.com/types-of-cloud-computing/) (AWS)
- [AWS Skill Builder (free Cloud Practitioner Essentials)](https://skillbuilder.aws/) (AWS)
- [AWS roadmap](https://roadmap.sh/aws) (roadmap.sh)

### The Shared Responsibility Model

core · beginner · about 2 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/shared-responsibility

Learn exactly which security and operations tasks AWS owns and which ones stay with you, and how that line moves between IaaS, PaaS and serverless.

AWS describes security as a split: AWS is responsible for **security of the cloud**, and you are responsible for **security in the cloud**. Azure and Google Cloud use the same idea with slightly different wording.

#### What AWS owns
- Physical data centres, guards, power and cooling.
- Hardware, the global network and the hypervisor.
- The internals of managed services (for example, patching the host that runs your Lambda function).

#### What you always own
- **Identity and access**: who can log in, which keys exist, MFA on the root user.
- **Data**: classification, encryption settings, backups.
- **Network exposure**: security groups, public IPs, public S3 buckets.
- **Your application code** and its dependencies.

#### How the line moves
- On **EC2** (IaaS) you also patch the operating system, configure the firewall and install agents.
- On **RDS** (managed) AWS patches the database engine, but you choose who can connect and whether storage is encrypted.
- On **Lambda** (serverless) AWS manages the OS and runtime; you own the code, its permissions and its environment variables.

#### Why this matters
Almost every well-known cloud breach was a customer-side mistake: a public bucket, an access key committed to GitHub, an overly broad IAM policy or an open database port. The provider was not hacked; the configuration was wrong.

#### Pitfalls
- Assuming "AWS is secure, so my app is secure".
- Forgetting that backups are your job. AWS keeps the service running, not your deleted data.

You are ready to move on when you can take EC2, RDS, S3 and Lambda and list, for each, three things you must configure yourself.

Key concepts: Security of the cloud vs in the cloud, Responsibilities on IaaS, Responsibilities on managed services, Responsibilities on serverless, Customer-side misconfiguration breaches, Compliance programs (ISO, SOC, PCI).

Mini project: Draw a three-column diagram (EC2, RDS, Lambda) with a horizontal line showing where AWS responsibility ends and yours starts. Add one real breach headline per column that happened on the customer side.

Self-check: Your S3 bucket with student resumes becomes publicly readable. Under the shared responsibility model, whose fault is it and why?

Resources:
- [Shared Responsibility Model](https://aws.amazon.com/compliance/shared-responsibility-model/) (AWS)
- [AWS Security documentation](https://docs.aws.amazon.com/security/) (AWS)
- [AWS Skill Builder](https://skillbuilder.aws/) (AWS)

### Global Infrastructure: Regions, AZs and Edge

core · beginner · about 2 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/regions-azs

Learn how AWS regions, availability zones and edge locations work, including the Mumbai and Hyderabad regions, and how to choose where to deploy.

AWS infrastructure is organized into layers of physical isolation. Understanding them is the basis of every reliability and latency decision you will make.

#### Regions
A **region** is a geographic area with its own independent set of data centres, such as **ap-south-1 (Mumbai)** and **ap-south-2 (Hyderabad)**. Most services are regional: an EC2 instance in Mumbai does not exist in Hyderabad. Azure has Central India (Pune), South India (Chennai) and West India (Mumbai); Google Cloud has asia-south1 (Mumbai) and asia-south2 (Delhi).

#### Availability Zones (AZs)
Each region has multiple **AZs**: one or more data centres with separate power, cooling and networking, connected by low-latency links. Names like ap-south-1a are mapped differently per account, so use AZ IDs (aps1-az1) when coordinating across accounts. Spreading across two or three AZs protects you from a single data-centre failure.

#### Edge locations and local options
- **Edge locations** serve CloudFront (CDN) and Route 53, and there are many across Indian cities.
- **Local Zones** and **Outposts** bring AWS closer to specific cities or into your own building for very low latency.

#### Choosing a region
- **Latency**: users in India get the best experience from Mumbai or Hyderabad.
- **Data residency and compliance**: some Indian regulations (RBI for payments data, government projects) require data to stay in India.
- **Service availability**: newer regions may not have every service yet. Check before you design.
- **Price**: the same instance can cost different amounts in different regions; us-east-1 is often cheapest but far away.

#### Pitfalls
- Forgetting which region the console is set to and "losing" resources you created elsewhere.
- Treating ap-south-1 and ap-south-2 as a disaster recovery pair without checking that every service you need exists in both.

You are ready to move on when you can explain region vs AZ vs edge location and justify a region choice for an Indian fintech app.

Key concepts: Regions, Availability Zones and AZ IDs, Mumbai (ap-south-1) and Hyderabad (ap-south-2), Edge locations and CloudFront, Data residency in India, Local Zones and Outposts, Global vs regional services.

Mini project: Using the AWS global infrastructure page, list which of these services are available in both Mumbai and Hyderabad: EC2, Lambda, Aurora, EKS, Bedrock. Write a short recommendation of a primary and a backup region for an Indian edtech app. No resources need to be created.

Self-check: Why would you deploy a web app across ap-south-1a and ap-south-1b instead of two instances in ap-south-1a?

Resources:
- [Regions and Availability Zones](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/) (AWS)
- [AWS Global Infrastructure](https://aws.amazon.com/about-aws/global-infrastructure/) (AWS)
- [The Open Guide to AWS](https://github.com/open-guides/og-aws) (open-guides)

### AWS, Azure and GCP Side by Side

optional · beginner · about 2 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloud-providers-map

Map the core AWS services to their Azure and Google Cloud equivalents so your AWS skills transfer to any job description.

This track is AWS-first because AWS has the most job postings in India and the largest service catalogue. But many Indian service companies (TCS, Infosys, Wipro, Accenture) run projects on Azure and GCP too. If you know the concepts, switching providers is mostly learning new names.

#### Common equivalents
- **Virtual machines**: EC2, Azure Virtual Machines, Compute Engine.
- **Object storage**: S3, Azure Blob Storage, Cloud Storage.
- **Private network**: VPC, Azure Virtual Network (VNet), VPC (global in GCP).
- **Identity**: IAM, Microsoft Entra ID plus Azure RBAC, Cloud IAM.
- **Managed SQL**: RDS/Aurora, Azure SQL Database, Cloud SQL.
- **NoSQL key-value**: DynamoDB, Cosmos DB, Firestore/Bigtable.
- **Functions**: Lambda, Azure Functions, Cloud Functions / Cloud Run.
- **Kubernetes**: EKS, AKS, GKE.
- **Infrastructure as Code**: CloudFormation/CDK, Bicep/ARM, Deployment Manager (Terraform works on all three).
- **Monitoring**: CloudWatch, Azure Monitor, Cloud Monitoring.

#### Real differences to know
- GCP VPCs are **global**, while AWS and Azure networks are regional.
- Azure organizes resources into **resource groups** and leans heavily on Entra ID for identity.
- GCP uses **projects** as the main boundary; AWS uses **accounts**.

#### Pitfalls
- Trying to learn all three at once. Go deep on AWS, then map.
- Assuming equivalent services behave identically. Limits, pricing and defaults differ.

You are ready to move on when you can translate a simple AWS architecture (ALB, EC2, RDS, S3) into Azure and GCP service names without looking it up.

Key concepts: Compute equivalents, Storage and database equivalents, Identity: IAM vs Entra ID vs Cloud IAM, Accounts vs subscriptions vs projects, Global VPC in GCP.

Mini project: Create a three-column cheat sheet (AWS, Azure, GCP) for 15 services. Use it to rewrite one AWS reference architecture diagram in Azure terms. Reading only, no accounts needed.

Self-check: Name the Azure and GCP equivalents of S3, Lambda and EKS.

Resources:
- [Azure for AWS professionals](https://learn.microsoft.com/en-us/azure/architecture/aws-professional/) (Microsoft)
- [Compare AWS and Azure services to Google Cloud](https://cloud.google.com/docs/get-started/aws-azure-gcp-service-comparison) (Google Cloud)
- [AWS roadmap](https://roadmap.sh/aws) (roadmap.sh)

## Linux, Networking and Git Fundamentals

The operating system, networking and version-control skills that every cloud task quietly depends on.

### Linux Command Line for Cloud Servers

core · beginner · about 12 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/linux-cli

Get comfortable on a Linux shell: files, permissions, processes, packages, services and logs, because most cloud servers and containers run Linux.

Most EC2 instances, containers and CI runners run Linux. You will SSH into machines, read logs and debug services from a terminal, so the shell must feel natural.

#### Daily commands
- Navigation and files: ls, cd, pwd, cp, mv, rm, mkdir, find.
- Reading files: cat, less, head, tail -f (follow a log live).
- Searching: grep, and pipes (|) to chain commands together.
- Disk and memory: df -h, du -sh, free -m, top or htop.

#### Users and permissions
Every file has an owner, a group and rwx bits. Learn chmod, chown and sudo. On EC2 you log in as ec2-user (Amazon Linux) or ubuntu (Ubuntu), not root, and use sudo for admin work.

#### Packages and services
- Package managers: dnf on Amazon Linux 2023, apt on Ubuntu.
- **systemd** runs services: systemctl status nginx, systemctl restart nginx, journalctl -u nginx.

#### Networking from the shell
- ss -tulpn shows which ports are listening.
- curl -v tests an HTTP endpoint and shows headers.
- dig or nslookup checks DNS.
- ping and traceroute check reachability (note that many cloud firewalls block ICMP).

#### Pitfalls
- Running everything as root.
- Editing config files without a backup copy.
- Using chmod 777 to "fix" a permission error.

You are ready to move on when you can install nginx on a fresh Linux VM, start it with systemd, confirm it listens on port 80 and read its logs.

Key concepts: Filesystem navigation, Pipes, grep and redirection, Users, groups and permissions, sudo and the root user, dnf and apt package managers, systemd and journalctl, Processes: ps, top, kill, Shell networking tools, Bash scripting basics.

Mini project: Install Ubuntu in WSL or a free VM (VirtualBox) on your laptop. Install nginx, serve a custom index.html, write a Bash script that checks whether nginx is running and restarts it if not, and run it from cron every minute. Everything runs locally, so there is no cloud cost.

Self-check: Your web app on a Linux server is not responding. Which three commands would you run first, and what would each tell you?

Resources:
- [Linux Journey](https://linuxjourney.com/) (linuxjourney.com)
- [Linux roadmap](https://roadmap.sh/linux) (roadmap.sh)
- [Linux man pages](https://man7.org/linux/man-pages/) (man7.org)

### Networking Fundamentals: IP, CIDR, TCP and Ports

core · beginner · about 8 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/networking-basics

Learn IP addressing, CIDR subnetting, TCP vs UDP, ports and routing well enough to design a VPC without guessing.

Cloud networking is ordinary networking with a console on top. If CIDR blocks and ports confuse you, VPC design will too. Spend real time here.

#### IP addresses and CIDR
- An IPv4 address has 32 bits, written as four numbers (10.0.1.25).
- **CIDR notation** (10.0.0.0/16) says how many leading bits are the network part. /16 gives 65,536 addresses, /24 gives 256, /28 gives 16.
- **Private ranges** (RFC 1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. VPCs use these.
- AWS reserves 5 addresses in every subnet, so a /24 gives 251 usable IPs.

#### The layers that matter
- **IP (Layer 3)** moves packets between networks using routes.
- **TCP** gives reliable, ordered connections (HTTP, SSH, databases). **UDP** is fast and connectionless (DNS, video, gaming).
- **Ports** identify the service: 22 SSH, 80 HTTP, 443 HTTPS, 3306 MySQL, 5432 PostgreSQL, 6379 Redis.

#### Routing and NAT
A **route table** says "for traffic to this range, send it here". A **default route** (0.0.0.0/0) catches everything else. **NAT** lets many private addresses share one public address for outbound traffic, which is exactly what your home Wi-Fi router does.

#### HTTP and TLS in one line each
HTTP is the request/response protocol of the web; HTTPS is HTTP inside TLS encryption, and the certificate proves the server's identity.

#### Pitfalls
- Choosing overlapping CIDR ranges for networks that may later need to connect.
- Making the first VPC a /24 and running out of addresses.

You are ready to move on when you can split 10.0.0.0/16 into four /18 or six /20 subnets on paper and say which port a given service uses.

Key concepts: IPv4 addresses and binary, CIDR and subnetting, Private vs public IP ranges, TCP vs UDP, Common ports, Routing and default routes, NAT, OSI and TCP/IP models, IPv6 basics.

Mini project: Plan, on paper or a spreadsheet, the address space for a company with three environments (dev, staging, prod), each needing public, private and database subnets in two AZs. Use non-overlapping /16 blocks and verify with an online CIDR calculator. No cloud resources needed.

Self-check: How many usable IPs does an AWS subnet of 10.0.1.0/26 have, and why is it not 64?

Resources:
- [Cloudflare Learning Center](https://www.cloudflare.com/learning/) (Cloudflare)
- [VPC CIDR blocks](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html) (AWS)
- [Computer Science roadmap: networking](https://roadmap.sh/computer-science) (roadmap.sh)

### DNS and How Domains Reach Your Servers

core · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/dns-basics

Understand how DNS resolution works, the record types you will configure, and how TTLs affect migrations and failovers.

Every time a user opens your app, DNS translates a name like app.example.in into an IP address. Misconfigured DNS is one of the most common causes of "the site is down".

#### How resolution works
1. The browser asks a **recursive resolver** (your ISP, 8.8.8.8 or 1.1.1.1).
2. The resolver asks a **root server**, then the **TLD server** (.com, .in), then the domain's **authoritative name server**.
3. The answer is cached for the record's **TTL** (time to live).

#### Record types you will use
- **A** (IPv4) and **AAAA** (IPv6): name to address.
- **CNAME**: name to another name. Cannot be used at the zone apex (example.com).
- **Alias** (Route 53 specific): like a CNAME but allowed at the apex and free for AWS targets such as an ALB or CloudFront.
- **MX**: mail servers. **TXT**: verification and email security (SPF, DKIM, DMARC). **NS** and **SOA**: who is authoritative.

#### DNS on AWS
Amazon Route 53 hosts public and private zones, supports routing policies (simple, weighted, latency, failover, geolocation) and health checks. Azure DNS and Google Cloud DNS provide the same features.

#### Pitfalls
- Changing a record with a 24 hour TTL right before a migration. Lower the TTL a day in advance.
- Pointing a CNAME at the apex, which DNS does not allow.
- Forgetting that registrar (where you bought the domain) and DNS host can be different.

You are ready to move on when you can use dig to trace a domain from the root down and explain every record you see.

Key concepts: Recursive vs authoritative resolvers, A, AAAA, CNAME, MX, TXT, NS records, TTL and caching, Route 53 alias records, Routing policies, dig and nslookup, Private hosted zones.

Mini project: Run dig +trace on three domains (an Indian bank, your college site and a startup) and write down the name servers, record types and TTLs you find. Note which ones use Route 53 or Cloudflare. Purely local, no cost.

Self-check: Why can you not create a CNAME for example.com itself, and what does Route 53 offer instead?

Resources:
- [What is DNS?](https://www.cloudflare.com/learning/dns/what-is-dns/) (Cloudflare)
- [Amazon Route 53 documentation](https://docs.aws.amazon.com/route53/) (AWS)
- [How DNS works (comic)](https://howdns.works/) (DNSimple)

### Git and GitHub for Infrastructure Work

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/git-basics

Use Git to version scripts, Terraform and pipeline files, collaborate through pull requests and keep secrets out of repositories.

Modern cloud teams treat infrastructure like software: everything lives in Git, changes go through pull requests and pipelines deploy from the main branch. You need Git before Infrastructure as Code or CI/CD make sense.

#### The essentials
- **init, clone, add, commit, push, pull**: the daily loop.
- **Branches**: work on a feature branch, merge through a pull request.
- **diff and log**: see exactly what changed and when.
- **.gitignore**: keep build output, .terraform folders and local state files out.

#### Collaboration on GitHub
- Pull requests with review before merge.
- Branch protection on main (require reviews and passing checks).
- Issues and READMEs to explain how to run your project, which recruiters read.

#### Secrets and Git
Never commit AWS access keys, .env files or Terraform state with passwords. Bots scan public GitHub for AWS keys within minutes and start crypto-mining on your account. If you leak a key, **deactivate it in IAM immediately**, then clean history. Deleting the file in a new commit is not enough.

#### Pitfalls
- Huge commits with messages like "changes".
- Force-pushing to a shared branch.
- Committing terraform.tfstate, which can contain secrets.

You are ready to move on when you can create a repo, work on a branch, open a pull request, merge it and explain why a leaked key in an old commit is still a risk.

Key concepts: Commit, branch, merge, Remotes, push and pull, Pull requests and code review, .gitignore, Keeping secrets out of Git, git-secrets / secret scanning, Rebase vs merge.

Mini project: Create a public GitHub repo called cloud-notes. Add your Linux script and CIDR plan from earlier topics, a .gitignore, and a README. Enable secret scanning and branch protection on main, then make one change through a pull request.

Self-check: You pushed an AWS access key to a public repo and then deleted it in the next commit. Are you safe? What should you do?

Resources:
- [Pro Git (free)](https://git-scm.com/book/en/v2) (git-scm.com)
- [GitHub Docs](https://docs.github.com/en) (GitHub)
- [Git and GitHub roadmap](https://roadmap.sh/git-github) (roadmap.sh)

## AWS Account Setup and Billing Safety

Open an AWS account the safe way: lock down the root user, set budgets and alerts before anything else, and learn the CLI.

### Creating and Securing Your AWS Account

core · beginner · about 2 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/account-setup

Sign up for AWS, protect the root user with MFA, create an admin identity for daily work and understand what the free tier really covers.

Your first hour in AWS decides whether you will get a surprise bill or a compromised account later. Do these steps before you launch a single resource.

#### Sign-up in India
You need an email, a phone number and a card that supports international transactions (many Indian debit cards need this switched on in the bank app). AWS may place a small temporary charge of about 2 rupees to verify the card. AWS India accounts are billed through Amazon Web Services India Private Limited, so GST appears on invoices.

#### Lock down the root user
- The **root user** (your sign-up email) can do anything, including closing the account. Use it only for a handful of account-level tasks.
- Turn on **MFA** for root immediately, preferably with an authenticator app or a hardware key.
- Never create access keys for root.

#### Create a daily identity
- Best practice: enable **IAM Identity Center** and create a user with the AdministratorAccess permission set, then sign in through the access portal.
- Simpler for a personal lab: an IAM user with MFA in an "admins" group. Either way, stop using root.

#### Understand the free tier
AWS changed its free tier in 2025. New accounts now get promotional credits and a time-limited free plan, while some services stay "always free" within monthly limits (for example a set number of Lambda requests). Rules change, so read the current terms on the free tier page and assume **anything not explicitly listed costs money**.

#### Pitfalls
- Using root for daily work "just for now".
- Leaving MFA for later.
- Assuming a free plan protects you from every charge. Some services, like NAT Gateways or public IPv4 addresses, start billing immediately.

You are ready to move on when your root user has MFA, you log in with a separate admin identity, and you can explain which free tier rules apply to your account.

Key concepts: Sign-up and card verification, Root user and its risks, MFA on root, IAM Identity Center admin user, IAM admin user (simple labs), Free tier, credits and always-free, Account alternate contacts.

Mini project: Create your AWS account, enable MFA on root, set up IAM Identity Center with one admin user and sign in through the access portal. Write a short checklist in your cloud-notes repo. Create no paid resources in this step.

Self-check: Name three tasks that genuinely require the root user and explain why you should never create root access keys.

Resources:
- [AWS Free Tier](https://aws.amazon.com/free/) (AWS)
- [Root user best practices](https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html) (AWS)
- [IAM Identity Center documentation](https://docs.aws.amazon.com/singlesignon/) (AWS)

### Billing Safety: Budgets, Alerts and Cost Traps

core · beginner · about 2 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/billing-safety

Set budgets, alerts and anomaly detection on day one, and learn the classic services that quietly drain student accounts.

Every year students post screenshots of surprise AWS bills of thousands or lakhs of rupees. Almost all of them were avoidable with ten minutes of setup.

#### Set these up now
- **AWS Budgets**: create a monthly cost budget (for example 5 USD) with email alerts at 50, 80 and 100 percent of actual and forecasted spend. The zero-spend budget template alerts you on the first cent.
- **Cost Anomaly Detection**: free, emails you when spend suddenly jumps.
- **Billing preferences**: enable free tier usage alerts and receive invoices by email.
- **IAM access to billing**: allow your admin identity to see the Billing console.

#### Classic cost traps
- **NAT Gateway**: hourly charge plus per-GB processing, even when idle.
- **Public IPv4 addresses**: AWS charges per hour for every public IPv4, including idle Elastic IPs.
- **Load balancers, RDS, EKS control planes and OpenSearch domains** bill hourly while they exist, used or not.
- **Data transfer out** to the internet and between AZs.
- **Forgotten regions**: resources left in us-east-1 from a tutorial.
- **Leaked access keys** used to launch crypto-mining instances.

#### Habits that keep you safe
- Tag everything with project and owner.
- Tear down labs the same day; prefer Infrastructure as Code so destroy is one command.
- Check **Cost Explorer** and the Bills page weekly.

#### Pitfalls
- Budgets only alert; they do not stop spending unless you configure budget actions.
- Billing data lags by several hours, so an alert can arrive after the damage.

You are ready to move on when you have a working budget with email alerts and can name five services that bill even when idle.

Key concepts: AWS Budgets and alerts, Zero-spend budget, Cost Anomaly Detection, Cost Explorer, Idle resources that still bill, Data transfer charges, Budget actions.

Mini project: Create a zero-spend budget and a 5 USD monthly budget with alerts at 80 and 100 percent, enable Cost Anomaly Detection, and turn on free tier usage alerts. Screenshot the setup for your notes. This costs nothing; make sure you launch no resources.

Self-check: You finished a VPC tutorial and terminated the EC2 instance, but the bill keeps growing. What two resources would you check first?

Resources:
- [AWS Budgets](https://aws.amazon.com/aws-cost-management/aws-budgets/) (AWS)
- [AWS Cost Management documentation](https://docs.aws.amazon.com/cost-management/latest/userguide/what-is-costmanagement.html) (AWS)
- [AWS Free Tier](https://aws.amazon.com/free/) (AWS)
- [The Open Guide to AWS: Billing](https://github.com/open-guides/og-aws) (open-guides)

### AWS CLI, CloudShell and SDKs

core · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/aws-cli

Drive AWS from the command line and from code, configure profiles and SSO login, and stop clicking through the console for repeatable work.

The console is fine for exploring, but real cloud work is scripted. The AWS CLI and SDKs call the same APIs the console uses.

#### Installing and configuring
- Install **AWS CLI v2** on your laptop, or use **CloudShell** in the console, which comes pre-authenticated and is free.
- With IAM Identity Center, run aws configure sso, then aws sso login --profile dev. Credentials are short-lived, which is much safer than long-term access keys.
- Use **named profiles** (--profile or the AWS_PROFILE variable) to switch between accounts.
- Always check who you are with aws sts get-caller-identity.

#### Useful patterns
- --region to target Mumbai (ap-south-1) explicitly.
- --query (JMESPath) and --output table or json to shape results.
- Pagination is automatic; use --max-items to limit large lists.
- --dry-run on EC2 commands to test permissions without creating anything.

#### SDKs
Every language has an SDK: **boto3** for Python, AWS SDK for JavaScript v3, Java, Go and more. They read credentials from the same default chain: environment variables, shared config files, SSO, then instance or task roles.

#### Pitfalls
- Storing long-term access keys in ~/.aws/credentials on a shared machine.
- Running a destructive command against the wrong profile or region.
- Hardcoding keys in code instead of relying on the credential chain.

You are ready to move on when you can log in through SSO from the CLI, list your S3 buckets and EC2 instances in Mumbai, and write a ten-line boto3 script that does the same.

Key concepts: AWS CLI v2 install, aws configure sso and profiles, sts get-caller-identity, CloudShell, --query and output formats, boto3 (Python SDK), AWS SDK for JavaScript v3, Credential provider chain.

Mini project: Configure an SSO profile, then write a Python boto3 script that lists every region's running EC2 instances and unattached Elastic IPs, as a personal cost-leak checker. It only reads data, so it is free; run it after every lab.

Self-check: Your script works on your laptop but fails on an EC2 instance with 'Unable to locate credentials'. What is the right fix?

Resources:
- [AWS CLI documentation](https://docs.aws.amazon.com/cli/) (AWS)
- [Boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) (AWS)
- [AWS CloudShell](https://docs.aws.amazon.com/cloudshell/) (AWS)

## Identity and Access Management in Depth

IAM is the most important AWS service to get right: users, roles, policies, temporary credentials and multi-account guardrails.

### IAM Users, Groups, Roles and Policies

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/iam-fundamentals

Learn the building blocks of AWS identity and why roles with temporary credentials beat users with long-term keys.

Every AWS API call is checked by IAM: who is calling (the **principal**), what are they trying to do (the **action**), on what (the **resource**), and is it allowed (the **policy**). The Azure equivalent is Entra ID plus Azure RBAC; in GCP it is Cloud IAM.

#### Identities
- **IAM users**: long-term identities with passwords and optional access keys. Use sparingly; prefer Identity Center for humans.
- **Groups**: collections of users to attach policies to. You cannot log in as a group.
- **Roles**: identities with no long-term credentials. Something **assumes** the role and receives temporary credentials from STS. EC2 instances, Lambda functions, ECS tasks, CI pipelines and other accounts all use roles.

#### Policies
- A policy is a JSON document with **Effect** (Allow or Deny), **Action** (s3:GetObject), **Resource** (an ARN) and optional **Condition**.
- **AWS managed policies** are convenient but often too broad. **Customer managed policies** let you scope exactly.
- **Inline policies** are attached to one identity; use them only for strict one-to-one cases.

#### Least privilege
Start with nothing and add what is needed. **IAM Access Analyzer** can generate policies from real CloudTrail activity and flag resources shared outside your account.

#### Pitfalls
- Giving every developer AdministratorAccess.
- Creating access keys for humans when SSO would work.
- Using "Resource": "*" when you know the exact bucket or table.

You are ready to move on when you can explain user vs role, read a policy and say what it allows, and describe why an EC2 instance should use a role instead of stored keys.

Key concepts: Principals, actions, resources, Users and groups, Roles and temporary credentials, Policy JSON structure, ARNs, AWS managed vs customer managed policies, Least privilege, IAM Access Analyzer.

Mini project: Create a group 'readonly-students' with a customer managed policy that only allows listing and reading one specific S3 bucket. Add a test user, sign in as them and confirm they cannot read any other bucket or launch EC2. IAM itself is free; delete the test user afterwards.

Self-check: What is the difference between an IAM user with access keys and an IAM role, and which would you give a Lambda function?

Resources:
- [IAM User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html) (AWS)
- [Security best practices in IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) (AWS)
- [AWS Skill Builder](https://skillbuilder.aws/) (AWS)

### Policy Evaluation, Conditions and Resource Policies

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/iam-policy-evaluation

Understand how AWS decides allow or deny across identity policies, resource policies, permission boundaries and SCPs, and write precise conditions.

Debugging "Access Denied" is a core cloud engineer skill. To do it, you need to know how AWS combines every policy that applies to a request.

#### The evaluation logic
1. By default everything is **implicitly denied**.
2. An **explicit Deny** anywhere always wins.
3. Otherwise, the request needs an **Allow** from an applicable policy, and must not be blocked by a limiting layer (SCP, permission boundary, session policy).

#### Policy types
- **Identity-based policies**: attached to users, groups and roles.
- **Resource-based policies**: attached to the resource itself (S3 bucket policies, SQS queue policies, KMS key policies, Lambda resource policies). They name a Principal and enable cross-account access.
- **Permission boundaries**: a ceiling on what an identity's own policies can grant. Useful when you let developers create roles.
- **Service control policies (SCPs)**: a ceiling for whole accounts in AWS Organizations.
- **Session policies**: further limit a single assumed-role session.

#### Conditions
Conditions make policies precise:
- aws:SourceIp, aws:SourceVpce to restrict network origin.
- aws:MultiFactorAuthPresent to require MFA.
- aws:RequestedRegion to block regions you do not use.
- aws:PrincipalTag and aws:ResourceTag for attribute-based access control (ABAC).

#### Pitfalls
- Forgetting that S3 needs both bucket-level (arn:aws:s3:::bucket) and object-level (arn:aws:s3:::bucket/*) resources.
- Debugging only the identity policy while a bucket policy or SCP denies the call.

You are ready to move on when you can take an "Access Denied" error, use the IAM policy simulator and CloudTrail to find the denying policy, and fix it with the narrowest change.

Key concepts: Implicit deny, explicit deny, allow, Resource-based policies, Permission boundaries, Session policies, Condition keys, ABAC with tags, IAM policy simulator.

Mini project: Write a bucket policy that allows reads only from your home IP and only over HTTPS, plus an identity policy that denies all actions outside ap-south-1. Test both with the policy simulator and the CLI. Use an empty or tiny bucket within free tier and delete it when done.

Self-check: A role's identity policy allows s3:GetObject on a bucket, but the request is denied. Name three other places the deny could come from.

Resources:
- [Policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html) (AWS)
- [IAM JSON policy reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) (AWS)
- [IAM policy simulator](https://policysim.aws.amazon.com/) (AWS)

### STS, Assume Role and Federation

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/iam-roles-federation

Use temporary credentials everywhere: instance profiles, cross-account roles, and OIDC federation so GitHub Actions can deploy without stored keys.

Long-term access keys are the number one way AWS accounts get compromised. The fix is temporary credentials from the **Security Token Service (STS)**.

#### How assuming a role works
- A role has a **trust policy** (who may assume it) and **permission policies** (what it can do).
- A caller runs sts:AssumeRole and gets an access key, secret and session token that expire (15 minutes to 12 hours).
- Services like EC2 use an **instance profile**; ECS uses a **task role**; Lambda uses an **execution role**. The SDK picks these up automatically.

#### Cross-account access
A role in a production account can trust a role in a tooling account. This is how companies separate dev, staging and prod into different accounts while letting a central pipeline deploy everywhere.

#### Federation
- **IAM Identity Center** federates humans from a directory (Entra ID, Okta, Google Workspace) into AWS accounts with permission sets.
- **OIDC federation** lets external workloads assume roles without secrets. The most common example: a GitHub Actions workflow presents a signed token and AWS trusts it based on the repo and branch.
- **IAM Roles Anywhere** issues credentials to on-premises servers using X.509 certificates.

#### Pitfalls
- A trust policy that allows any GitHub repository (missing the sub condition on repo and branch).
- Instance metadata exposed through SSRF bugs. Require **IMDSv2** on every EC2 instance.

You are ready to move on when you can configure a GitHub Actions workflow to assume an AWS role through OIDC and explain every line of its trust policy.

Key concepts: STS and temporary credentials, Trust policies, Instance profiles, task roles, execution roles, Cross-account roles, GitHub Actions OIDC, IAM Identity Center permission sets, IMDSv2, IAM Roles Anywhere.

Mini project: Create an OIDC identity provider for GitHub and a role that only your cloud-notes repo's main branch can assume, with read-only S3 access. Add a workflow that runs aws sts get-caller-identity and aws s3 ls. This uses no billable resources; delete the role when finished.

Self-check: Why is GitHub OIDC federation safer than storing an access key as a GitHub secret, and what condition must the trust policy include?

Resources:
- [IAM roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) (AWS)
- [Configuring OpenID Connect in AWS (GitHub)](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services) (GitHub)
- [configure-aws-credentials action](https://github.com/aws-actions/configure-aws-credentials) (AWS)

### Multi-Account Strategy with AWS Organizations

recommended · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/organizations-scps

Structure workloads across many accounts with AWS Organizations, OUs, SCP guardrails and Control Tower, the way real companies do.

Real companies do not run everything in one AWS account. Accounts are the strongest isolation boundary AWS offers, so teams split by environment and workload.

#### AWS Organizations
- A **management account** owns the organization and consolidated billing.
- **Member accounts** are grouped into **organizational units (OUs)** such as Security, Infrastructure, Workloads/Prod and Workloads/Dev.
- **Consolidated billing** combines usage so volume discounts and Savings Plans are shared.

#### Service control policies
SCPs set the maximum permissions for every identity in an account, even its root user. Common guardrails:
- Deny leaving the organization.
- Deny disabling CloudTrail or GuardDuty.
- Deny all regions except ap-south-1 and ap-south-2 (with exceptions for global services).
SCPs never grant access; they only limit it.

#### Control Tower and landing zones
**AWS Control Tower** sets up a best-practice multi-account landing zone: a log archive account, an audit account, preventive and detective guardrails, and account vending. Azure's equivalent is management groups with Azure Policy; GCP uses folders with organization policies.

#### Pitfalls
- Running workloads in the management account. Keep it for billing and governance only.
- Writing an SCP that blocks global services like IAM or CloudFront because they appear as us-east-1.

You are ready to move on when you can sketch an OU structure for a 50-person startup and write an SCP that blocks unused regions.

Key concepts: Management and member accounts, Organizational units, Service control policies, Consolidated billing, Control Tower landing zone, Delegated administrator.

Mini project: Create an organization from your account, add one new member account for 'dev', and attach an SCP that denies all regions except Mumbai and Hyderabad. Verify that launching anything in us-east-1 fails. Organizations and SCPs are free; close the extra account when done if you do not need it.

Self-check: Can an SCP grant an IAM user permissions they do not have in their identity policy? Explain.

Resources:
- [AWS Organizations documentation](https://docs.aws.amazon.com/organizations/) (AWS)
- [AWS Control Tower documentation](https://docs.aws.amazon.com/controltower/) (AWS)
- [Organizing your AWS environment using multiple accounts](https://docs.aws.amazon.com/whitepapers/latest/organizing-your-aws-environment/organizing-your-aws-environment.html) (AWS)

## VPC Networking

Design private networks on AWS: subnets, route tables, NAT, firewalls, connectivity between VPCs and private access to AWS services.

### VPC, Subnets, Route Tables and Internet Gateways

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/vpc-basics

Build a VPC from scratch with public and private subnets across two AZs and understand exactly what makes a subnet public.

A **Virtual Private Cloud (VPC)** is your own isolated network inside an AWS region. Azure calls it a Virtual Network (VNet); Google Cloud calls it a VPC but makes it global.

#### The building blocks
- **CIDR block**: the address range of the VPC, for example 10.0.0.0/16.
- **Subnets**: slices of that range, each living in exactly **one AZ**. A typical layout has public, private (app) and database subnets in two or three AZs.
- **Route tables**: rules attached to subnets that decide where traffic goes. Every route table has a local route for the VPC CIDR.
- **Internet Gateway (IGW)**: attached to the VPC, it lets resources with public IPs reach the internet and be reached from it.

#### What makes a subnet public
A subnet is public only because its route table has a route **0.0.0.0/0 to the Internet Gateway**. There is no "public" checkbox. Instances also need a public IPv4 or Elastic IP to be reachable.

#### The default VPC
Every region comes with a default VPC where all subnets are public. It is handy for quick tests but not how production is built. Learn to create your own.

#### Design tips
- Pick a /16 that does not overlap with other VPCs, offices or partner networks.
- Leave spare address space for future subnets.
- Put only load balancers and bastion-type resources in public subnets; keep app servers and databases private.

#### Pitfalls
- Placing databases in public subnets "to make connecting easier".
- Creating subnets in only one AZ, which defeats high availability.

You are ready to move on when you can build a two-AZ VPC with public and private subnets by hand in the console, then explain each route table entry.

Key concepts: VPC CIDR planning, Subnets and AZs, Route tables, Internet Gateway, Public vs private subnets, Default VPC, Elastic IPs, IPv6 in VPCs.

Mini project: Create a VPC in ap-south-1 with two public and two private subnets across two AZs, an Internet Gateway and correct route tables. Draw the diagram in draw.io and commit it to your repo. VPCs, subnets and route tables are free; do not add a NAT Gateway yet, and delete the VPC when done.

Self-check: Two subnets in the same VPC have identical NACLs and security groups. One is public, one is private. What is the only difference?

Resources:
- [Amazon VPC User Guide](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html) (AWS)
- [Amazon VPC documentation](https://docs.aws.amazon.com/vpc/) (AWS)
- [The Open Guide to AWS: VPCs](https://github.com/open-guides/og-aws) (open-guides)

### NAT Gateways, Security Groups and NACLs

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/nat-security-groups

Give private subnets outbound internet safely and control traffic with stateful security groups and stateless network ACLs.

Private instances still need to download updates and call external APIs. And every resource needs a firewall. This topic covers both.

#### NAT for outbound traffic
- A **NAT Gateway** sits in a public subnet. Private subnets route 0.0.0.0/0 to it, so instances can reach out but nothing can connect in.
- Deploy one NAT Gateway per AZ for high availability, or one shared gateway for cheap dev environments.
- NAT Gateways cost money per hour and per GB processed. For labs, consider VPC endpoints (next topics) or a small NAT instance instead.

#### Security groups
- Virtual firewalls attached to **network interfaces** (instances, load balancers, RDS, Lambda in a VPC).
- **Stateful**: if inbound traffic is allowed, the reply is automatically allowed.
- **Allow rules only**; anything not allowed is denied.
- Rules can reference **other security groups**, for example "the database SG allows port 5432 only from the app SG". This is the pattern to use instead of IP ranges.

#### Network ACLs
- Attached to **subnets**, evaluated in rule-number order.
- **Stateless**: you must allow return traffic on ephemeral ports (1024-65535) explicitly.
- Support **deny** rules, useful to block a known bad IP range.
- Most teams leave NACLs permissive and do fine-grained control with security groups.

#### Pitfalls
- Opening SSH (22) or RDP (3389) to 0.0.0.0/0. Use Systems Manager Session Manager instead.
- Adding a deny NACL and forgetting the ephemeral port range, then wondering why responses never arrive.
- Leaving a NAT Gateway running after a tutorial.

You are ready to move on when you can explain stateful vs stateless filtering and design a three-tier security group chain (ALB, app, database).

Key concepts: NAT Gateway, NAT per AZ vs shared, Security groups (stateful), Security group referencing, Network ACLs (stateless), Ephemeral ports, VPC Flow Logs.

Mini project: In your lab VPC, create three security groups (alb-sg, app-sg, db-sg) where each only allows traffic from the previous tier. Add a NAT Gateway, confirm a private instance can run dnf update, then delete the NAT Gateway and release its Elastic IP within the hour to keep cost to a few rupees. Stay within free tier for the instance and terminate it afterwards.

Self-check: Why must a NACL allow outbound ephemeral ports for a web server, while a security group does not need that rule?

Resources:
- [NAT gateways](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) (AWS)
- [Security groups](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html) (AWS)
- [Network ACLs](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html) (AWS)

### VPC Peering, Transit Gateway and Hybrid Connectivity

core · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/vpc-connectivity

Connect VPCs to each other and to on-premises networks using peering, Transit Gateway, Site-to-Site VPN and Direct Connect.

As soon as a company has more than one VPC or an office network, you need to connect them. Each option trades simplicity, scale and cost.

#### VPC peering
- A private, one-to-one connection between two VPCs (same or different accounts and regions).
- **Not transitive**: if A peers with B and B with C, A cannot reach C through B.
- No overlapping CIDRs allowed. Cheap and simple for a handful of VPCs.

#### Transit Gateway
- A regional **hub** that many VPCs and VPNs attach to, like a cloud router.
- Supports route tables for segmentation (prod cannot talk to dev).
- Scales to thousands of attachments, but charges per attachment hour and per GB.
- Azure's equivalent is a hub VNet or Virtual WAN; GCP uses Network Connectivity Center.

#### Hybrid connectivity
- **Site-to-Site VPN**: encrypted IPsec tunnels over the internet to an office or data centre. Quick to set up.
- **Direct Connect**: a dedicated private link from a data centre or partner location (there are locations in Mumbai, Chennai, Delhi and other cities). Predictable latency, higher cost and lead time.
- **Client VPN** for individual users.

#### Choosing
- Two or three VPCs: peering.
- Many VPCs or accounts, plus on-premises: Transit Gateway.
- Exposing one service to many consumers without full network access: PrivateLink (next topic).

#### Pitfalls
- Overlapping CIDRs that make peering impossible later.
- Building a mesh of dozens of peering connections instead of a hub.

You are ready to move on when you can choose between peering, Transit Gateway and PrivateLink for a given scenario and explain why.

Key concepts: VPC peering, Non-transitive routing, Transit Gateway, Transit Gateway route tables, Site-to-Site VPN, Direct Connect, Client VPN.

Mini project: Create two small VPCs with non-overlapping CIDRs, peer them, update route tables and security groups, and ping between two free-tier instances. Write how the design would change with ten VPCs. Skip Transit Gateway in the lab because it bills hourly; terminate instances and delete the peering when done.

Self-check: VPC A peers with B, and B peers with C. Can an instance in A reach C? What would you use instead?

Resources:
- [VPC peering](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) (AWS)
- [AWS Transit Gateway](https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html) (AWS)
- [AWS Direct Connect](https://docs.aws.amazon.com/directconnect/) (AWS)

### VPC Endpoints and PrivateLink

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/vpc-endpoints

Reach S3, DynamoDB and other AWS services privately from your VPC without a NAT Gateway, and expose your own services through PrivateLink.

By default, a private instance calling S3 goes out through a NAT Gateway to the public S3 endpoint. That costs NAT processing fees and sends traffic over a public path. **VPC endpoints** fix both.

#### Gateway endpoints
- Available for **S3 and DynamoDB** only.
- Added as a route in your route tables.
- **Free**. Every VPC that uses S3 heavily should have one.

#### Interface endpoints (PrivateLink)
- Create an elastic network interface with a private IP in your subnets for services like Secrets Manager, ECR, CloudWatch Logs, SSM and STS.
- Private DNS makes the normal service hostname resolve to the private IP, so code does not change.
- Charged per hour per AZ plus per GB, so add them deliberately.

#### Endpoint policies
Attach a policy to the endpoint to restrict which buckets or actions are reachable through it, and use aws:SourceVpce in bucket policies to accept traffic only from your endpoint. This is a strong data-exfiltration control.

#### Exposing your own services
With **PrivateLink** you can publish a service behind a Network Load Balancer and let other VPCs or customers consume it through an interface endpoint, without peering or overlapping-CIDR worries. Azure Private Link and GCP Private Service Connect are the equivalents.

#### Pitfalls
- Fully private subnets (no NAT) where ECS cannot pull images because ECR, S3 and logs endpoints are missing.
- Forgetting to enable private DNS on interface endpoints.

You are ready to move on when you can run an instance in a subnet with no internet route that still reads from S3 and fetches a secret.

Key concepts: Gateway endpoints (S3, DynamoDB), Interface endpoints, Private DNS for endpoints, Endpoint policies, aws:SourceVpce in bucket policies, Publishing services with PrivateLink.

Mini project: Add a free S3 gateway endpoint to a private subnet with no NAT, attach an instance role, and prove that aws s3 ls works while curl to a public website fails. Use a free-tier instance and Session Manager; terminate it and delete the VPC afterwards.

Self-check: Which two AWS services support free gateway endpoints, and why do they save money compared with a NAT Gateway?

Resources:
- [AWS PrivateLink and VPC endpoints](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html) (AWS)
- [Gateway endpoints](https://docs.aws.amazon.com/vpc/latest/privatelink/gateway-endpoints.html) (AWS)

### Route 53 and CloudFront at the Edge

recommended · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/route53-cloudfront

Serve your apps on custom domains with Route 53, put a CloudFront CDN in front for speed and HTTPS, and use ACM certificates.

The edge is where users first touch your system. Route 53 answers the DNS query, and CloudFront serves content from a location near the user.

#### Route 53
- **Hosted zones** hold your records. Public zones answer the internet; private zones answer inside your VPCs.
- **Alias records** point at AWS resources (ALB, CloudFront, S3 website) and work at the apex.
- **Routing policies**: weighted for gradual rollouts, latency-based for multi-region, failover with health checks for disaster recovery.

#### CloudFront
- A CDN with edge locations in many Indian cities, caching static files and even API responses close to users.
- **Origins** can be S3 buckets, ALBs or any HTTP server.
- **Origin Access Control (OAC)** lets CloudFront read a private S3 bucket so the bucket never needs to be public.
- **Cache behaviours** and cache policies control what is cached and for how long. Invalidations clear the cache after a deploy.

#### Certificates with ACM
**AWS Certificate Manager** issues free public TLS certificates that renew automatically. For CloudFront the certificate must be created in **us-east-1**; for an ALB it must be in the ALB's region.

Azure Front Door and Google Cloud CDN with Cloud Load Balancing are the equivalents.

#### Pitfalls
- Making the S3 bucket public instead of using OAC.
- Forgetting to invalidate or version file names, so users see old JavaScript after a release.

You are ready to move on when you can host a static site on a private S3 bucket behind CloudFront with HTTPS on your own domain.

Key concepts: Hosted zones, Alias records, Routing policies and health checks, CloudFront distributions and origins, Origin Access Control, Cache policies and invalidation, ACM certificates, Lambda@Edge and CloudFront Functions.

Mini project: Host your portfolio on a private S3 bucket behind CloudFront with OAC and an ACM certificate. A Route 53 hosted zone costs a small monthly fee, so you can use a free subdomain or the CloudFront domain instead. Stay within free tier and delete the distribution if you are not keeping it.

Self-check: Why must an ACM certificate for CloudFront live in us-east-1 even if your bucket is in Mumbai?

Resources:
- [Amazon CloudFront documentation](https://docs.aws.amazon.com/cloudfront/) (AWS)
- [Amazon Route 53 documentation](https://docs.aws.amazon.com/route53/) (AWS)
- [AWS Certificate Manager documentation](https://docs.aws.amazon.com/acm/) (AWS)

## Compute: EC2, Auto Scaling and Load Balancing

Run virtual machines well, operate them without SSH keys, scale them automatically and spread traffic with load balancers.

### EC2 Instances, AMIs and Pricing Options

core · beginner · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/ec2-fundamentals

Launch and size EC2 instances, choose AMIs and instance families, bootstrap with user data and understand On-Demand, Spot and Savings Plans pricing.

**Amazon EC2** gives you virtual machines. It is the most basic AWS compute service and still runs a huge share of real workloads. Azure Virtual Machines and Google Compute Engine are the equivalents.

#### Instance types
Names like **t3.micro** or **m7g.large** encode family, generation, options and size:
- **t** burstable general purpose (good for small, spiky apps; watch CPU credits).
- **m** balanced, **c** compute optimized, **r** memory optimized, **g/p** GPU.
- A **g** after the generation number (m7g) means **Graviton** (ARM), usually cheaper for the same performance.

#### AMIs and bootstrapping
- An **AMI** is the disk image the instance boots from (Amazon Linux 2023, Ubuntu, Windows, or your own).
- **User data** runs a script on first boot to install packages and start your app.
- **Golden AMIs** (built with EC2 Image Builder or Packer) make launches faster and repeatable.

#### Pricing options
- **On-Demand**: pay per second, no commitment.
- **Savings Plans / Reserved Instances**: commit for 1 or 3 years for large discounts.
- **Spot**: spare capacity at up to 90 percent off, but AWS can reclaim it with a two-minute warning. Great for batch jobs and CI runners.
- **Dedicated Hosts**: for licensing or compliance needs.

#### Pitfalls
- Picking a large instance "to be safe" and paying for idle CPU.
- Running production on a t-family instance that runs out of CPU credits under steady load.
- Losing data on **instance store** volumes, which are wiped when the instance stops.

You are ready to move on when you can launch an instance with a user data script that installs a web server, and explain which pricing model fits a web app, a nightly batch job and a database.

Key concepts: Instance families and sizes, Graviton (ARM) instances, AMIs, User data bootstrapping, Key pairs, On-Demand, Spot, Savings Plans, Instance store vs EBS, Golden AMIs with Image Builder or Packer.

Mini project: Launch a free-tier eligible instance in Mumbai with a user data script that installs nginx and writes the instance ID into the page. Access it in a browser, then create an AMI from it and launch a second copy. Terminate both instances and deregister the AMI and its snapshot afterwards to stay within free tier.

Self-check: You have a nightly video-encoding job that can be retried if interrupted. Which EC2 pricing option would you pick and why?

Resources:
- [Amazon EC2 documentation](https://docs.aws.amazon.com/ec2/) (AWS)
- [Amazon EC2 instance types](https://aws.amazon.com/ec2/instance-types/) (AWS)
- [Amazon EC2 Spot Instances](https://aws.amazon.com/ec2/spot/) (AWS)

### Operating EC2 with Systems Manager

recommended · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/ec2-operations

Access, patch and configure fleets of instances without SSH keys or open ports using AWS Systems Manager.

Opening port 22 to the world and sharing .pem files on WhatsApp is how many first projects start. Production teams use **AWS Systems Manager (SSM)** instead.

#### Session Manager
- Shell access from the console or CLI with **no inbound ports**, no bastion host and no SSH keys.
- Access is controlled by IAM and every session can be logged to S3 or CloudWatch.
- Requirements: the SSM Agent (pre-installed on Amazon Linux and Ubuntu AMIs), an instance role with the AmazonSSMManagedInstanceCore policy, and outbound access to SSM (NAT or interface endpoints).

#### Other SSM capabilities
- **Run Command**: run a script across many instances at once.
- **Patch Manager**: schedule OS patching with maintenance windows.
- **Parameter Store**: store configuration and secure strings (covered again in the security section).
- **Inventory** and **State Manager** to track and enforce configuration.

#### Instance metadata
Instances can query http://169.254.169.254 for their ID, region and role credentials. Require **IMDSv2** (session tokens) to block SSRF-based credential theft.

Azure Bastion with Azure Arc and GCP OS Login with IAP tunnelling solve the same problem on other clouds.

#### Pitfalls
- Instance role missing, so the instance never appears in Fleet Manager.
- Private subnets with no NAT and no SSM endpoints, so the agent cannot connect.

You are ready to move on when you can connect to a private instance with Session Manager, with no SSH key and no open inbound ports.

Key concepts: Session Manager, SSM Agent and instance role, Run Command, Patch Manager, IMDSv2, EC2 Instance Connect.

Mini project: Launch a free-tier instance with no key pair and a security group with zero inbound rules. Attach an SSM role, connect with Session Manager, and use Run Command to install htop. Log sessions to a CloudWatch log group. Terminate the instance and delete the log group afterwards.

Self-check: List the three things an EC2 instance needs before it shows up as a managed node in Systems Manager.

Resources:
- [AWS Systems Manager documentation](https://docs.aws.amazon.com/systems-manager/) (AWS)
- [Use IMDSv2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html) (AWS)

### Elastic Load Balancing: ALB and NLB

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/load-balancers

Distribute traffic across healthy targets with Application and Network Load Balancers, target groups, health checks and HTTPS listeners.

A load balancer gives users one stable address, spreads requests across many servers, and stops sending traffic to unhealthy ones.

#### Types of Elastic Load Balancer
- **Application Load Balancer (ALB)**: Layer 7 (HTTP/HTTPS). Routes by path (/api), host (api.example.in), headers or query strings. Supports WebSockets, gRPC and authentication with Cognito or OIDC. The default choice for web apps.
- **Network Load Balancer (NLB)**: Layer 4 (TCP/UDP/TLS). Very high throughput, static IPs per AZ, preserves client IP. Use for non-HTTP protocols or when you need fixed IPs.
- **Gateway Load Balancer**: for inserting third-party firewalls and appliances.

#### Core concepts
- **Listeners** (port and protocol) have **rules** that forward to **target groups**.
- Targets can be instances, IPs, Lambda functions or ECS tasks.
- **Health checks** decide which targets get traffic. Point them at a lightweight /health endpoint.
- Terminate **HTTPS** at the ALB with a free ACM certificate and redirect HTTP to HTTPS.
- Place load balancers in public subnets across at least two AZs; targets stay private.

Azure Application Gateway and Load Balancer, and Google Cloud Load Balancing are the equivalents.

#### Pitfalls
- Health checks that hit a heavy page or require login, so every target is marked unhealthy.
- Target security groups that do not allow traffic from the ALB's security group.
- Leaving an ALB running after a lab: it bills every hour.

You are ready to move on when you can put two instances in private subnets behind an HTTPS ALB and watch traffic shift when you stop one.

Key concepts: ALB vs NLB vs GWLB, Listeners and rules, Target groups, Health checks, HTTPS with ACM, Path and host based routing, Sticky sessions, Connection draining.

Mini project: Put two free-tier instances in private subnets behind an ALB with path-based rules (/ to one, /api to another). Stop one instance and watch the health check fail over. ALBs are billed hourly beyond free tier limits, so finish within a couple of hours and delete the ALB, target groups and instances.

Self-check: Your ALB returns 502 errors for every request. Name three likely causes.

Resources:
- [Elastic Load Balancing documentation](https://docs.aws.amazon.com/elasticloadbalancing/) (AWS)
- [What is an Application Load Balancer?](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html) (AWS)

### Auto Scaling Groups and Launch Templates

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/auto-scaling

Keep the right number of healthy instances running automatically with launch templates, scaling policies and instance refresh.

An **Auto Scaling group (ASG)** keeps a fleet of identical instances at the size you want, replaces unhealthy ones and grows or shrinks with demand. Azure uses Virtual Machine Scale Sets; GCP uses Managed Instance Groups.

#### Building blocks
- A **launch template** defines AMI, instance type, security groups, instance role and user data.
- The ASG sets **minimum, desired and maximum** capacity and the subnets (AZs) to spread across.
- Attach the ASG to an ALB target group and enable **ELB health checks** so instances failing the app check are replaced.

#### Scaling policies
- **Target tracking**: "keep average CPU at 50 percent" or "1000 requests per target". The simplest and usually best.
- **Step scaling**: add capacity in steps based on alarm thresholds.
- **Scheduled scaling**: scale up before the 9 am exam result rush, down at night.
- **Predictive scaling**: uses history to scale ahead of daily patterns.

#### Operating ASGs
- **Instance refresh** rolls out a new launch template version gradually.
- **Mixed instances policy** combines On-Demand and Spot across several instance types.
- **Lifecycle hooks** pause launches or terminations to run setup or drain work.
- Treat instances as **cattle, not pets**: no manual changes, because any instance can be replaced at any time.

#### Pitfalls
- Storing user uploads or sessions on the instance disk, which vanish on scale-in.
- Scaling on CPU when the real bottleneck is the database.
- Cooldowns too short, causing the group to flap up and down.

You are ready to move on when your ASG replaces a terminated instance on its own and scales out under a load test.

Key concepts: Launch templates, Min, desired, max capacity, Target tracking scaling, Scheduled and predictive scaling, ELB health checks in ASGs, Instance refresh, Mixed instances and Spot, Lifecycle hooks.

Mini project: Create an ASG of free-tier instances (min 1, max 3) behind an ALB with a target tracking policy at 40 percent CPU. Run a stress tool on one instance and watch it scale out, then terminate an instance manually and watch it get replaced. Set the ASG to zero and delete it, the ALB and the launch template within the same session.

Self-check: Your app stores uploaded profile photos on the local disk. Why does this break once you add an Auto Scaling group, and where should the photos go?

Resources:
- [Amazon EC2 Auto Scaling documentation](https://docs.aws.amazon.com/autoscaling/) (AWS)
- [Launch templates](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html) (AWS)

## Storage: S3, EBS and EFS

Object, block and file storage on AWS: when to use each, how to secure them and how to keep storage costs under control.

### Amazon S3 Fundamentals

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/s3-fundamentals

Store and serve objects with S3: buckets, keys, storage classes, versioning, presigned URLs and event notifications.

**Amazon S3** is object storage with effectively unlimited capacity and very high durability. It stores everything from website assets and user uploads to backups and data lakes. Azure Blob Storage and Google Cloud Storage are the equivalents.

#### Core concepts
- **Buckets** have globally unique names and live in one region.
- **Objects** are files identified by a **key** (uploads/2026/photo.jpg). Folders are just key prefixes.
- Objects can be up to 5 TB; use **multipart upload** for anything large.
- S3 is strongly consistent for reads after writes.

#### Storage classes
- **Standard**: frequent access.
- **Intelligent-Tiering**: AWS moves objects between tiers based on access, good when patterns are unknown.
- **Standard-IA and One Zone-IA**: cheaper storage, retrieval fee, for infrequent access.
- **Glacier Instant, Flexible and Deep Archive**: archival, from milliseconds to hours to retrieve.

#### Useful features
- **Versioning** keeps old copies and protects against accidental overwrite or delete.
- **Presigned URLs** give temporary upload or download access without making anything public. This is how apps let users upload directly to S3.
- **Event notifications** trigger Lambda, SQS or EventBridge when objects are created.
- **Static website hosting** (prefer CloudFront in front).

#### Pitfalls
- Routing large uploads through your server instead of presigned URLs.
- Enabling versioning without a lifecycle rule, so old versions pile up forever.
- Many tiny objects in Glacier, where per-object overhead outweighs savings.

You are ready to move on when you can build an upload flow using presigned URLs and explain which storage class fits logs, user photos and seven-year compliance archives.

Key concepts: Buckets, objects and keys, Storage classes, Versioning, Presigned URLs, Multipart upload, Event notifications, Static website hosting, S3 Select and Athena queries.

Mini project: Write a small script (Python or Node) that generates a presigned PUT URL, uploads a file with curl, and then generates a presigned GET URL that expires in five minutes. Keep the bucket private with only a few small files so it stays within free tier, and empty and delete it afterwards.

Self-check: Why are presigned URLs better than making a bucket public for letting users download their invoices?

Resources:
- [Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html) (AWS)
- [Amazon S3 storage classes](https://aws.amazon.com/s3/storage-classes/) (AWS)
- [Amazon S3 documentation](https://docs.aws.amazon.com/s3/) (AWS)

### S3 Security, Encryption and Lifecycle Rules

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/s3-security-lifecycle

Prevent public data leaks with Block Public Access and bucket policies, encrypt data, replicate it, and automate cost savings with lifecycle rules.

Public S3 buckets have leaked millions of records worldwide, including from Indian companies. Today AWS defaults are safe, but you must understand them so you never undo them by accident.

#### Access control
- **Block Public Access** is on by default at account and bucket level. Leave it on unless the bucket truly serves public content, and even then prefer CloudFront with OAC.
- **Object Ownership: bucket owner enforced** disables ACLs; use policies only.
- **Bucket policies** for cross-account access, HTTPS-only (aws:SecureTransport) and VPC endpoint restrictions.

#### Encryption
- All new objects are encrypted at rest by default with **SSE-S3**.
- **SSE-KMS** uses KMS keys for audit trails and finer control; enable **S3 Bucket Keys** to cut KMS request costs.
- Enforce TLS in transit with a bucket policy.

#### Lifecycle and data protection
- **Lifecycle rules**: move objects to IA after 30 days, Glacier after 90, delete after a year; expire old versions and incomplete multipart uploads.
- **Replication** (same-region or cross-region, for example Mumbai to Hyderabad) for DR and compliance.
- **Object Lock** for write-once-read-many retention, useful against ransomware.
- **MFA Delete** for extra protection on versioned buckets.

#### Pitfalls
- Turning off Block Public Access to "fix" a CloudFront 403 error.
- Lifecycle transitions on tiny objects, which can cost more than they save.

You are ready to move on when you can write a bucket policy that enforces HTTPS and denies access from outside your VPC endpoint, and a lifecycle rule that expires old versions.

Key concepts: Block Public Access, Bucket policies, SSE-S3 vs SSE-KMS, Lifecycle rules, Cross-region replication, Object Lock, S3 access logs and CloudTrail data events.

Mini project: On a versioned bucket, add a lifecycle rule that moves objects to Standard-IA after 30 days and deletes noncurrent versions after 7, plus a bucket policy denying non-HTTPS requests. Test the deny with curl over http. Keep only a few KB of data so it stays in free tier, and delete the bucket after.

Self-check: A developer disabled Block Public Access because CloudFront returned 403. What should they have done instead?

Resources:
- [Blocking public access to S3 storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) (AWS)
- [Managing the lifecycle of objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html) (AWS)
- [Security best practices for Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/security-best-practices.html) (AWS)

### Block and File Storage: EBS and EFS

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/ebs-efs

Choose between EBS volumes, instance store, EFS and FSx, and protect block storage with snapshots.

Not everything fits in object storage. Databases and operating systems need **block storage**, and some apps need a **shared file system**.

#### Amazon EBS (block)
- Network-attached disks for EC2, living in **one AZ**.
- **gp3** is the default general-purpose SSD: set size, IOPS and throughput independently, and it is cheaper than gp2.
- **io2** for high-performance databases; **st1/sc1** HDD for throughput-heavy, cheap storage.
- **Snapshots** are incremental backups stored in S3 behind the scenes. Copy them across regions for DR and use **Data Lifecycle Manager** or AWS Backup to automate them.
- Volumes can be resized and changed type without downtime.

#### Amazon EFS (file)
- A managed **NFS** file system that many instances, containers or Lambda functions can mount at once, across AZs.
- Scales automatically; pay for what you store. Lifecycle management moves cold files to cheaper tiers.
- Linux only. For Windows file shares use **FSx for Windows File Server**; for high-performance computing use **FSx for Lustre**.

#### Equivalents
Azure Managed Disks and Azure Files; Google Persistent Disk and Filestore.

#### Pitfalls
- Assuming EBS survives an AZ failure. It does not; snapshots do.
- Unattached EBS volumes and old snapshots quietly billing every month.
- Using EFS as a database disk; latency is higher than EBS.

You are ready to move on when you can attach, format, mount and snapshot an EBS volume, and explain when EFS is the better fit.

Key concepts: EBS volume types (gp3, io2), EBS snapshots, Data Lifecycle Manager, EBS encryption, Amazon EFS, FSx family, Block vs file vs object.

Mini project: Attach a small extra gp3 volume to a free-tier instance, format it, mount it at /data, write a file, snapshot it, then restore the snapshot to a new volume in another AZ and read the file. Delete volumes and snapshots and terminate the instance afterwards so nothing keeps billing.

Self-check: Three EC2 instances in different AZs need to read and write the same uploaded files. Would you use EBS, EFS or S3, and why?

Resources:
- [Amazon EBS documentation](https://docs.aws.amazon.com/ebs/) (AWS)
- [Amazon EFS documentation](https://docs.aws.amazon.com/efs/) (AWS)
- [Amazon FSx](https://aws.amazon.com/fsx/) (AWS)

## Databases: RDS, Aurora, DynamoDB and ElastiCache

Run relational, key-value and in-memory data stores as managed services, and pick the right one for each workload.

### Relational Databases with RDS and Aurora

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/rds-aurora

Run managed PostgreSQL and MySQL on RDS and Aurora with Multi-AZ, read replicas, backups, parameter groups and secure connectivity.

Most applications need a relational database. **Amazon RDS** runs PostgreSQL, MySQL, MariaDB, Oracle and SQL Server for you: provisioning, patching, backups and failover. Azure SQL Database / Azure Database for PostgreSQL and Google Cloud SQL are the equivalents.

#### Key RDS features
- **Multi-AZ**: a synchronous standby in another AZ with automatic failover in a minute or two. This is for availability, not for scaling reads.
- **Read replicas**: asynchronous copies for read-heavy workloads or reporting, and can be cross-region.
- **Automated backups** with point-in-time restore (up to 35 days) plus manual snapshots.
- **Parameter groups** for engine settings and **option groups** for extra features.
- **Storage autoscaling** and gp3 storage.

#### Amazon Aurora
- AWS-built engine compatible with MySQL and PostgreSQL.
- Storage is shared across three AZs with six copies; replicas fail over faster.
- **Aurora Serverless v2** scales capacity in small steps, good for spiky workloads.
- More expensive per hour than plain RDS, so use it when its features matter.

#### Connecting securely
- Place databases in **private subnets** with a security group that only allows the app tier.
- Store credentials in **Secrets Manager** with rotation, or use IAM database authentication.
- **RDS Proxy** pools connections, important for Lambda functions that open many short connections.

#### Pitfalls
- Making the database publicly accessible for convenience.
- Confusing Multi-AZ with read replicas in interviews.
- Leaving a test database running for a month.

You are ready to move on when you can launch a private RDS PostgreSQL instance, connect from an app instance, restore it to a point in time and explain Multi-AZ vs read replica.

Key concepts: RDS engines, Multi-AZ deployments, Read replicas, Automated backups and PITR, Parameter groups, Aurora and Aurora Serverless v2, RDS Proxy, IAM database authentication, Database Migration Service.

Mini project: Launch a free-tier eligible RDS PostgreSQL db.t3.micro or db.t4g.micro in a private subnet, connect from an instance via Session Manager, load a small table, then do a point-in-time restore to a new instance. Single-AZ only to stay in free tier, and delete both instances (skip the final snapshot) the same day.

Self-check: Your read-heavy reporting queries slow down the main app. Would Multi-AZ help? What would?

Resources:
- [Amazon RDS documentation](https://docs.aws.amazon.com/rds/) (AWS)
- [Amazon Aurora](https://aws.amazon.com/rds/aurora/) (AWS)
- [Amazon RDS Proxy](https://aws.amazon.com/rds/proxy/) (AWS)

### NoSQL with DynamoDB

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/dynamodb

Design DynamoDB tables around access patterns with partition and sort keys, indexes, capacity modes, TTL and streams.

**Amazon DynamoDB** is a fully managed key-value and document database with single-digit millisecond latency at any scale and no servers to manage. Azure Cosmos DB and Google Firestore or Bigtable are the closest equivalents.

#### Data model
- A **table** holds **items** (rows) made of attributes. There is no fixed schema beyond the key.
- **Partition key** (required) decides where data lives. **Sort key** (optional) orders items within a partition, enabling range queries.
- **Query** reads items by key efficiently. **Scan** reads the whole table and should be rare.

#### Indexes
- **Global Secondary Index (GSI)**: a different partition and sort key over the same data, for a second access pattern.
- **Local Secondary Index (LSI)**: same partition key, different sort key; must be created with the table.

#### Design approach
Start from **access patterns**, not entities. List every query the app needs ("get orders for a user by date", "get order by ID"), then design keys and GSIs to serve each with a Query. Single-table design packs several entity types into one table using generic keys like PK and SK.

#### Operations
- **On-demand** capacity for unpredictable traffic; **provisioned** with auto scaling for steady, cost-sensitive workloads.
- **TTL** deletes expired items for free.
- **Streams** feed changes to Lambda for event-driven processing.
- **Point-in-time recovery** and on-demand backups.

#### Pitfalls
- Hot partitions from low-cardinality keys like "status".
- Treating DynamoDB like SQL and scanning with filters.

You are ready to move on when you can design keys for a URL shortener or an order system and serve every access pattern with a Query.

Key concepts: Tables, items, attributes, Partition and sort keys, Query vs Scan, GSIs and LSIs, Access-pattern-first design, On-demand vs provisioned capacity, TTL and Streams, Single-table design, DAX caching.

Mini project: Design and build a DynamoDB table for a college event-registration app: get events by date, get registrations by student, get registrations for an event. Write the access patterns first, then load sample data with a script and query each pattern. Use on-demand mode with a few hundred items to stay in free tier, and delete the table after.

Self-check: Why is choosing 'country' as the partition key for an Indian user table a bad idea?

Resources:
- [Amazon DynamoDB documentation](https://docs.aws.amazon.com/dynamodb/) (AWS)
- [Best practices for designing with DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/best-practices.html) (AWS)
- [The Open Guide to AWS: DynamoDB](https://github.com/open-guides/og-aws) (open-guides)

### Caching with ElastiCache

recommended · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/elasticache

Use managed Redis-compatible caches to cut database load and latency, with sensible caching patterns and eviction.

A cache keeps frequently read data in memory so your app does not hit the database for every request. **Amazon ElastiCache** runs Valkey, Redis OSS and Memcached for you. Azure Cache for Redis and Google Memorystore are the equivalents.

#### When to cache
- Read-heavy data that changes slowly: product catalogues, course listings, configuration.
- Expensive computed results: leaderboards, aggregated dashboards.
- Session storage for stateless app servers behind an Auto Scaling group.
- Rate limiting and simple queues using Redis data structures.

#### Caching patterns
- **Cache-aside (lazy loading)**: check cache, on miss read the database and populate the cache. Simple and common.
- **Write-through**: update the cache whenever you write the database. Fresher data, more writes.
- Always set a **TTL** so stale data eventually expires.

#### ElastiCache options
- **Serverless** ElastiCache scales automatically and is simplest to start with.
- Node-based clusters with **replication groups** and Multi-AZ failover for predictable workloads.
- **Cluster mode** shards data across nodes for large datasets.
- Encryption in transit and at rest, and AUTH or IAM authentication.

#### Pitfalls
- Caching without TTLs and serving stale prices for days.
- A **thundering herd** when a hot key expires and thousands of requests hit the database at once.
- Treating the cache as the source of truth; it can be evicted at any time.

You are ready to move on when you can add cache-aside caching to an API and measure the drop in database queries and response time.

Key concepts: Cache-aside pattern, Write-through pattern, TTLs and eviction, Valkey and Redis OSS, Memcached, ElastiCache Serverless, Session storage.

Mini project: Run Redis locally with Docker, add cache-aside to a small API that reads from PostgreSQL, and log hit and miss rates. Optionally repeat with a free-tier eligible cache.t3.micro or t4g.micro ElastiCache node for an hour, then delete it immediately.

Self-check: What is the thundering herd problem, and name one way to prevent it.

Resources:
- [Amazon ElastiCache documentation](https://docs.aws.amazon.com/elasticache/) (AWS)
- [Caching best practices](https://aws.amazon.com/caching/best-practices/) (AWS)
- [Redis documentation](https://redis.io/docs/latest/) (Redis)

## Serverless and Event-Driven Architecture

Build systems from Lambda functions, managed APIs, queues, events and workflows that scale to zero and cost little at small scale.

### AWS Lambda Functions

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/lambda

Write, deploy and tune Lambda functions: handlers, triggers, execution roles, memory and timeouts, cold starts, layers and concurrency.

**AWS Lambda** runs your code in response to events without servers to manage. You pay per request and per millisecond of compute, and the free tier covers a generous number of invocations every month. Azure Functions and Google Cloud Functions / Cloud Run functions are the equivalents.

#### The basics
- A **handler** function receives an **event** (an HTTP request, an S3 upload, a queue message) and a **context**.
- Runtimes include Node.js, Python, Java, Go (via the OS-only runtime), .NET, or any language as a **container image**.
- Each function has an **execution role** that decides what AWS APIs it can call.
- Configure **memory** (128 MB to 10 GB); CPU scales with it. **Timeout** is up to 15 minutes.

#### Triggers
- Synchronous: API Gateway, function URLs, ALB.
- Asynchronous: S3, SNS, EventBridge (with retries and **destinations** or dead-letter queues).
- Poll-based: SQS, DynamoDB Streams, Kinesis (event source mappings with batching).

#### Performance and scaling
- **Cold starts** happen when a new execution environment is created. Keep packages small, initialize clients outside the handler, and use **SnapStart** or **provisioned concurrency** when latency matters.
- **Concurrency** limits protect downstream databases. Use **reserved concurrency** to cap a function.
- Use **Powertools for AWS Lambda** for structured logging, tracing and idempotency.

#### Pitfalls
- Using Lambda for long-running or always-busy workloads where containers are cheaper.
- Opening a new database connection on every invocation; use RDS Proxy or DynamoDB.
- Non-idempotent handlers that double-charge when an event is retried.

You are ready to move on when you can deploy a function triggered by an S3 upload that writes metadata to DynamoDB, and explain cold starts and retries.

Key concepts: Handlers, events and context, Execution roles, Memory, CPU and timeouts, Sync, async and poll-based triggers, Cold starts, Concurrency and throttling, Layers and container images, Idempotency, Powertools for AWS Lambda.

Mini project: Build an image thumbnail pipeline: uploading a JPG to an S3 bucket triggers a Lambda that writes a resized copy to a second bucket and records metadata in DynamoDB. Use small test images so everything stays within the always-free Lambda and DynamoDB limits, and delete buckets, table and function afterwards.

Self-check: Your Lambda writes to S3 and is triggered by uploads to the same bucket. What goes wrong, and how do you prevent it?

Resources:
- [AWS Lambda documentation](https://docs.aws.amazon.com/lambda/) (AWS)
- [Serverless Land](https://serverlessland.com/) (AWS)
- [Powertools for AWS Lambda (Python)](https://docs.powertools.aws.dev/lambda/python/latest/) (AWS)

### APIs with API Gateway

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/api-gateway

Expose Lambda and other backends as secure HTTP APIs with API Gateway, including auth, throttling, CORS and custom domains.

**Amazon API Gateway** is the managed front door for serverless APIs. It handles routing, authentication, throttling and TLS so your functions only contain business logic. Azure API Management and Google API Gateway / Apigee are the equivalents.

#### API types
- **HTTP APIs**: cheaper and faster, cover most needs (Lambda and HTTP integrations, JWT authorizers, CORS). Start here.
- **REST APIs**: more features such as API keys with usage plans, request validation, caching, WAF integration and private APIs.
- **WebSocket APIs**: for real-time apps like chat or live quiz scores.
- Simple single-function endpoints can use **Lambda function URLs** with no gateway at all.

#### Core concepts
- **Routes** (GET /courses/{id}) map to **integrations** (Lambda, HTTP backend, AWS service).
- **Stages** (dev, prod) with stage variables.
- **Authorizers**: JWT (Cognito, Auth0, Firebase), Lambda authorizers for custom logic, or IAM auth.
- **Throttling** limits requests per second to protect backends.
- **Custom domains** with ACM certificates.

#### Auth with Cognito
**Amazon Cognito** user pools provide sign-up, login and JWT tokens, and plug straight into an API Gateway JWT authorizer.

#### Pitfalls
- CORS errors because the preflight OPTIONS route or allowed origins are missing.
- No throttling, letting one buggy client run up your Lambda bill.
- Returning raw stack traces in error responses.

You are ready to move on when you can build a CRUD HTTP API on Lambda and DynamoDB protected by a JWT authorizer.

Key concepts: HTTP vs REST vs WebSocket APIs, Routes, integrations and stages, JWT and Lambda authorizers, Cognito user pools, Throttling and usage plans, CORS, Custom domains, Lambda function URLs.

Mini project: Build a serverless notes API (create, list, get, delete) with an HTTP API, Lambda and DynamoDB, protected by a Cognito JWT authorizer, and test it with curl or Postman. Set a low throttling limit so a bug cannot run up costs, keep traffic tiny to stay within free tier, and tear everything down after.

Self-check: When would you choose a REST API over an HTTP API in API Gateway?

Resources:
- [Amazon API Gateway documentation](https://docs.aws.amazon.com/apigateway/) (AWS)
- [Amazon Cognito documentation](https://docs.aws.amazon.com/cognito/) (AWS)
- [Serverless Land patterns](https://serverlessland.com/patterns) (AWS)

### Decoupling with SQS, SNS and EventBridge

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/messaging-events

Connect services asynchronously with queues, pub/sub topics and event buses, and handle retries, ordering and dead-letter queues.

Tightly coupled systems fail together. Putting a queue or event bus between services lets each one scale, fail and deploy independently.

#### Amazon SQS (queues)
- A producer sends messages; consumers poll and delete them after processing.
- **Standard** queues: nearly unlimited throughput, at-least-once delivery, best-effort ordering.
- **FIFO** queues: strict ordering per message group and exactly-once processing within a window, with lower throughput.
- **Visibility timeout** hides a message while it is being processed. **Dead-letter queues (DLQs)** catch messages that keep failing.

#### Amazon SNS (pub/sub)
- Publish once to a **topic**; it fans out to many subscribers (SQS queues, Lambda, HTTP endpoints, email, SMS).
- The **SNS to multiple SQS** fan-out pattern lets several services each process every event independently.

#### Amazon EventBridge (event bus)
- Routes events using **rules** that match on event content, to targets like Lambda, Step Functions or SQS.
- Receives events from AWS services (EC2 state changes, S3 uploads) and SaaS partners.
- **Scheduler** replaces cron jobs; **Pipes** connect sources to targets with filtering.

Azure Service Bus, Event Grid and Google Pub/Sub cover the same ground.

#### Pitfalls
- Non-idempotent consumers, since at-least-once means duplicates will happen.
- Visibility timeout shorter than processing time, causing double processing.
- No DLQ, so poison messages retry forever.

You are ready to move on when you can explain when to use a queue, a topic or an event bus, and build a fan-out with a DLQ.

Key concepts: SQS standard vs FIFO, Visibility timeout, Dead-letter queues, SNS topics and fan-out, EventBridge rules and buses, EventBridge Scheduler, Idempotent consumers, Kinesis Data Streams.

Mini project: Build an order-placed flow: an API publishes to SNS, which fans out to two SQS queues (email service and inventory service), each consumed by a Lambda with a DLQ. Send a deliberately bad message and watch it land in the DLQ. Low volumes stay within free tier; delete everything when finished.

Self-check: Why must an SQS consumer be idempotent even when you use a standard queue correctly?

Resources:
- [Amazon SQS documentation](https://docs.aws.amazon.com/sqs/) (AWS)
- [Amazon SNS documentation](https://docs.aws.amazon.com/sns/) (AWS)
- [Amazon EventBridge documentation](https://docs.aws.amazon.com/eventbridge/) (AWS)

### Orchestrating Workflows with Step Functions

recommended · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/step-functions

Coordinate multi-step processes with Step Functions state machines, including retries, error handling, parallel steps and human approval.

When a business process has many steps (validate order, charge payment, reserve stock, send email) chaining Lambdas together by hand gets messy. **AWS Step Functions** lets you define the flow as a **state machine** with built-in retries and error handling. Azure Logic Apps / Durable Functions and Google Workflows are the equivalents.

#### Core ideas
- Workflows are written in **Amazon States Language** (JSON) or drawn in **Workflow Studio**.
- State types: **Task** (do work), **Choice** (branch), **Parallel**, **Map** (loop over items), **Wait**, **Succeed** and **Fail**.
- **Retry** and **Catch** blocks handle errors declaratively.
- **Direct SDK integrations** call over 200 AWS services without a Lambda in between.

#### Standard vs Express
- **Standard** workflows: up to a year long, exactly-once execution, full visual history. Good for business processes.
- **Express** workflows: high-volume, short (up to 5 minutes), cheaper. Good for event processing.

#### Patterns
- **Saga pattern**: compensating steps that undo earlier work when a later step fails (refund the payment if stock is unavailable).
- **Wait for callback** with task tokens for human approval or external systems.
- **Distributed Map** to process millions of S3 objects in parallel.

#### Pitfalls
- Putting huge payloads in state (256 KB limit); pass S3 references instead.
- Using Step Functions for a simple two-step chain where one Lambda or an SQS queue is enough.

You are ready to move on when you can build a workflow with a choice, a retry policy and a compensating step, and read its execution history to debug a failure.

Key concepts: Amazon States Language, Task, Choice, Parallel, Map states, Retry and Catch, Standard vs Express workflows, Direct SDK integrations, Saga pattern, Callback with task tokens.

Mini project: Model a food-order workflow in Step Functions: validate order, charge payment (a Lambda that randomly fails), retry twice, and on final failure run a refund step and send an SNS notification. A few dozen executions stay within free tier; delete the state machine and functions after.

Self-check: When would you choose Step Functions over chaining Lambda functions with SQS queues?

Resources:
- [AWS Step Functions documentation](https://docs.aws.amazon.com/step-functions/) (AWS)
- [Serverless Land workflows](https://serverlessland.com/workflows) (AWS)

## Containers on AWS

Package apps as containers, store images in ECR, and run them on one orchestrator: ECS with Fargate or EKS.

### Docker and Container Images

core · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/docker

Build small, secure container images with Dockerfiles, run multi-container apps locally with Compose and push images to Amazon ECR.

Containers package an app with its runtime and dependencies so it runs the same on your laptop, in CI and in the cloud. Every orchestrator on AWS starts from a container image.

#### Core concepts
- An **image** is a read-only template built in layers from a **Dockerfile**. A **container** is a running instance of it.
- **Registries** store images: Docker Hub, GitHub Container Registry and **Amazon ECR** (Azure Container Registry, Google Artifact Registry).
- **Volumes** keep data outside the container's writable layer; **port mapping** exposes services.

#### Writing good Dockerfiles
- Start from small, official base images (alpine, distroless, slim).
- Use **multi-stage builds** so build tools do not ship to production.
- Order instructions so dependency installs are cached before copying source code.
- Run as a **non-root user** and add a .dockerignore.
- Build for **linux/arm64** too if you plan to run on Graviton or Fargate ARM.

#### Docker Compose
Compose runs an app plus its PostgreSQL and Redis locally with one command, perfect for development.

#### Amazon ECR
- Private repositories with IAM access control.
- **Image scanning** for known vulnerabilities, **lifecycle policies** to delete old images.
- Log in with aws ecr get-login-password piped into docker login.

#### Pitfalls
- Baking secrets or .env files into images.
- 1 GB images built from full OS bases.
- Using the latest tag in production, so you never know what is running.

You are ready to move on when you can containerize a small API with a multi-stage Dockerfile under 150 MB, run it with Compose alongside a database, and push it to ECR.

Key concepts: Images, containers and layers, Dockerfile instructions, Multi-stage builds, Non-root containers, Docker Compose, Amazon ECR, Image scanning and lifecycle policies, Multi-arch builds with buildx.

Mini project: Containerize a small Node or Python API with a multi-stage Dockerfile, run it with Postgres using Docker Compose, then push the image to a private ECR repository with scanning on push. Keep one or two images only (ECR free tier storage is limited), add a lifecycle policy, and delete the repository when you finish this section.

Self-check: Why does a multi-stage build produce a smaller and safer image than a single-stage one?

Resources:
- [Docker documentation](https://docs.docker.com/) (Docker)
- [Amazon ECR documentation](https://docs.aws.amazon.com/ecr/) (AWS)
- [Docker roadmap](https://roadmap.sh/docker) (roadmap.sh)

### Amazon ECS with Fargate

recommended · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/ecs-fargate

Run containers on AWS without managing servers or Kubernetes using ECS task definitions, services and Fargate behind an ALB.

**Amazon ECS** is AWS's own container orchestrator. With **Fargate** you do not manage any EC2 instances: you say how much CPU and memory a task needs and AWS runs it. For most teams that do not already need Kubernetes, ECS on Fargate is the fastest path to production containers. Azure Container Apps and Google Cloud Run fill a similar role.

#### Core concepts
- **Task definition**: the blueprint (image, CPU, memory, ports, environment, secrets, log configuration, task role).
- **Task**: a running copy of a task definition.
- **Service**: keeps N tasks running, replaces failed ones and registers them with an ALB target group.
- **Cluster**: a logical grouping of services.
- **Capacity providers**: Fargate, Fargate Spot (cheaper, interruptible) or your own EC2 Auto Scaling groups.

#### Networking and security
- Use **awsvpc** networking: every task gets its own ENI and security group.
- Run tasks in private subnets; the ALB sits in public subnets.
- **Task role** for app permissions, **task execution role** for pulling images and reading secrets.
- Inject secrets from Secrets Manager or Parameter Store, never plain environment variables in the task definition.

#### Deployments and scaling
- **Rolling updates** with the deployment circuit breaker to auto-roll back failed releases, or blue/green with CodeDeploy.
- **Service auto scaling** on CPU, memory or ALB request count.
- **ECS Exec** to get a shell inside a running task for debugging.

#### Pitfalls
- Tasks stuck in PENDING because private subnets have no route to ECR (add NAT or endpoints).
- Mixing up the task role and the execution role.

You are ready to move on when you can deploy a containerized API to ECS Fargate behind an ALB with logs in CloudWatch and roll out a new version with zero downtime.

Key concepts: Task definitions, Services and clusters, Fargate and Fargate Spot, awsvpc networking, Task role vs execution role, Secrets injection, Deployment circuit breaker, Service auto scaling, ECS Exec, AWS App Runner.

Mini project: Deploy your containerized API to ECS Fargate with 0.25 vCPU tasks behind an ALB, logs in CloudWatch, and a secret from Secrets Manager. Push a new image tag and watch the rolling deployment. Fargate and ALBs are not free, so do this in one sitting (cost should stay to a few rupees), then scale the service to zero and delete the service, cluster and ALB.

Self-check: Your ECS task fails with 'unable to pull secrets or registry auth'. Which role is misconfigured, and what else might be missing in the network?

Resources:
- [Amazon ECS documentation](https://docs.aws.amazon.com/ecs/) (AWS)
- [AWS Fargate](https://aws.amazon.com/fargate/) (AWS)
- [Amazon ECS best practices guide](https://docs.aws.amazon.com/AmazonECS/latest/bestpracticesguide/intro.html) (AWS)

### Amazon EKS (Managed Kubernetes)

alternative · advanced · about 10 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/eks

Run Kubernetes on AWS with EKS: managed node groups or Fargate, IAM integration, the AWS Load Balancer Controller and add-ons.

**Amazon EKS** runs the Kubernetes control plane for you. Choose it when your company already standardizes on Kubernetes, needs portability across clouds, or relies on the Kubernetes ecosystem (Helm charts, operators, service meshes). Azure AKS and Google GKE are the equivalents, and Kubernetes skills transfer across all three.

#### What EKS manages and what you manage
- AWS runs and patches the control plane (API server, etcd) across AZs.
- You choose the data plane: **managed node groups** (EC2 instances AWS helps upgrade), **Karpenter** for fast, cost-aware autoscaling, **Fargate** profiles, or **EKS Auto Mode** where AWS manages nodes too.
- You upgrade cluster versions regularly; old versions move to paid extended support.

#### AWS integrations
- **IAM**: access entries map IAM roles to Kubernetes permissions; **EKS Pod Identity** or IRSA gives pods their own AWS roles.
- **VPC CNI**: pods get real VPC IP addresses, so plan subnet sizes carefully.
- **AWS Load Balancer Controller** turns Ingress and Service objects into ALBs and NLBs.
- **EBS and EFS CSI drivers** for persistent volumes.

#### Kubernetes basics you must know first
Pods, Deployments, Services, Ingress, ConfigMaps, Secrets, namespaces and kubectl. Practise locally with kind or minikube before paying for EKS.

#### Pitfalls
- EKS charges for every cluster per hour even with no workloads, so labs left running get expensive.
- Running out of IP addresses in small subnets because each pod uses a VPC IP.
- Choosing EKS for a single small app where ECS or App Runner would be simpler.

You are ready to move on when you can deploy an app with a Deployment, Service and Ingress to EKS, give a pod an IAM role, and explain why you picked EKS over ECS.

Key concepts: Kubernetes core objects, EKS control plane vs data plane, Managed node groups, Karpenter, EKS Pod Identity / IRSA, AWS Load Balancer Controller, VPC CNI and IP planning, Cluster upgrades, EKS Auto Mode.

Mini project: Practise first on a free local cluster with kind. Then, in one session, create an EKS cluster with eksctl, deploy your API with an Ingress through the AWS Load Balancer Controller and a pod IAM role to read S3. EKS is not free tier, so budget a small amount, finish within a few hours and run eksctl delete cluster immediately, then confirm no load balancers or volumes remain.

Self-check: Your team runs three small services and no one knows Kubernetes. Would you recommend EKS or ECS Fargate, and why?

Resources:
- [Amazon EKS documentation](https://docs.aws.amazon.com/eks/) (AWS)
- [EKS Workshop](https://www.eksworkshop.com/) (AWS)
- [Kubernetes documentation](https://kubernetes.io/docs/home/) (kubernetes.io)
- [Kubernetes roadmap](https://roadmap.sh/kubernetes) (roadmap.sh)

## Infrastructure as Code

Define cloud infrastructure in versioned code, review it like software, and pick one main tool: Terraform or CloudFormation/CDK.

### Infrastructure as Code Concepts

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/iac-concepts

Understand why infrastructure belongs in code, declarative vs imperative tools, state, drift, modules and the plan-review-apply workflow.

Clicking through the console does not scale, cannot be reviewed and is impossible to reproduce exactly. **Infrastructure as Code (IaC)** describes your cloud resources in files kept in Git, so environments are repeatable, reviewable and easy to destroy.

#### Declarative vs imperative
- **Declarative** tools (Terraform, CloudFormation, Bicep) describe the desired end state; the tool works out what to create, change or delete.
- **Imperative** scripts (CLI commands, boto3) describe steps. Fine for one-off tasks, fragile for full environments.
- **CDK and Pulumi** let you write real programming languages that produce declarative templates.

#### Key ideas
- **State**: the tool's record of what it manages. Terraform keeps a state file; CloudFormation keeps state inside AWS as stacks.
- **Plan / change set**: preview exactly what will change before applying.
- **Drift**: someone changed a resource by hand, so reality no longer matches code.
- **Modules / constructs**: reusable building blocks (a standard VPC, a standard service).
- **Environments**: the same code with different variables for dev, staging and prod.

#### The workflow
Write code, open a pull request, review the plan output in CI, merge, apply from the pipeline. Humans should rarely apply from laptops in production.

#### Pitfalls
- Mixing console changes with IaC-managed resources.
- One giant configuration for everything, so every change risks the whole account.
- Hardcoding secrets in IaC files.

You are ready to move on when you can explain state, plan and drift, and why IaC makes tearing down your labs safer than clicking.

Key concepts: Declarative vs imperative, State and drift, Plan and change sets, Modules and reuse, Environments and variables, Immutable infrastructure, Policy as code.

Mini project: List every resource you created by hand for the VPC and EC2 labs, then write the same list as a table with resource type, key settings and dependencies. This becomes your blueprint for the IaC topics next. Paper exercise, no cost.

Self-check: What is drift, how would you detect it, and why is it dangerous?

Resources:
- [What is Infrastructure as Code?](https://aws.amazon.com/what-is/iac/) (AWS)
- [Terraform documentation](https://developer.hashicorp.com/terraform) (HashiCorp)
- [Terraform roadmap](https://roadmap.sh/terraform) (roadmap.sh)

### Terraform on AWS

recommended · intermediate · about 12 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/terraform

Manage AWS with Terraform: providers, resources, variables, remote state in S3 with locking, modules and safe plan/apply workflows.

**Terraform** (and its open-source fork OpenTofu) is the most common IaC tool in job postings because one language (HCL) works across AWS, Azure, GCP and hundreds of SaaS providers.

#### Core building blocks
- **Provider**: the AWS provider, configured with a region such as ap-south-1.
- **Resources**: aws_vpc, aws_subnet, aws_instance and so on.
- **Data sources**: read existing things, like the latest Amazon Linux AMI.
- **Variables, locals and outputs** for inputs, computed values and results.
- **Modules**: folders of reusable code; the public registry has well-tested modules such as terraform-aws-modules/vpc.

#### The workflow
terraform init, fmt, validate, plan, apply, and destroy when the lab is over. Read every plan line marked to destroy or replace before you type yes.

#### State
- Local state is fine for learning. Teams use an **S3 backend** with versioning and encryption, plus state locking (S3 native lockfile in recent versions, or DynamoDB in older setups).
- State can contain secrets: never commit it, restrict access to the bucket.
- terraform import and import blocks bring hand-made resources under management.

#### Good practices
- Pin provider and module versions.
- Separate state per environment and per component (network, data, apps).
- Run plan in CI on pull requests; apply from the pipeline.
- Use **default_tags** in the provider so every resource gets project and owner tags.

#### Pitfalls
- Committing terraform.tfstate or .terraform to Git.
- Renaming a resource block and accidentally destroying and recreating a database.

You are ready to move on when you can rebuild your VPC lab entirely in Terraform with remote state, then destroy it with one command.

Key concepts: Providers and resources, Variables, locals, outputs, init, plan, apply, destroy, Remote state in S3 with locking, Modules and the registry, Data sources, Import and moved blocks, Workspaces vs separate state, OpenTofu.

Mini project: Write Terraform for a two-AZ VPC (public and private subnets, no NAT), a security group and one free-tier EC2 instance with a user data web server, using an S3 remote backend and default_tags. Apply, verify the page loads, then terraform destroy and confirm in the console that nothing is left except the small state bucket.

Self-check: Your plan shows an RDS instance will be destroyed and recreated after you renamed its resource block. What happened and how do you fix it safely?

Resources:
- [Terraform documentation](https://developer.hashicorp.com/terraform) (HashiCorp)
- [Get Started with Terraform on AWS](https://developer.hashicorp.com/terraform/tutorials/aws-get-started) (HashiCorp)
- [AWS provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs) (Terraform Registry)
- [Terraform roadmap](https://roadmap.sh/terraform) (roadmap.sh)

### CloudFormation and AWS CDK

alternative · intermediate · about 12 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloudformation-cdk

Use AWS-native IaC: CloudFormation templates and stacks, change sets and drift detection, and the CDK to write infrastructure in TypeScript or Python.

**AWS CloudFormation** is AWS's built-in IaC service, and the **AWS CDK** lets you define the same infrastructure in TypeScript, Python, Java or C# and synthesizes CloudFormation for you. Choose this path if your team is AWS-only or already uses CDK. Azure's equivalent is Bicep; Google Cloud uses Infrastructure Manager (Terraform-based).

#### CloudFormation essentials
- **Templates** (YAML or JSON) with Parameters, Resources, Outputs, Mappings and Conditions.
- A **stack** is a deployed template. State is managed by AWS, so there is no state file to protect.
- **Change sets** preview changes; **rollback** happens automatically if a deployment fails.
- **Drift detection** finds manual changes.
- **StackSets** deploy the same stack across many accounts and regions.

#### AWS CDK
- **Constructs** come in levels: L1 (raw CloudFormation), L2 (sensible defaults, such as a VPC in a few lines), L3 patterns (an ALB-fronted Fargate service in one construct).
- Commands: cdk init, cdk synth, cdk diff, cdk deploy, cdk destroy.
- You get loops, types, unit tests and IDE autocompletion, and grant methods (bucket.grantRead(fn)) write least-privilege IAM for you.
- **cdk bootstrap** prepares each account and region once.

#### Also know
**AWS SAM** is a CloudFormation extension focused on serverless apps, with local testing of Lambda functions.

#### Pitfalls
- Stacks stuck in UPDATE_ROLLBACK_FAILED after manual changes.
- Deleting a stack that owns a production database without a DeletionPolicy of Retain or Snapshot.
- Overusing L1 constructs and losing CDK's safer defaults.

You are ready to move on when you can deploy a VPC and Fargate service with CDK, read the synthesized template, review cdk diff, and destroy it cleanly.

Key concepts: Template anatomy, Stacks and change sets, Rollback and drift detection, CDK constructs L1, L2, L3, cdk synth, diff, deploy, DeletionPolicy, StackSets, AWS SAM.

Mini project: Write a CDK app in TypeScript or Python that creates a two-AZ VPC without NAT gateways, an S3 bucket with Block Public Access and a Lambda with read access granted through bucket.grantRead. Run cdk diff, deploy, test, then cdk destroy. Everything is free-tier sized; confirm the stack and bucket are gone afterwards.

Self-check: What is the difference between a CDK L1 and L2 construct, and why would you usually prefer L2?

Resources:
- [AWS CloudFormation documentation](https://docs.aws.amazon.com/cloudformation/) (AWS)
- [AWS CDK documentation](https://docs.aws.amazon.com/cdk/) (AWS)
- [AWS SAM documentation](https://docs.aws.amazon.com/serverless-application-model/) (AWS)

## CI/CD for Cloud Workloads

Automate build, test and deploy for apps and infrastructure, pick one pipeline tool, and release safely with progressive deployment strategies.

### CI/CD Concepts and Pipeline Design

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/ci-cd-concepts

Learn continuous integration, delivery and deployment, pipeline stages, artifacts and environment promotion.

**Continuous Integration (CI)** means every change is built and tested automatically when pushed. **Continuous Delivery** keeps the main branch always deployable; **Continuous Deployment** goes further and releases every passing change to production automatically.

#### A typical cloud pipeline
1. **Trigger** on a pull request or merge to main.
2. **Build**: compile, install dependencies, build a container image.
3. **Test**: unit tests, linting, security scans (dependencies, IaC, container images).
4. **Package**: push a versioned artifact (image to ECR, zip to S3) tagged with the Git commit SHA.
5. **Deploy to dev/staging**, run smoke tests.
6. **Promote** the same artifact to production, sometimes after a manual approval.

#### Principles
- **Build once, deploy many**: never rebuild for production; promote the tested artifact.
- **Fast feedback**: keep CI under about ten minutes.
- **Infrastructure pipelines too**: run terraform plan or cdk diff on pull requests and apply on merge.
- **Short-lived credentials**: pipelines assume IAM roles through OIDC instead of storing access keys.

#### Measuring delivery
The **DORA metrics** (deployment frequency, lead time for changes, change failure rate, time to restore) are how teams measure how good their delivery is.

#### Pitfalls
- Flaky tests that everyone learns to ignore.
- Different artifacts in staging and production.
- Pipelines with AdministratorAccess when they only need to update one service.

You are ready to move on when you can draw the stages of a pipeline for a containerized app and explain why the same image should move from staging to production.

Key concepts: CI vs continuous delivery vs deployment, Pipeline stages, Artifacts and versioning, Build once, deploy many, Environment promotion and approvals, Security scanning in pipelines, DORA metrics.

Mini project: Draw the full pipeline for your containerized API: triggers, stages, where tests and scans run, which IAM role each stage uses, and how an artifact moves from dev to prod. Commit the diagram to your repo. No cloud cost.

Self-check: Why is rebuilding the Docker image separately for production a risk, even from the same commit?

Resources:
- [What is CI/CD?](https://aws.amazon.com/devops/continuous-integration/) (AWS)
- [DORA research](https://dora.dev/) (DORA)
- [DevOps roadmap](https://roadmap.sh/devops) (roadmap.sh)

### GitHub Actions to AWS

recommended · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/github-actions-aws

Build and deploy to AWS from GitHub Actions using OIDC roles, reusable workflows, environments with approvals and caching.

**GitHub Actions** is the most common CI/CD tool for startups and open-source projects, and it lives right next to your code. It is our recommended pick because it is free for public repos and has a generous free allowance for private ones.

#### Workflow basics
- Workflows are YAML files in .github/workflows, triggered by events (push, pull_request, workflow_dispatch, schedule).
- **Jobs** run on runners and contain **steps**; jobs can depend on each other with needs.
- **Actions** from the marketplace do common tasks: actions/checkout, actions/setup-node, docker/build-push-action.

#### Deploying to AWS safely
- Use **aws-actions/configure-aws-credentials** with **OIDC**: the workflow assumes an IAM role, no stored keys.
- Scope the role's trust policy to your repo and branch or environment.
- Official actions exist for ECR login, ECS task definition updates and deployments.

#### Production features
- **Environments** (staging, production) with required reviewers and environment-specific secrets and roles.
- **Reusable workflows** and composite actions to avoid copy-paste across repos.
- **Caching** dependencies and Docker layers to speed up builds.
- **Concurrency groups** so two deploys to production never run at once.
- Pin third-party actions to a commit SHA for supply-chain safety.

#### Pitfalls
- Storing AWS access keys as repository secrets when OIDC is available.
- Running deploy jobs on pull requests from forks.
- Huge single-job workflows that are hard to debug.

You are ready to move on when a push to main builds your image, pushes it to ECR and deploys it, with production gated behind a manual approval.

Key concepts: Workflows, jobs and steps, Triggers and events, OIDC with configure-aws-credentials, Environments and approvals, Reusable workflows, Caching, Concurrency groups, Pinning actions to SHAs.

Mini project: Create a workflow that on pull request runs tests and terraform plan, and on merge to main builds your image, pushes to ECR and updates an ECS service or Lambda, using OIDC only. Gate production behind an environment approval. Use the free GitHub Actions minutes and tear down the AWS side after testing.

Self-check: What condition in the IAM trust policy stops a workflow in someone else's repository from assuming your deploy role?

Resources:
- [GitHub Actions documentation](https://docs.github.com/en/actions) (GitHub)
- [configure-aws-credentials action](https://github.com/aws-actions/configure-aws-credentials) (AWS)
- [Configuring OpenID Connect in AWS](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services) (GitHub)

### AWS CodePipeline and CodeBuild

alternative · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/codepipeline

Build AWS-native pipelines with CodePipeline, CodeBuild and CodeDeploy, useful in companies that keep all tooling inside AWS accounts.

Some enterprises keep their entire delivery toolchain inside AWS for compliance, private networking or billing reasons. The AWS-native stack covers the same ground as GitHub Actions. Azure Pipelines and Google Cloud Build are the equivalents.

#### The services
- **CodePipeline**: orchestrates stages (source, build, test, deploy, approval). Sources include GitHub, Bitbucket and S3 via **CodeConnections**.
- **CodeBuild**: runs build commands defined in a buildspec.yml in managed containers. Can run inside your VPC to reach private resources.
- **CodeDeploy**: deploys to EC2, on-premises servers, Lambda and ECS with rolling, canary and blue/green strategies and automatic rollback on CloudWatch alarms.
- **CodeArtifact**: private package registry for npm, PyPI and Maven.

Note that AWS has stopped onboarding new customers to CodeCommit, so keep source code in GitHub or GitLab.

#### How a pipeline flows
Source change triggers the pipeline, CodeBuild builds and pushes an image, a manual approval action waits for sign-off, and CodeDeploy runs a blue/green ECS deployment. Each stage uses its own IAM service role.

#### Strengths and trade-offs
- Everything stays in your AWS accounts, uses IAM natively and integrates with CloudWatch Events.
- Cross-account deployments with roles are well supported.
- The developer experience and marketplace ecosystem are smaller than GitHub Actions.

#### Pitfalls
- CodeBuild in a VPC without NAT or endpoints, so it cannot download dependencies.
- Overly broad service roles created by the console wizard.

You are ready to move on when you can build a pipeline that pulls from GitHub, builds with CodeBuild and deploys to ECS or Lambda with a manual approval.

Key concepts: CodePipeline stages and actions, CodeBuild and buildspec.yml, CodeDeploy strategies, CodeConnections to GitHub, Manual approval actions, Cross-account deployments, CodeArtifact.

Mini project: Create a CodePipeline that pulls your repo from GitHub, runs tests and builds an image in CodeBuild, waits for manual approval, and deploys a Lambda or ECS service. CodeBuild and CodePipeline have small free allowances; run a handful of executions only, then delete the pipeline, build project and artifact bucket.

Self-check: Your CodeBuild project runs inside a private subnet and fails to npm install. What is missing?

Resources:
- [AWS CodePipeline documentation](https://docs.aws.amazon.com/codepipeline/) (AWS)
- [AWS CodeBuild documentation](https://docs.aws.amazon.com/codebuild/) (AWS)
- [AWS CodeDeploy documentation](https://docs.aws.amazon.com/codedeploy/) (AWS)

### Deployment Strategies and Safe Releases

core · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/deployment-strategies

Release without downtime using rolling, blue/green and canary deployments, feature flags and automatic rollback on alarms.

Most outages are caused by changes. Good deployment strategies limit how many users a bad release can hurt and make rollback fast.

#### Strategies
- **Recreate**: stop old, start new. Simple, causes downtime. Only for dev.
- **Rolling**: replace instances or tasks a few at a time. Default for ECS and ASG instance refresh.
- **Blue/green**: run the new version alongside the old, switch traffic at the load balancer, switch back instantly if needed. CodeDeploy supports this for ECS, EC2 and Lambda.
- **Canary**: send a small slice (say 10 percent) of traffic to the new version, watch metrics, then shift the rest. Lambda aliases with weighted routing and ALB weighted target groups make this easy.
- **Feature flags** (AWS AppConfig, LaunchDarkly, Unleash) separate deploying code from releasing a feature.

#### Automatic rollback
Attach **CloudWatch alarms** (error rate, latency) to the deployment. If an alarm fires during the bake time, CodeDeploy or the ECS circuit breaker rolls back without a human.

#### Database changes
Schema changes must be **backward compatible** during a rollout: add columns first, deploy code that uses them, remove old columns later (expand and contract).

#### Pitfalls
- Blue/green with a shared database migration that breaks the old version.
- Canary periods too short to collect meaningful metrics.
- No tested rollback plan.

You are ready to move on when you can run a canary release of a Lambda function that automatically rolls back when an error alarm fires.

Key concepts: Rolling deployments, Blue/green deployments, Canary and linear deployments, Lambda aliases and weighted routing, Alarm-based automatic rollback, Feature flags with AppConfig, Expand and contract migrations.

Mini project: Deploy two versions of a Lambda behind an alias with CodeDeploy using a Canary10Percent5Minutes configuration and an alarm on the error metric. Deploy a version that throws errors and watch it roll back automatically. Free-tier sized; delete the function, alias and deployment group afterwards.

Self-check: What is the difference between blue/green and canary deployments, and when would you choose each?

Resources:
- [AWS CodeDeploy documentation](https://docs.aws.amazon.com/codedeploy/) (AWS)
- [Amazon Builders' Library](https://aws.amazon.com/builders-library/) (AWS)
- [AWS AppConfig documentation](https://docs.aws.amazon.com/appconfig/) (AWS)

## Observability and Auditing

See what your systems are doing with metrics, logs, traces and alarms, and record who changed what with CloudTrail and Config.

### CloudWatch Metrics, Logs and Alarms

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloudwatch

Collect metrics and logs, query them with Logs Insights, build dashboards and alert on symptoms that matter to users.

**Amazon CloudWatch** is the default monitoring service on AWS. Azure Monitor and Google Cloud Monitoring/Logging are the equivalents.

#### Metrics
- AWS services publish metrics automatically (EC2 CPU, ALB request count and 5xx errors, Lambda duration and errors, RDS connections).
- EC2 memory and disk need the **CloudWatch agent**.
- Publish **custom metrics** (orders placed, payment failures) or use the **Embedded Metric Format** in logs.
- Understand **statistics** (average, p95, p99) and **periods**. Averages hide slow requests; watch percentiles.

#### Logs
- **Log groups** and **log streams** collect logs from Lambda, ECS, API Gateway and the agent.
- Set a **retention period**; the default is to keep logs forever and pay for them forever.
- **Logs Insights** queries logs with a simple query language: filter errors, count by status code, find slow requests.
- **Metric filters** turn log patterns into metrics you can alarm on.

#### Alarms and dashboards
- **Alarms** watch a metric and notify SNS (email, Slack via Chatbot) or trigger actions like Auto Scaling.
- Alert on **symptoms users feel** (error rate, latency) rather than every CPU spike.
- **Composite alarms** reduce noise; **anomaly detection** learns normal patterns.
- **Dashboards** give one view of a service's health.

#### Pitfalls
- Never-expiring log groups quietly growing your bill.
- Alert fatigue from dozens of noisy alarms.
- Logging secrets or personal data such as Aadhaar or phone numbers.

You are ready to move on when you can build a dashboard for your API, write a Logs Insights query that finds the slowest requests, and get an email when the error rate crosses a threshold.

Key concepts: Built-in service metrics, CloudWatch agent, Custom metrics and EMF, Percentiles vs averages, Log groups and retention, Logs Insights queries, Alarms and SNS notifications, Dashboards, Composite and anomaly alarms.

Mini project: For your serverless notes API, set 7-day log retention, build a dashboard (requests, errors, p95 latency), write two Logs Insights queries, and create an alarm that emails you via SNS when Lambda errors exceed 5 in 5 minutes. Trigger it deliberately. A few alarms and a dashboard fit the free tier; delete them when done.

Self-check: Why might average latency look fine while users complain the app is slow? Which statistic would you alarm on?

Resources:
- [Amazon CloudWatch documentation](https://docs.aws.amazon.com/cloudwatch/) (AWS)
- [CloudWatch Logs Insights query syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html) (AWS)
- [One Observability Workshop](https://catalog.workshops.aws/observability/) (AWS)

### Distributed Tracing with X-Ray and OpenTelemetry

recommended · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/xray-tracing

Follow a request across API Gateway, Lambda, queues and databases with traces to find where time and errors come from.

In a distributed system a single click might touch API Gateway, three Lambdas, SQS and DynamoDB. Logs from each service do not tell you which step was slow. **Distributed tracing** does.

#### Concepts
- A **trace** is the full journey of one request. It is made of **segments** and **subsegments** (spans), each with timing and metadata.
- A **trace ID** is passed along between services in headers so the pieces join up.
- The **service map** draws your architecture from real traffic and highlights failing or slow nodes.

#### AWS X-Ray
- Turn on active tracing for Lambda and API Gateway with a checkbox or one line of IaC.
- Instrument code with the SDK or Powertools to add subsegments around database and HTTP calls, plus annotations (user ID, order ID) you can filter on.
- Traces and the service map appear in the CloudWatch console.

#### OpenTelemetry
**OpenTelemetry (OTel)** is the vendor-neutral standard for traces, metrics and logs. The **AWS Distro for OpenTelemetry (ADOT)** sends OTel data to X-Ray, CloudWatch or third-party tools like Datadog, Grafana and New Relic. New projects should prefer OTel instrumentation so they are not locked in. Azure Application Insights and Google Cloud Trace both accept OTel too.

#### Pitfalls
- Tracing 100 percent of high-volume traffic and paying for it; use sampling rules.
- Not propagating trace headers through queues, breaking the trace into pieces.
- Putting personal data in annotations.

You are ready to move on when you can open a trace for a slow request and point to the exact downstream call that caused the delay.

Key concepts: Traces, segments and spans, Trace context propagation, X-Ray service map, Annotations and metadata, Sampling rules, OpenTelemetry and ADOT.

Mini project: Enable active tracing on your API Gateway and Lambda functions, add a subsegment around the DynamoDB call and an annotation for user ID, then add an artificial 2 second sleep and find it in the trace. X-Ray has a free monthly allowance; turn tracing off afterwards.

Self-check: What is the difference between logs, metrics and traces, and which one answers 'which service made this request slow'?

Resources:
- [AWS X-Ray documentation](https://docs.aws.amazon.com/xray/) (AWS)
- [AWS Distro for OpenTelemetry](https://aws-otel.github.io/) (AWS)
- [OpenTelemetry documentation](https://opentelemetry.io/docs/) (OpenTelemetry)

### Auditing with CloudTrail and AWS Config

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloudtrail-config

Record every API call with CloudTrail, track configuration history and compliance with AWS Config, and investigate who changed what.

When a security group is opened to the world at 2 am, you need to know who did it, from where and when. That is what auditing services are for.

#### AWS CloudTrail
- Records **management events** (API calls like RunInstances, PutBucketPolicy, CreateUser) in every account, including console clicks.
- **Event history** shows the last 90 days for free.
- Create an **organization trail** that delivers logs from all accounts and regions to a central, locked-down S3 bucket in a log archive account.
- **Data events** (S3 object reads, Lambda invokes) cost extra; enable them selectively for sensitive buckets.
- **CloudTrail Lake** or Athena lets you query trails with SQL.

#### AWS Config
- Records the **configuration history** of resources: what a security group looked like last Tuesday.
- **Config rules** (managed or custom) check compliance continuously: S3 buckets must block public access, EBS volumes must be encrypted, root must have MFA.
- **Conformance packs** bundle rules for frameworks like CIS benchmarks.
- **Remediation** can fix non-compliant resources automatically through SSM documents.

Azure Activity Log with Azure Policy, and Google Cloud Audit Logs with Security Command Center cover similar ground.

#### Pitfalls
- No multi-region trail, so activity in unused regions (often where attackers launch miners) goes unseen.
- Trail logs stored in a bucket that the same admins can delete.
- Turning on every Config rule in every region and paying for evaluations nobody reads.

You are ready to move on when you can find, in CloudTrail, who modified a specific security group and show its previous configuration in Config.

Key concepts: Management vs data events, Event history, Organization trails, Log file integrity validation, AWS Config recorder, Config rules and conformance packs, Querying trails with Athena or CloudTrail Lake.

Mini project: Create a multi-region trail delivering to an S3 bucket, open and close port 22 on a security group, then find both events in CloudTrail and write the who, what, when and source IP. Enable one Config rule (s3-bucket-public-read-prohibited) for an hour. Delete the Config recorder afterwards because evaluations are billed.

Self-check: Which service answers 'who deleted this bucket?', and which answers 'what did this security group look like last week?'

Resources:
- [AWS CloudTrail documentation](https://docs.aws.amazon.com/cloudtrail/) (AWS)
- [AWS Config documentation](https://docs.aws.amazon.com/config/) (AWS)

## Cloud Security Services

Protect data and workloads with encryption keys, secrets management, threat detection, posture management and edge protection.

### Encryption with AWS KMS

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/kms-encryption

Encrypt data at rest and in transit using KMS keys, key policies, envelope encryption and rotation.

Encryption turns a stolen disk or leaked snapshot into useless bytes. On AWS, most encryption is driven by **AWS Key Management Service (KMS)**. Azure Key Vault and Google Cloud KMS are the equivalents.

#### Key types
- **AWS owned keys**: used invisibly by services; you have no control or visibility.
- **AWS managed keys** (aws/s3, aws/ebs): created for you per service, free to store, limited control.
- **Customer managed keys (CMKs)**: you create them, control the key policy, enable rotation, and can disable or schedule deletion. Small monthly fee per key plus request charges.

#### How it works
- **Envelope encryption**: KMS generates a data key, the service encrypts your data with it, and stores the data key encrypted under your KMS key. The master key never leaves KMS hardware.
- **Key policies** are resource policies that decide who can use and manage a key. Every key must have one, and IAM policies only work if the key policy allows it.
- **Grants** give temporary, scoped use to services.
- **Automatic rotation** creates new key material yearly (or on your schedule) while old data stays decryptable.

#### Where to turn it on
- EBS default encryption per region, S3 default encryption (SSE-KMS with bucket keys), RDS at creation time, DynamoDB, Secrets Manager, CloudTrail logs.
- In transit: TLS everywhere, enforced with bucket policies and ACM certificates.

#### Pitfalls
- Scheduling a key for deletion and losing every piece of data encrypted with it. Disable first, wait, then decide.
- Key policies that lock out everyone, including admins.
- Forgetting that encrypted RDS cannot be turned on after creation without a snapshot copy.

You are ready to move on when you can create a customer managed key, restrict it to one role, encrypt an S3 bucket with it, and show the KMS calls in CloudTrail.

Key concepts: AWS owned, AWS managed, customer managed keys, Envelope encryption, Key policies, Key rotation, Default encryption for EBS and S3, Encryption in transit with TLS, CloudHSM.

Mini project: Create one customer managed key whose key policy allows only a specific role to decrypt. Encrypt an S3 bucket with it, upload a file as that role, then show that your admin user cannot read it without kms:Decrypt. A single key costs a small monthly fee, so schedule its deletion (7-day minimum) right after the lab and delete the bucket.

Self-check: Explain envelope encryption in three sentences and why it is used instead of sending all your data to KMS.

Resources:
- [AWS KMS documentation](https://docs.aws.amazon.com/kms/) (AWS)
- [AWS KMS concepts](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) (AWS)

### Secrets Manager and Parameter Store

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/secrets-management

Store database passwords, API keys and configuration securely, rotate them automatically and inject them into apps without hardcoding.

Hardcoded passwords in code, Docker images or Terraform files are among the most common findings in security reviews. AWS gives you two managed places to keep them. Azure Key Vault and Google Secret Manager are the equivalents.

#### AWS Secrets Manager
- Stores secrets encrypted with KMS, with fine-grained IAM access.
- **Automatic rotation** using Lambda, with built-in support for RDS, Aurora and Redshift credentials.
- Cross-region replication for DR.
- Priced per secret per month plus API calls.

#### SSM Parameter Store
- Hierarchical parameters (/myapp/prod/db_host) as String, StringList or **SecureString** (KMS-encrypted).
- **Standard parameters are free**, which makes it ideal for configuration and simple secrets in labs.
- No built-in rotation.

#### Getting secrets into apps
- **ECS**: reference secrets in the task definition; they are injected as environment variables at start.
- **Lambda**: use the Parameters and Secrets Lambda Extension or the SDK, and cache values.
- **EKS**: the Secrets Store CSI Driver or External Secrets Operator.
- **CI/CD**: fetch at deploy time with the pipeline's role, never echo them in logs.

#### Pitfalls
- Plain-text secrets in Lambda environment variables visible in the console.
- Granting secretsmanager:GetSecretValue on all secrets instead of specific ARNs or paths.
- Rotation that updates the database password but not the running app connection pool.

You are ready to move on when your app reads its database password from Secrets Manager or Parameter Store at runtime and nothing secret is left in your Git history.

Key concepts: Secrets Manager, Automatic rotation, Parameter Store SecureString, Parameter hierarchies, Injecting secrets into ECS and Lambda, External Secrets for Kubernetes.

Mini project: Move every config value and secret from your serverless or container project into Parameter Store (free standard SecureString parameters) under /notes-app/dev/, grant the app role read access to that path only, and remove all secrets from code and environment variables. Delete the parameters when you tear down the app.

Self-check: When would you pay for Secrets Manager instead of using free Parameter Store SecureStrings?

Resources:
- [AWS Secrets Manager documentation](https://docs.aws.amazon.com/secretsmanager/) (AWS)
- [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html) (AWS)

### GuardDuty, Security Hub and Inspector

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/threat-detection

Detect threats and misconfigurations continuously with GuardDuty, aggregate findings in Security Hub and scan workloads with Inspector.

Preventive controls will eventually miss something. Detective services watch your accounts continuously and tell you when something looks wrong. Microsoft Defender for Cloud and Google Security Command Center are the equivalents.

#### Amazon GuardDuty
- Analyzes CloudTrail, VPC Flow Logs and DNS logs using threat intelligence and machine learning, with no agents to install.
- Finds things like crypto-mining instances, access from known malicious IPs, credentials used from unusual locations and disabled logging.
- Optional protection plans for S3, EKS, RDS, Lambda and malware scanning.
- Enable it in **every region**, organization-wide, with a delegated admin account.

#### AWS Security Hub
- Aggregates findings from GuardDuty, Inspector, Macie, Config and partner tools into one place.
- Runs **security standards** such as AWS Foundational Security Best Practices and CIS AWS Foundations, giving you a score and failed controls.
- Send findings to EventBridge for automated response (isolate an instance, notify Slack).

#### Amazon Inspector
Scans EC2 instances, ECR container images and Lambda functions for known software vulnerabilities (CVEs) and unintended network exposure.

#### Also know
**Amazon Macie** discovers sensitive data such as personal information in S3. **IAM Access Analyzer** finds resources shared outside your organization.

#### Pitfalls
- Enabling GuardDuty in only one region.
- Turning everything on and never triaging findings.
- Forgetting these services have costs after their free trial periods.

You are ready to move on when you can enable GuardDuty and Security Hub, generate sample findings, and route high-severity ones to your email through EventBridge and SNS.

Key concepts: GuardDuty findings, GuardDuty protection plans, Security Hub standards, Amazon Inspector, Amazon Macie, Automated response with EventBridge, Delegated administrator.

Mini project: Enable GuardDuty and Security Hub on their free trials, generate GuardDuty sample findings, and create an EventBridge rule that emails you for high-severity findings. Review the top five failed Security Hub controls and fix two. Disable both services before the trial ends unless you choose to pay.

Self-check: What is the difference between GuardDuty and Security Hub, and why do you usually want both?

Resources:
- [Amazon GuardDuty documentation](https://docs.aws.amazon.com/guardduty/) (AWS)
- [AWS Security Hub documentation](https://docs.aws.amazon.com/securityhub/) (AWS)
- [Amazon Inspector documentation](https://docs.aws.amazon.com/inspector/) (AWS)

### Edge Protection with WAF and Shield

recommended · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/waf-shield

Block common web attacks, bots and abusive traffic with AWS WAF rules and rate limiting, and understand DDoS protection with Shield.

Public endpoints are attacked constantly by bots, scanners and occasional DDoS floods. AWS provides protection at the edge so bad traffic never reaches your app. Azure Web Application Firewall with Front Door and Google Cloud Armor are the equivalents.

#### AWS WAF
- Attach a **web ACL** to CloudFront, an ALB, API Gateway, AppSync or Cognito.
- **Managed rule groups** from AWS cover the OWASP Top 10 style attacks (SQL injection, cross-site scripting), known bad inputs and IP reputation lists.
- **Rate-based rules** limit requests per IP, essential for login and OTP endpoints that attackers abuse for SMS pumping.
- **Custom rules** on headers, paths, query strings and geography.
- **Bot Control** and CAPTCHA or challenge actions for automated traffic.
- Start rules in **count mode**, check logs for false positives, then switch to block.

#### AWS Shield
- **Shield Standard** is free and automatic for all customers, protecting against common network and transport layer DDoS attacks.
- **Shield Advanced** is a paid subscription with application-layer DDoS mitigation, a response team and cost protection for scaling during attacks.

#### Defense in depth at the edge
CloudFront in front of origins, origins locked to accept traffic only from CloudFront, WAF on the distribution, and rate limits on sensitive endpoints.

#### Pitfalls
- Blocking mode on day one, breaking legitimate users.
- WAF on the ALB while attackers hit the origin directly by IP.

You are ready to move on when you can attach a web ACL with managed rules and a rate limit to an ALB or CloudFront, and prove the limit blocks a flood of requests.

Key concepts: Web ACLs, Managed rule groups, Rate-based rules, Count mode and WAF logs, Bot Control, Shield Standard vs Advanced, OWASP Top 10.

Mini project: Attach a WAF web ACL with the AWS core rule set and a rate-based rule of 100 requests per 5 minutes to your CloudFront distribution or API. Use a loop of curl requests to trigger the block and view it in WAF logs. WAF bills per web ACL and rule monthly, so delete the web ACL the same day.

Self-check: Why should you run new WAF rules in count mode first?

Resources:
- [AWS WAF, Shield and Firewall Manager documentation](https://docs.aws.amazon.com/waf/) (AWS)
- [OWASP Top 10](https://owasp.org/www-project-top-ten/) (OWASP)

## Reliability, Disaster Recovery and Cost Optimization

Design systems that survive failures, recover from disasters within agreed targets, and cost no more than they should.

### The AWS Well-Architected Framework

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/well-architected

Use the six pillars of the Well-Architected Framework to review designs and explain trade-offs in interviews and design reviews.

The **AWS Well-Architected Framework** is AWS's collection of best practices for building in the cloud. It is the backbone of the Solutions Architect exams and a common structure for system design answers. Azure and Google Cloud publish their own well-architected frameworks with very similar pillars.

#### The six pillars
- **Operational Excellence**: run and improve systems through automation, IaC, runbooks and learning from incidents.
- **Security**: identity, detection, infrastructure protection, data protection and incident response.
- **Reliability**: recover from failures, scale to meet demand, and test recovery.
- **Performance Efficiency**: choose the right resource types and keep evaluating new options.
- **Cost Optimization**: avoid unnecessary spend and understand where money goes.
- **Sustainability**: minimize the environmental impact of workloads, for example with Graviton and right-sizing.

#### Design principles worth memorizing
- Stop guessing capacity; scale automatically.
- Test systems at production scale.
- Automate with architecture experimentation in mind.
- Make frequent, small, reversible changes.
- Anticipate failure and practise it (game days).

#### The Well-Architected Tool
A free console tool that walks you through questions per pillar for a workload, records risks and produces an improvement plan. **Lenses** add guidance for serverless, SaaS, data analytics and more.

#### Pitfalls
- Treating the framework as a checklist to finish rather than a set of trade-offs.
- Optimizing one pillar (cost) while silently hurting another (reliability).

You are ready to move on when you can review one of your own projects against all six pillars and list the top three risks with fixes.

Key concepts: Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, Sustainability, Well-Architected Tool and lenses.

Mini project: Run a Well-Architected review in the free Well-Architected Tool for your serverless notes API or container project. Export the report, pick the three highest risks and fix at least one in code. The tool itself is free; no extra resources are needed.

Self-check: Give one example where improving cost optimization could hurt reliability, and how you would balance them.

Resources:
- [AWS Well-Architected](https://aws.amazon.com/architecture/well-architected/) (AWS)
- [AWS Well-Architected Framework documentation](https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html) (AWS)
- [AWS Architecture Center](https://aws.amazon.com/architecture/) (AWS)

### High Availability and Fault Tolerance

core · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/high-availability

Design multi-AZ systems without single points of failure, with health checks, timeouts, retries and graceful degradation.

Everything fails eventually: instances, disks, AZs, even whole services. Highly available systems keep working anyway.

#### Remove single points of failure
- Run at least two of everything across **two or three AZs**: instances in an ASG, ECS tasks, NAT Gateways for critical paths.
- Use **Multi-AZ** RDS or Aurora, and DynamoDB which is multi-AZ by default.
- Keep app servers **stateless**: sessions in ElastiCache or DynamoDB, files in S3.
- Prefer managed regional services (S3, SQS, Lambda) that are already spread across AZs.

#### Availability math
Availability is often expressed in nines: 99.9 percent allows about 8.8 hours of downtime a year; 99.99 percent about 53 minutes. Components in series multiply: two 99.9 percent dependencies give roughly 99.8 percent. Redundant components in parallel improve it.

#### Resilience patterns
- **Health checks** at the load balancer and Route 53.
- **Timeouts** on every network call, and **retries with exponential backoff and jitter**.
- **Circuit breakers** to stop hammering a failing dependency.
- **Graceful degradation**: show cached course listings if recommendations are down.
- **Static stability**: keep working even if the control plane (for example, the ability to launch new instances) is impaired.
- **Chaos engineering** with AWS Fault Injection Service to test all of the above.

#### Multi-region
Only needed for strict uptime or regulatory goals; it adds data replication, DNS failover and much more cost and complexity.

#### Pitfalls
- Two instances in the same AZ called "high availability".
- Retries without backoff, turning a small blip into a self-inflicted outage.

You are ready to move on when you can kill an instance or AZ subnet in your lab and show that users see no errors.

Key concepts: Multi-AZ design, Stateless application tiers, Availability nines and SLAs, Timeouts, retries, backoff and jitter, Circuit breakers, Graceful degradation, Static stability, AWS Fault Injection Service.

Mini project: Using your Terraform or CDK code, deploy two free-tier instances in an ASG across two AZs behind an ALB, run a curl loop against it, then terminate one instance and later block one subnet with a NACL. Record any errors users would see. Keep the session short and destroy everything with one command at the end.

Self-check: Your app depends on three services, each with 99.9 percent availability, called in series. What is the rough combined availability?

Resources:
- [Reliability Pillar](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/welcome.html) (AWS)
- [Timeouts, retries and backoff with jitter](https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/) (AWS)
- [Amazon Builders' Library](https://aws.amazon.com/builders-library/) (AWS)

### Backups and Disaster Recovery

core · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/backup-dr

Define RPO and RTO, choose a DR strategy from backup-and-restore to multi-site active-active, and centralize backups with AWS Backup.

High availability handles small failures. **Disaster recovery (DR)** handles big ones: a region outage, a ransomware attack, or someone running a delete script against production.

#### RPO and RTO
- **RPO (Recovery Point Objective)**: how much data you can afford to lose, measured in time. RPO of 1 hour means backups at least hourly.
- **RTO (Recovery Time Objective)**: how long you can be down before recovery.
- The business sets these; tighter targets cost more.

#### The four DR strategies (cheapest to most expensive)
1. **Backup and restore**: backups copied to another region; rebuild everything with IaC after a disaster. RTO in hours.
2. **Pilot light**: core data replicated live (for example, an Aurora Global Database replica in Hyderabad), compute off until needed.
3. **Warm standby**: a scaled-down but running copy in the second region.
4. **Multi-site active-active**: full capacity in both regions, near-zero RTO and RPO, highest cost.

#### AWS Backup
- Central **backup plans** for EBS, RDS, Aurora, DynamoDB, EFS, S3 and more, selected by tags.
- **Cross-region and cross-account copies** protect against regional failure and compromised accounts.
- **Vault Lock** makes backups immutable, a strong defense against ransomware.

#### Test your restores
A backup you have never restored is a hope, not a plan. Schedule restore tests and measure how long they take against your RTO. Azure Site Recovery and Azure Backup, and Google Backup and DR, are the equivalents.

#### Pitfalls
- Backups in the same account an attacker has compromised.
- IaC that cannot actually rebuild the environment in another region (hardcoded AMI IDs, region names).

You are ready to move on when you can pick a DR strategy for a given RPO/RTO and budget, and have restored a real backup in a second region.

Key concepts: RPO and RTO, Backup and restore, Pilot light, Warm standby, Multi-site active-active, AWS Backup plans and vaults, Cross-region and cross-account copies, Restore testing.

Mini project: Create an AWS Backup plan that backs up a tagged DynamoDB table daily and copies it to ap-south-2 (Hyderabad). Trigger an on-demand backup, restore it in Hyderabad and time the restore. Keep the table tiny to stay in free tier, then delete the restored table, recovery points and plan.

Self-check: A payments startup needs RPO under 1 minute and RTO under 15 minutes for its database. Which DR strategy fits, and what AWS feature would you use?

Resources:
- [AWS Backup documentation](https://docs.aws.amazon.com/aws-backup/) (AWS)
- [Disaster Recovery of Workloads on AWS (whitepaper)](https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-workloads-on-aws.html) (AWS)

### FinOps Basics: Visibility and Cost Allocation

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/finops-basics

Understand where cloud money goes with Cost Explorer, tags, cost allocation and unit economics, and build a culture of cost ownership.

**FinOps** is the practice of bringing financial accountability to cloud spending, so engineering, finance and product teams make cost-aware decisions together. Indian startups watching their runway care about this a lot, and cost skills make you stand out.

#### The FinOps lifecycle
- **Inform**: make costs visible and allocate them to teams, products and environments.
- **Optimize**: reduce waste and use the right pricing models.
- **Operate**: build ongoing processes, budgets and accountability.

#### Visibility tools on AWS
- **Cost Explorer**: spend by service, account, region, tag and usage type, with forecasts.
- **Cost allocation tags**: activate tags like team, project and environment so they appear in billing data. Enforce them with tag policies and IaC default tags.
- **Cost and Usage Reports (CUR 2.0 / Data Exports)**: line-item detail queried with Athena or QuickSight.
- **Budgets** per team or project, plus **Cost Anomaly Detection**.
- Azure Cost Management and Google Cloud Billing reports are the equivalents.

#### Unit economics
Total spend alone is not useful. Track **cost per unit of value**: cost per active user, per order, per API call. If cost per order falls as traffic grows, spend growth may be healthy.

#### Common waste
- Idle resources (stopped instances with EBS volumes, unattached EIPs, old snapshots).
- Oversized instances and databases.
- Dev environments running all night and weekend.
- Data transfer through NAT Gateways that could use VPC endpoints.

#### Pitfalls
- Untagged resources making 40 percent of the bill "unknown".
- Optimizing tiny line items while the top three services dominate.

You are ready to move on when you can break down an account's monthly spend by service and tag and name the top three savings opportunities.

Key concepts: Inform, optimize, operate, Cost Explorer, Cost allocation tags, Tag policies, Cost and Usage Reports / Data Exports, Unit economics, Waste detection.

Mini project: Activate cost allocation tags for project and environment, make sure all your IaC resources carry them, and after a week build a Cost Explorer report grouped by tag. Write a one-page FinOps note on where your learning account's money went. Analysis only; keep every lab within free tier.

Self-check: Why is 'cost per order' more useful to a business than total monthly AWS spend?

Resources:
- [What is FinOps?](https://www.finops.org/introduction/what-is-finops/) (FinOps Foundation)
- [AWS Cost Explorer](https://aws.amazon.com/aws-cost-management/aws-cost-explorer/) (AWS)
- [Cost Optimization Pillar](https://docs.aws.amazon.com/wellarchitected/latest/cost-optimization-pillar/welcome.html) (AWS)

### Cost Optimization: Rightsizing, Savings Plans and Spot

core · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cost-optimization

Cut cloud bills with rightsizing, Graviton, Savings Plans and Reserved Instances, Spot capacity, storage tiering and scheduling.

Once you know where the money goes, these levers bring it down. Apply them roughly in this order: remove waste, rightsize, then commit.

#### 1. Rightsizing
- **AWS Compute Optimizer** recommends better instance types, EBS volumes, Lambda memory settings and ECS task sizes from real usage.
- Move to **Graviton** (ARM) instances for typically better price-performance.
- Switch EBS gp2 volumes to gp3.
- Tune Lambda memory with Lambda Power Tuning; sometimes more memory is cheaper because it runs faster.

#### 2. Scheduling and elasticity
- Stop dev and test environments outside working hours (Instance Scheduler or a simple EventBridge plus Lambda job).
- Use Auto Scaling so capacity follows demand.

#### 3. Commitment discounts
- **Compute Savings Plans**: commit to a rupee-per-hour equivalent of compute spend for 1 or 3 years; applies across EC2, Fargate and Lambda, any region or family.
- **EC2 Instance Savings Plans** and **Reserved Instances**: bigger discounts but less flexible. RDS, ElastiCache and OpenSearch use reserved nodes.
- Commit only to your steady baseline, after rightsizing, and check coverage and utilization monthly.

#### 4. Spot
Up to 90 percent off for interruption-tolerant work: CI runners, batch jobs, stateless web tiers mixed with On-Demand in an ASG, Fargate Spot and Karpenter on EKS.

#### 5. Storage and data transfer
S3 lifecycle rules and Intelligent-Tiering, deleting old snapshots, log retention policies, VPC endpoints instead of NAT for S3 and DynamoDB, and CloudFront to reduce origin data transfer.

#### Pitfalls
- Buying a 3-year commitment before rightsizing.
- Running stateful databases on Spot.

You are ready to move on when you can take a sample monthly bill and propose a prioritized savings plan with estimated percentages.

Key concepts: Compute Optimizer, Graviton migration, Scheduling non-prod environments, Compute Savings Plans, Reserved Instances and reserved nodes, Spot Instances and Fargate Spot, Storage tiering, Data transfer optimization.

Mini project: Take the AWS Pricing Calculator and estimate a sample architecture (ALB, 4 m7i.large instances, RDS Multi-AZ, NAT Gateway, 1 TB S3) in Mumbai. Then produce an optimized version using Graviton, Savings Plans, Spot for half the fleet, VPC endpoints and S3 tiering, and present the before and after. Calculator only, no resources created.

Self-check: Why should you rightsize before buying Savings Plans, and which type of Savings Plan gives the most flexibility?

Resources:
- [Savings Plans](https://aws.amazon.com/savingsplans/) (AWS)
- [AWS Compute Optimizer](https://aws.amazon.com/compute-optimizer/) (AWS)
- [AWS Pricing Calculator](https://calculator.aws/) (AWS)

## Certifications, Portfolio and Interviews

Turn your skills into a job: the right AWS certifications, portfolio projects that prove hands-on ability, and cloud interview preparation.

### AWS Certified Cloud Practitioner

optional · beginner · about 15 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloud-practitioner

Prepare for the entry-level AWS certification that validates cloud concepts, core services, security, pricing and support.

The **AWS Certified Cloud Practitioner (CLF-C02)** is the foundational AWS exam. It is optional for engineers but useful as a first milestone, and some Indian service companies and campus programs value it on a fresher resume. Azure AZ-900 and Google Cloud Digital Leader are the equivalents.

#### What it covers
- **Cloud concepts**: benefits of the cloud, Well-Architected pillars, migration strategies.
- **Security and compliance**: shared responsibility, IAM, security services.
- **Cloud technology and services**: compute, storage, databases, networking, global infrastructure.
- **Billing, pricing and support**: pricing models, Budgets, Cost Explorer, support plans.

#### How to prepare
- The free **Cloud Practitioner Essentials** course and the official exam prep on AWS Skill Builder.
- Read the official exam guide and note every service it lists.
- Take the official practice question set, then review every wrong answer against the documentation.
- If you have completed the earlier sections of this track, you already know most of the material.

#### Exam tips
- 65 questions, 90 minutes, multiple choice and multiple response. Check the current fee and format on the certification page before booking.
- Look out for AWS **certification discount vouchers** from AWS events, training programs and campus initiatives.
- Online proctored exams need a quiet room, a clean desk and a stable connection.

#### Pitfalls
- Collecting certifications without hands-on projects. Interviewers check both.
- Memorizing dumps, which violates exam policy and teaches nothing.

You are ready to move on when you consistently score well above the passing mark on official practice questions and can explain every answer.

Key concepts: Exam guide domains, Cloud Practitioner Essentials course, Pricing and support plans, Official practice questions, Online vs test-centre exam, AZ-900 / Cloud Digital Leader.

Mini project: Build a one-page study map that links every service in the exam guide to a lab you have done in this track. For any gaps, do a short free-tier lab and tear it down. Then take the official free practice set.

Self-check: Name the four exam domains and one service from each that you have used hands-on.

Resources:
- [AWS Certified Cloud Practitioner](https://aws.amazon.com/certification/certified-cloud-practitioner/) (AWS)
- [AWS Skill Builder](https://skillbuilder.aws/) (AWS)
- [AWS Certification](https://aws.amazon.com/certification/) (AWS)

### AWS Certified Solutions Architect Associate

recommended · intermediate · about 40 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/solutions-architect-associate

Prepare for the most requested AWS certification in job postings by mastering resilient, secure, performant and cost-optimized design.

The **AWS Certified Solutions Architect Associate (SAA-C03)** is the certification most often listed in Indian cloud job descriptions. It tests whether you can choose and combine services to meet requirements, which is exactly what this track teaches.

#### Exam domains
- **Design secure architectures**: IAM, KMS, VPC security, data protection.
- **Design resilient architectures**: multi-AZ, decoupling with SQS and SNS, DR strategies.
- **Design high-performing architectures**: storage and database selection, caching, scaling, networking.
- **Design cost-optimized architectures**: pricing models, storage tiers, right services for the workload.

#### How to prepare
- Finish the VPC, compute, storage, database, serverless, security and reliability sections with hands-on labs.
- Use the free official exam prep and practice question set on Skill Builder.
- For each practice question, write **why each wrong option is wrong**. Questions are scenario-based with several plausible answers.
- Learn the keywords: "most cost-effective", "least operational overhead", "highly available" each point to different answers.

#### Scenario patterns to master
- Decoupling a monolith with SQS.
- S3 storage class and lifecycle choices.
- Multi-AZ RDS vs read replicas vs Aurora Global Database.
- VPC endpoints vs NAT for private access.
- Choosing between EC2, ECS, Lambda and Fargate.

#### After the associate
Next steps include the **Developer Associate**, **SysOps Administrator Associate** (being refreshed as CloudOps Engineer), **Security Specialty** or **Solutions Architect Professional**. Azure AZ-104 and Google Associate Cloud Engineer are the equivalents on other clouds.

#### Pitfalls
- Booking the exam before doing labs; scenario questions punish pure memorization.

You are ready to move on when you can answer scenario questions by naming the requirement keyword and eliminating options with clear reasons.

Key concepts: Secure architectures domain, Resilient architectures domain, High-performing architectures domain, Cost-optimized architectures domain, Scenario keyword analysis, Official practice questions, Next certifications.

Mini project: Create a personal 'decision table' with 30 common SAA scenarios (requirement, chosen service, why the alternatives lose). For five of them, build a quick free-tier lab to confirm the behaviour, then tear each lab down immediately.

Self-check: A question asks for the 'least operational overhead' way to run a container that handles occasional HTTP requests. Which services would you consider and which would you pick?

Resources:
- [AWS Certified Solutions Architect Associate](https://aws.amazon.com/certification/certified-solutions-architect-associate/) (AWS)
- [AWS Skill Builder](https://skillbuilder.aws/) (AWS)
- [AWS Well-Architected](https://aws.amazon.com/architecture/well-architected/) (AWS)

### Portfolio Projects That Get Cloud Interviews

core · intermediate · about 40 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/portfolio-projects

Build three to four documented, IaC-driven cloud projects with diagrams, cost notes and CI/CD that prove you can do the job.

Certifications get you past filters; projects get you hired. Freshers with a strong GitHub of real cloud projects regularly beat candidates with more certificates and nothing to show.

#### What makes a cloud project stand out
- Built entirely with **Terraform or CDK**, deployable and destroyable in one command.
- **CI/CD** with GitHub Actions using OIDC, not stored keys.
- An **architecture diagram**, a README with setup steps, design decisions and trade-offs.
- **Security** basics visible: least-privilege roles, private subnets, encryption, no secrets in Git.
- **Observability**: dashboards and alarms.
- A **cost section**: what it costs per month and how you kept it in free tier.

#### Project ideas, in increasing difficulty
1. **Cloud Resume Challenge**: static site on S3 and CloudFront, visitor counter with API Gateway, Lambda and DynamoDB, all in IaC with CI/CD.
2. **Serverless URL shortener or event app** with Cognito auth, SQS processing and X-Ray tracing.
3. **Three-tier containerized app**: ECS Fargate (or EKS), ALB, RDS in private subnets, Secrets Manager, blue/green deploys.
4. **Platform project**: multi-account setup with Organizations, SCPs, centralized CloudTrail, GuardDuty and a cost dashboard.

#### Show your work
Write a short blog post (Hashnode, Medium, dev.to) for each project, post on LinkedIn, and record a two-minute demo video before tearing it down. Screenshots and recordings let you show a project without paying to keep it running.

#### Pitfalls
- Tutorials copied line for line with no changes or explanation.
- Leaving projects running for months and receiving a large bill.

You are ready to move on when you have at least three projects on GitHub that a stranger could deploy from your README, each with a diagram and a cost note.

Key concepts: Cloud Resume Challenge, Serverless application project, Containerized three-tier project, Multi-account platform project, Architecture diagrams, README and design decisions, Cost notes, Blog posts and demo videos.

Mini project: Complete the Cloud Resume Challenge end to end in Terraform or CDK with GitHub Actions deployment, write a blog post about what broke and how you fixed it, record a demo, and confirm the monthly cost stays within free tier. Destroy any non-free parts once you have recorded the demo.

Self-check: If an interviewer opens one of your repos, what five things should they find within the first minute?

Resources:
- [The Cloud Resume Challenge](https://cloudresumechallenge.dev/) (Forrest Brazeal)
- [AWS Workshops](https://workshops.aws/) (AWS)
- [Serverless Land patterns](https://serverlessland.com/patterns) (AWS)

### Cloud Engineer Interview Preparation

core · intermediate · about 15 h · https://www.internhack.in/roadmaps/tracks/cloud-engineer/cloud-interviews

Prepare for cloud interviews: fundamentals questions, troubleshooting scenarios, architecture design rounds and behavioural questions.

Cloud engineer interviews in India (product startups, service companies, GCCs and AWS partners) usually combine fundamentals, troubleshooting, design and a project deep dive.

#### Fundamentals round
Expect questions such as:
- Security group vs NACL; public vs private subnet; what a NAT Gateway does.
- IAM user vs role; how policy evaluation works; how an EC2 instance gets credentials.
- S3 storage classes; EBS vs EFS vs S3; Multi-AZ vs read replica.
- Linux basics, DNS resolution, what happens when you type a URL.

#### Troubleshooting scenarios
"The website is down" or "the instance cannot reach the internet". Walk through layers out loud: DNS, load balancer health checks, security groups, NACLs, route tables, the service itself, logs and metrics. Interviewers grade your method more than the final answer.

#### Architecture design round
Design a URL shortener, a photo upload service or an exam results portal that spikes at 10 am. Use a structure:
1. Clarify requirements and numbers (users, requests per second, data size).
2. Draw the high-level design with managed services.
3. Cover scaling, availability (multi-AZ), security, monitoring and cost.
4. Discuss trade-offs and alternatives (Lambda vs Fargate, RDS vs DynamoDB).

#### Project deep dive and behaviour
Be ready to explain every line of your portfolio projects: why you chose each service, what broke, what it costs. For Amazon and AWS roles, prepare STAR stories mapped to the **Leadership Principles**.

#### Pitfalls
- Listing services without explaining why.
- Claiming experience you cannot defend in follow-up questions.

You are ready when you can whiteboard a three-tier AWS architecture in 30 minutes, debug a connectivity scenario systematically, and tell three strong STAR stories.

Key concepts: Networking and IAM fundamentals questions, Troubleshooting walk-throughs, Architecture design framework, Trade-off discussions, Project deep dives, STAR behavioural answers, Amazon Leadership Principles.

Mini project: Write answers to 30 common cloud interview questions in your notes repo, record yourself solving two design problems (photo upload service, exam results portal) on a whiteboard in 30 minutes each, and do one mock interview with a friend. No cloud resources needed.

Self-check: An EC2 instance in a private subnet cannot download packages. Walk through, in order, everything you would check.

Resources:
- [AWS roadmap](https://roadmap.sh/aws) (roadmap.sh)
- [AWS Architecture Center](https://aws.amazon.com/architecture/) (AWS)
- [Amazon Leadership Principles](https://www.amazon.jobs/content/en/our-workplace/leadership-principles) (Amazon)
- [The Open Guide to AWS](https://github.com/open-guides/og-aws) (open-guides)

## Related

- [Career roadmaps](https://www.internhack.in/roadmaps)
