
Overview
This course is built to stop the circular search for what to study and where to find it. This is not a course I recorded once and walked away from. I improve it nearly every day using the real questions, recurring confusion, and hard parts learners discuss across the web, Reddit, Facebook, and LinkedIn.
When a topic keeps tripping people up, I bring that insight back into this course, into the lessons, examples, and explanations here on Udemy.
Deep Dive
Most exam-prep courses are snapshots. The instructor records a library, publishes it, and the material slowly drifts away from the questions learners are actually asking.
I treat this course more like maintained software. I continually look for patterns in public learner discussions: which concepts are being confused, which tradeoffs are difficult to recognize, where AWS terminology hides a simpler decision, and where people lose time bouncing among disconnected resources. Then I turn those patterns into clearer explanations, new scenarios, stronger analogies, and more focused practice.
That feedback loop reaches all the way into this tutorial. The structure, examples, questions, and guidance you see today can improve tomorrow. The goal is not to chase leaked exam questions or memorize trivia. It is to keep the course focused on durable reasoning skills and the places learners genuinely need help.
Exam Relevance
The SAA-C03 exam rewards choosing the best architecture under a set of constraints, not just recalling service definitions. By tracking recurring learner questions and updating the course around them, I can keep emphasizing the decisions candidates find hardest: cost versus performance, resilience versus simplicity, security boundaries, operational effort, and managed services versus self-management.
Your study plan stays organized around high-value decisions instead of becoming another pile of notes, videos, and browser tabs.
Real-World Analogy
This course works more like a navigation system with live traffic reports. Learners’ real questions reveal the bottlenecks. I use those signals to update the route, add clearer signs, and guide you toward the next useful lesson, so you spend less time circling and more time moving toward the exam.
Overview
Before we explore individual AWS services, it's helpful to see a mental map of how they work together. Seeing the full architecture first gives each new service a purpose: you’ll understand where it fits, what problem it solves, and why you might need it.
We’ll follow a single user request through AWS: Route 53 resolves the address, CloudFront acts as the front door, S3 serves static content, a load-balanced compute layer handles dynamic requests, and a database stores structured data. Along the way, you’ll see a recurring theme: AWS provides managed services, so designing a solution means choosing how those services work together.
Deep Dive
The request path
Route 53 — DNS. It's the "address" / "post office box" lookup that gets a user's request pointed at AWS in the first place.
CloudFront — the front door. It receives the request and decides what the user actually needs.
S3 — storage for content that's already made: video, images, text, anything static. A video that's "been sitting there for three weeks" is pulled straight from S3 through CloudFront with no lag or buffering, because there's no computation involved. S3 sits outside the VPC and outside the compute layer entirely.
When compute is required
Some requests aren't static — e.g., changing a password. That requires actual computation: conditional logic, checking that two password entries match, and so on.
A load balancer routes the request to an Availability Zone (e.g., AZ A or AZ B) to run that computation. The user doesn't need to know or care which AZ they land on — the load balancer handles that.
Once the computation completes (e.g., the password is set), the result may be stored in a database.
The database layer
The database layer holds structured information — the kind you'd store in a SQL/relational database.
Key distinction: RDS is a Relational Database Service, not "a relational database." AWS isn't handing you a database — it's managing one for you.
The recurring theme
The "Amazon Web Services" name is deliberate. Nearly everything in AWS is a managed service — AWS runs it, manages it, and hands you the simplified result, even for complex underlying systems.
The four-layer shape introduced here — route in → compute → storage → database — is the mental model the rest of the course builds on.
Exam Relevance
Don’t worry if the exam relevance below doesn’t make sense yet—we’ll explore each topic in detail later. For now, it’s an example of how each lesson connects to the exam.
SAA-C03 repeatedly tests whether you can separate the static/edge path (Route 53 → CloudFront → S3, no compute involved) from the dynamic/compute path (load balancer → EC2/Auto Scaling across Availability Zones → database). Expect questions asking you to pick the right service for a scenario based on whether the content is static or requires processing.
Common distractors:
Treating S3 as something that runs inside a VPC or requires compute — it doesn't.
Describing RDS as "a relational database" rather than a managed service (no patching/OS/failover management by you) — the exam leans on this service framing.
Confusing DNS resolution (Route 53) with actual traffic routing/load balancing (ELB/ALB) — they're different layers in this diagram.
Real-World Analogy
Route 53 is the address lookup that tells you which building to go to; CloudFront is the receptionist at the front door deciding what you need; S3 is the warehouse shelf holding items that are already packaged and ready to hand over; the compute layer is the back-office staff who do custom work on request (like verifying a new password); and the database is the filing cabinet where the results of that work get recorded.
Overview
You don't need to be a developer. You don't need years of IT experience. You don't need to have a business degree.
This course starts from zero. If you've never opened a terminal, you'll open one. If "the cloud" has always sounded like a marketing term rather than something real, you'll spin up your own resources and watch them run.
Some hands-on exercises may create AWS charges separate from your Udemy course purchase. Depending on how much you build and how long you leave resources running, expect to spend approximately $5 to $15 per month. You will also learn how to monitor costs and shut down resources you are no longer using.
Deep Dive
Every concept is introduced before it's assumed. I don't expect you to already speak the jargon of networking or databases or security. I teach it as I go, in the order you'll actually need it.
What you will need is the willingness to learn the big picture. The holistic view. You will learn to think abstractly and to work with constraints, tradeoffs, and budgets.
Exam Relevance
No programming prerequisite is tested, but the exam assumes you can reason about requirements, tradeoffs, and AWS service boundaries. Focus on why a design fits rather than memorizing clicks.
Real-World Analogy
You do not need to build an engine to earn a driver's license; you need to understand the controls, road rules, and safe choices. This course teaches the AWS equivalent from the ground up.
Overview
Each lesson begins with a short overview, followed by a deeper explanation of the concept, its tradeoffs, and its relevance to AWS architecture. Some lectures include a video; others present the material as a written lesson.
Follow the sections in order if you’re new to AWS. Earlier lessons introduce the vocabulary and concepts used later. If you already have experience, use the course curriculum to revisit specific topics.
Deep Dive
How the lessons are organized. The Overview introduces the main idea. The Deep Dive explains how it works and when to use it. Exam Relevance connects the concept to architectural decisions, and the Real-World Analogy offers a familiar way to think about it. The depth and format vary by lesson.
How to study. Watch the video when one is included, then work through the accompanying explanation. Pause to try the practical examples, and use your own notes to capture unfamiliar terms and important tradeoffs. Revisit lessons when you need a refresher, and ask questions in the course Q&A when something is unclear.
Put the concepts into practice. Follow the AWS console and CLI examples when you can. Before running commands, understand what they create or change. Set budget alerts and remove resources you no longer need to avoid unnecessary AWS charges.
What you’re studying for. The SAA-C03 exam focuses on designing secure, resilient, high-performing, and cost-optimized architectures. Scenario questions often include a qualifier such as “most cost-effective,” “least operational overhead,” or “highest availability.” Practice identifying that requirement, then comparing services against it. As you study each lesson, ask: What requirement would make this service a good choice, and what would make another option better?
Exam Relevance
You don’t need to understand every exam connection yet—we’ll explore the topics in detail throughout the course. This section shows how each lesson supports your preparation.
Practice matching solutions to requirements rather than memorizing service names. Look for constraints involving cost, availability, performance, security, and operational effort.
Real-World Analogy
Think of the course as learning your way around a city. The overview shows where you’re going, the detailed explanation introduces the roads and intersections, and the practical examples let you try the route yourself. Revisit a lesson whenever you need to check the map.
Overview
An AWS account is a billing and security boundary. Secure the root user, use named identities for daily work, and understand your account’s Free Tier plan before launching resources.
Deep Dive
Sign up at aws.amazon.com and review the account plan, identity verification, payment, and support choices shown during registration. The account email identifies the root user, which has highly privileged access. Protect it with MFA and use it only for tasks that require root. Organization policies can constrain root actions in member accounts.
Free Tier terms depend on when you created the account and which plan you select. For new eligible accounts, AWS offers a Free plan lasting up to six months and up to $200 in credits, subject to the current terms. Older accounts can have different allowances. A Paid plan can incur charges beyond credits or free allowances. Do not assume every tutorial resource is free, and check AWS Free Tier before starting.
After signup, choose the appropriate Region for each workload in the console. Secure root with MFA, configure named access through IAM Identity Center where appropriate, grant only needed permissions, and set a budget alert. Budget alerts notify you; they do not automatically cap spending. Remove billable resources after labs, including storage and public IPv4 addresses that may outlive an EC2 instance.
Decision hook: separate AWS accounts under Organizations provide useful boundaries for production, development, and sandboxes. Consolidated billing can still group their charges. Choose account structure together with identity controls and guardrails.
Exam Relevance
Account signup steps are not a major architecture domain, but the exam assumes each account has one root user and that routine administration should move immediately to named, least-privileged identities.
Real-World Analogy
Creating an AWS account is opening a company headquarters: the founding deed establishes ownership, but employees should receive individual badges instead of sharing the deed and master key.
Overview
The root user can do anything, including delete the account, so you lock it away and almost never use it. Enable multi-factor authentication (MFA) on it immediately and delete any root access keys.
Deep Dive
Root has no permission boundaries — policies can't restrict it. So the goal is to make root nearly unusable by attackers and rarely needed by you.
Do these on day one:
Enable MFA on root. A virtual authenticator app or, better, a hardware security key. This blocks anyone who steals the root password.
Delete root access keys. Root should have no programmatic keys at all — check IAM > "My security credentials".
Create an IAM admin (or an Identity Center user) for daily work and stop signing in as root.
A handful of tasks require root: closing the account, changing the account name/email/support plan, changing tax settings, restoring an accidentally locked IAM policy, and registering as a seller. For everything else, use IAM.
Exam signal: questions about "securing the account" or "MFA best practice" expect: enable MFA on root, remove root access keys, and create least-privilege IAM users/roles. If an answer says "use the root account for daily administration," it's wrong.
Exam Relevance
The secure answer is to protect the root user with MFA, avoid access keys, and use it only for tasks that require root. Daily work belongs to federated or IAM identities with least privilege.
Real-World Analogy
The root user is the master key kept in a bank safe: add a second lock, never make copies for daily use, and take it out only for the few jobs that no ordinary staff badge can perform.
Overview
Sign in with your root account, then use the console search bar to open IAM — not IAM Identity Center — and find the Users page in the left navigation. This is the screen where you'll create a day-to-day user so you can stop signing in as root.
Deep Dive
Right after creating your account you only have the root user, and the sign-in page can be confusing. It asks for an account ID, an IAM user name, and a password you don't have yet — so choose "Sign in using root user email" instead. That IAM user name field is exactly what this and the next lesson set up.
IAM stands for Identity and Access Management. It's the service that controls who can sign in to your account and what they're allowed to do.
Finding it: the console search bar (top of every page) is the fastest way to get anywhere. Type IAM and you'll see two similar-looking results:
IAM — "Manage access to AWS resources." This is what you want.
IAM Identity Center — for centrally managing sign-in across multiple accounts and organizations. Skip it for a single account.
They look alike but are very different. Open plain IAM.
Getting to Users: in the left-hand navigation, click Users. A fresh account has no users here (or just the one you're about to make). This is where you'll create a user so you can do everyday work without the root account.
Exam signal: IAM is a global service — it isn't tied to a Region. Know the difference between IAM (identities and permissions inside one account) and IAM Identity Center (SSO/federation across many accounts). And remember the best practice this sets up: create an IAM user for daily work instead of using root.
Exam Relevance
IAM is global and governs authentication and authorization within an account. Distinguish it from IAM Identity Center, which federates sign-in across multiple accounts; daily work should use an IAM identity, not root.
Real-World Analogy
Root is the building owner who can do anything; IAM is the front-desk badge system that issues staff their own keycards. IAM Identity Center is the corporate system that manages badges across every branch at once.
Overview
Stop doing daily work as the root user. Create an IAM user with console access, then grant permissions by putting that user in a group that carries the AdministratorAccess policy — not by attaching policies to the user directly. From now on you sign in as the IAM user, not root.
Deep Dive
This is the "boring but required" setup that every other lesson builds on. You're moving off the root user and creating a normal admin identity for day-to-day work.
Create the user
Go to IAM > Users > Create user and give it a name (e.g. demo-user).
Check Provide user access to the AWS Management Console so the user can log in to the web console.
Set a password. For someone else, check Users must create a new password at next sign-in; for your own account you can set it directly.
Permissions come from a group, not the user A brand-new IAM user can do nothing — everything is implicitly denied until you explicitly allow it by attaching a policy. Rather than attaching policies to each user one by one (imagine doing that for 10 admins), you attach them once to a group and add users to it. Anyone in the group inherits its permissions.
Create group and give it a meaningful name (e.g. demo-admin-group).
Attach the AdministratorAccess managed policy. Expand it and you'll see the JSON: Effect: Allow, Action: "*", Resource: "*". The * wildcards mean every action on every resource — full access.
Create the group, then add your new user to it.
After creation
Every user (and every AWS resource) has an ARN — a unique identifier AWS uses to reference it. Note that the user's AdministratorAccess shows up as inherited from the group, not attached directly.
Set an account alias (IAM dashboard, right-hand side) so your sign-in URL uses a friendly name instead of the 12-digit account ID.
Copy your account ID, sign out of root, and sign back in as the IAM user using account ID + username + password. Do not use the email sign-in — that's the root user.
Exam signal: IAM is default-deny; access requires an explicit Allow. Manage human permissions through groups/policies, and use an admin IAM identity — never root — for daily tasks. At scale, AWS now recommends IAM Identity Center (federated SSO) over long-lived IAM users, but the group-based permission model here is the same idea you'll be tested on.
Exam Relevance
Expect questions on IAM fundamentals: new identities have no permissions (implicit deny) and need an explicit Allow; permissions are best managed through groups and policies rather than per user; and root is reserved for the few tasks that require it, not daily administration. Know that AdministratorAccess (Action *, Resource *) is unrestricted access, and that IAM Identity Center is AWS's recommended approach for managing human access across accounts.
Real-World Analogy
A group is like a job title. You don't cut a custom set of keys for each new hire — you give them the "Admin" title, and that title already opens every door. Add someone to the title and they inherit all the access; remove them and it's gone. The user is the person; the group is the role that actually carries the keys.
Overview
By default your IAM users can't see billing or budget information — only root can. Sign in as root one last time, turn on "IAM user and role access to Billing information," and your admin IAM user can view costs without you ever going back to root.
Deep Dive
Even an IAM user with AdministratorAccess is blocked from the Billing and Cost Management console until you flip one account-level switch. That switch lives on the root account, so this is one of the rare, legitimate reasons to sign in as root.
Turn it on
Sign in to the root account (use the MFA you set up earlier).
Click your account name (top-right) and choose Account.
Scroll to IAM user and role access to Billing information. It's Deactivated by default.
Choose Edit, check Activate IAM Access, and save.
Sign back out of root — you likely won't need it again for a long time.
Now IAM users and roles can open Billing, budgets, and Cost Explorer (subject to their own IAM permissions).
Why this exists: billing data is sensitive, so AWS gates it behind an account-wide toggle plus normal IAM permissions. Turning the toggle on doesn't grant billing access to everyone — it just lets IAM policies (like AdministratorAccess or a targeted billing policy) take effect. Without it, even an admin IAM user is denied billing no matter what their policy says.
Exam signal: if an IAM/admin user "can't see the bill" or "can't access Cost Explorer" despite having permissions, the fix is the root-level Activate IAM Access to Billing setting. Pair it with least-privilege billing policies rather than handing everyone AdministratorAccess.
Exam Relevance
Know that access to Billing and Cost Management requires two things: the account-level "IAM user and role access to Billing information" setting enabled by root, and appropriate IAM permissions on the user or role. A common troubleshooting scenario is an IAM user with valid permissions still being denied billing because that account setting is off.
Real-World Analogy
It's like the finance filing cabinet at a company. Having a manager title (admin permissions) isn't enough — the owner still has to flip the master switch that says "managers are allowed in the finance room" before any manager's badge will open the door.
Overview
Cost guardrails come before you build. AWS Budgets lets you set a spend or usage threshold and email you (or trigger an action) when you approach it, so a runaway resource never surprises you.
Deep Dive
Two related tools: billing alarms (a CloudWatch alarm on the EstimatedCharges metric) and AWS Budgets (richer, purpose-built). Budgets is the modern default — it supports cost budgets, usage budgets, and Free Tier usage alerts, with alerts at, say, 80% and 100% of a threshold.
Budgets can alert on actual or forecasted spend — forecasted warns you before the money is gone. For automated reactions (stop instances, apply an SCP), pair Budgets with Budget Actions.
Cost note: the first two budgets are free; additional budgets cost about $0.02/day each. Cheap insurance.
Decision hook: "get notified before overspending" → AWS Budgets (forecasted alert). "React automatically to overspend" → Budgets Actions. Cost Explorer is for analysis after the fact, not proactive alerts.
Exam Relevance
AWS Budgets and billing alarms notify you after thresholds are forecast or crossed; they do not normally stop resources automatically. Cost Anomaly Detection looks for unusual spend patterns rather than a fixed cap.
Real-World Analogy
A budget alert is a banking notification, not a declined-card limit: it tells you spending is high so you can act. Anomaly detection is the fraud monitor that flags a purchase unlike your normal pattern.
Overview
You don't need to memorize every click or CLI command to pass the exam. But a little hands-on builds a mental picture of how services connect, so the concepts and trade-offs actually stick. The early lessons are hands-on; later ones lean into theory.
Deep Dive
The goal here isn't to memorize the console. To pass the exam you don't need to know every button or terminal command — and you definitely don't need to recall that one setting lives top-left and another lives top-right.
So why touch the console at all? Because clicking through it once puts a visual model in your head. When you see a screen full of attributes and configuration — what's attached to what — you start to picture how the pieces fit together. That mental model is what lets you reason about the real questions later:
Why would you connect an EC2 instance to an SQS queue?
Why would an S3 bucket be wired to another service?
Where does something like SES fit in?
What does it cost, and what are the trade-offs?
Those "why" and "what's the trade-off" questions are the whole game. The hands-on foundation is what makes them make sense.
How this course is paced: the first several lessons are deliberately hands-on to build that foundation. As you progress, it shifts toward theory. The day you actually need a specific command or console location is the day you'll learn it — the concepts come first, and you'll still have a feel for the interface if you ever have to navigate it.
Exam Relevance
The SAA-C03 exam tests architectural judgment — choosing services, connecting them, and weighing cost and trade-offs — not console navigation or CLI syntax. Use the hands-on lessons to build intuition for how services fit together; that intuition is exactly what the scenario questions reward.
Real-World Analogy
It's like sitting in the driver's seat before studying the rules of the road. You don't need to rebuild the engine, but driving once makes the rules click — you can picture what they're describing instead of memorizing words on a page.
Overview
An EC2 instance is a virtual computer you rent by the second. It boots a real operating system you can log into and use like any other machine — except it lives in an AWS data center instead of on your desk.
Deep Dive
The one-sentence version: EC2 (Elastic Compute Cloud) gives you a full computer running in AWS. You pick its size, turn it on, and it runs until you turn it off.
Three choices define an instance:
AMI (Amazon Machine Image) — the disk image it boots from. This is the operating system and any pre-installed software. For this taste we'll use Amazon Linux, AWS's own free Linux.
Instance type — the hardware size, like t3.micro: how many virtual CPUs and how much memory. Small ones are cheap (and Free Tier eligible); large ones cost more.
Where it runs — a Region (a geographic location) and an Availability Zone (a data center inside that Region).
How you reach it: when it launches it can get a public IP address, which is how your laptop finds it across the internet. A security group — a virtual firewall — decides which traffic is allowed in. By default almost nothing is; we'll open exactly one door in the next lessons.
It's not magic, it's just a computer. Once it's running, connecting to it feels the same as sitting down at a second computer somewhere else. That's the whole point of this section — to prove that to you by doing it.
Cost note: a t3.micro (or t2.micro) is Free Tier eligible for new accounts, but an instance you leave running still burns hours. Always stop or terminate it when you're done. We'll do that at the end.
Exam Relevance
Know the difference between an AMI (the boot image/OS), an instance type (the CPU/memory sizing), and the instance itself (a running copy). The exam also expects you to know that a security group is a stateful virtual firewall attached to the instance, and that instances live in a specific Region and Availability Zone.
Real-World Analogy
Renting an EC2 instance is like renting a computer in a data center you'll never physically visit: you choose the model and how powerful it is, someone racks it and powers it on for you, and you use it remotely. When you're finished, you hand it back and stop paying.
Overview
This lesson walks through launching a free-tier Amazon Linux EC2 instance from the console, connecting to it over SSH with a generated key pair, and terminating it to avoid ongoing charges.
Deep Dive
Launching the instance
From the EC2 console, use Instances -> Launch instances (the left-nav "Instances" link is the reliable path if the button moves).
Name the instance (e.g. demo-ec2-instance).
Under Application and OS Images, choose Amazon Linux — Amazon's own Linux distribution. Pick the Amazon Linux 2023 AMI marked Free tier eligible, 64-bit.
Note the default login username shown for this AMI: ec2-user. You'll need it for SSH.
For Instance type, pick a free-tier-eligible size such as t3.micro (t2.micro/t4g.micro are similar options depending on region). Free tier instances still have modest specs (roughly 2 vCPUs, 1 GB RAM).
Key pairs
EC2 requires a key pair to log in. Create a new key pair, name it (e.g. demo-key-pair-ec2), choose type RSA and format .pem (.pem is used for SSH from macOS/Linux terminals; Windows users typically convert it for PuTTY).
This generates an asymmetric key pair: AWS keeps the public key on the instance, and you download the private key (.pem file) locally. The instance will only accept a login that proves possession of the matching private key.
The .pem file downloads once — save/remember its location, since AWS does not let you re-download it later.
Security group (firewall)
Create a new security group and allow SSH.
Instead of leaving the source open to "Anywhere," restrict it to My IP, so only your current public IP address can attempt to connect.
Storage
No extra storage is added — the instance uses the default EBS (Elastic Block Store) root volume for its operating system.
Launching and connecting
Click Launch instance. Under the Instances list, the new instance shows Instance state: running while Status checks may still say Initializing for a short period.
Note the instance's Public IPv4 address — this is what you'll SSH to.
In a terminal, first fix the key file's permissions so SSH will accept it:
chmod 400 ~/Downloads/demo-key-pair-ec2.pem
Then connect:
ssh -i ~/Downloads/demo-key-pair-ec2.pem ec2-user@<public-ip>
On first connection you'll be asked to confirm the host's fingerprint (it's unrecognized because you've never connected before) — accept it to continue.
Once connected, basic commands confirm you're on a fresh remote Linux box: who am i, uptime, ls -la (mostly empty, just default dotfiles), echo hello world.
Type exit to close the SSH session and disconnect.
Cost and cleanup
A running instance is billed while it's on — a t3.micro left running 24/7 costs roughly $7.50/month (plus any EBS storage charges), though free-tier eligibility can offset this for a limited time/usage.
To avoid ongoing charges, don't just leave it running. From Instance state you have three options:
Stop — shuts the instance down but keeps it (and its EBS volume) intact for restarting later.
Reboot — restarts the OS without destroying anything.
Terminate — permanently deletes the instance. This is the option used here since the instance was only needed for the demo.
After terminating, the instance state shows shutting-down and then disappears from the instance list entirely once cleanup completes.
Exam Relevance
SAA-C03 expects you to know the EC2 launch workflow: AMI selection, instance type/family, key pairs, security groups, and EBS root volumes as distinct configuration steps.
Key pairs: AWS only stores the public key; if you lose the private key (.pem), there is no way to re-download it — recovery requires detaching the root EBS volume and attaching it to another instance to inject a new key, or using tools like EC2 Instance Connect where supported. A common wrong answer is assuming AWS support can regenerate a lost key.
Security groups vs. NACLs: Security groups are stateful, attached at the instance (ENI) level, and support allow-only rules (no explicit deny) — unlike Network ACLs, which are stateless, apply at the subnet level, and support both allow and deny. Restricting SSH to "My IP" instead of 0.0.0.0/0 is a frequently tested least-privilege pattern.
Instance lifecycle billing: Compute charges stop when an instance is stopped, but the attached EBS volume continues to incur storage charges until the instance is terminated (or the volume is deleted). Expect distractor answers that assume "stopped" instances are free.
EBS root volume: by default this is deleted on termination unless "Delete on Termination" is unchecked — another common exam nuance.
ec2-user: the exam may reference default usernames per AMI family (e.g., ec2-user for Amazon Linux/RHEL, ubuntu for Ubuntu, admin for Debian) as a troubleshooting detail for failed SSH logins.
Real-World Analogy
The key pair works like a hotel keeping a copy of your room's lock mechanism (public key) while you carry the only physical key (private key) — the front desk (AWS) can't get you back in if you lose your key; they can only re-key the door and issue a new one, which is why losing a .pem file means re-establishing access, not recovering the old key.
Overview
Launch an Amazon Linux EC2 instance and turn it into a public website from the command line. You will connect over SSH, install and start Apache HTTP Server, create an index.html page in the web document root, and then prove why a running web server is not automatically reachable from the internet. The final step adds a narrowly scoped SSH rule and a public HTTP rule to the instance's security group, bringing the page online while keeping administrative access restricted.
Deep Dive
What you are building
The website runs on an EC2 instance—a remote computer that stays available until you stop or terminate it. Your Mac is only the control point: commands entered after the SSH connection run on the Linux instance in AWS, not on your local machine.
The finished request path is:
Browser → public IPv4 address → security group → EC2 → httpd → /var/www/html/index.html
1. Launch the instance securely
Create a small Amazon Linux instance and a new key pair. Keep the downloaded private key in a safe location; AWS installs the matching public key on the instance.
For the initial security group, allow SSH on TCP port 22 from My IP. This limits administrative connection attempts to your current public IPv4 address instead of exposing SSH to the entire internet.
After the instance reaches the running state, copy its public IPv4 address. On macOS or Linux, restrict the private key's permissions before connecting:
chmod 400 ~/Downloads/my-site.pem
ssh -i ~/Downloads/my-site.pem ec2-user@<public-ip>
The -i option identifies the private key, ec2-user is the default Amazon Linux username, and the public IP identifies the instance. Accept the host fingerprint prompt on the first connection.
2. Install and start the web server
From the SSH session, install Apache HTTP Server and start its service:
sudo yum install -y httpd
sudo systemctl start httpd
sudo systemctl status httpd
sudo runs an administrative command on the instance.
yum install -y httpd installs Apache and automatically answers yes to the package prompts.
systemctl start httpd starts the service.
systemctl status httpd confirms that it is active and running. Press q to leave the status viewer if it opens in a pager.
At this point Apache is healthy, but it has no custom page to return.
3. Create the page Apache serves
Apache's default document root on Amazon Linux is /var/www/html. Write a small HTML page there:
echo '<html><body><h1>Hello, world.</h1></body></html>' \
| sudo tee /var/www/html/index.html
The echo command produces the HTML, the pipe passes it to tee, and sudo tee writes it to the protected document root. Apache does not need to watch the file for changes; when a browser requests the site, it reads and serves the current index.html.
4. Diagnose the request that fails
Enter the instance's public IPv4 address in a browser. The request initially times out even though httpd is running. The application is healthy, but the network path is closed: the security group has an SSH rule and no inbound HTTP rule.
Edit the instance's security group and add:
Purpose Protocol Port Source Administrative login TCP / SSH 22 My IP (your public IP with /32) Public website TCP / HTTP 80 Anywhere IPv4 (0.0.0.0/0)
Save the rules and refresh the browser. The same request can now reach Apache, which returns the page. Opening port 80 does not weaken the separate SSH rule: each rule describes its own protocol, port, and permitted source.
5. Clean up deliberately
Stop the instance if you need it for another lab. Stopping ends instance compute charges, but attached EBS storage can continue to incur charges, and the automatically assigned public IPv4 address can change when the instance starts again. Terminate the instance when you are finished permanently, verifying which attached volumes will be deleted.
An unused resource that remains deployed and keeps generating cost is an orphan resource. In a large environment, tagging, inventories, budgets, and automated cleanup policies help find these resources before they become persistent waste.
Exam Relevance
Security groups are a core SAA networking control. Remember these decision points:
A security group is a stateful, allow-only virtual firewall attached to an EC2 network interface. If no inbound rule matches a new connection, the request is denied by default.
An inbound rule answers three questions: which protocol, which destination port, and which source may initiate a connection.
SSH uses TCP port 22. Restricting its source to your public IP with a /32 CIDR is the least-privilege choice for this lab. Do not expose SSH to 0.0.0.0/0 unless a scenario explicitly requires it and stronger controls are in place.
HTTP uses TCP port 80. A source of 0.0.0.0/0 makes the website reachable from any IPv4 address. Production traffic normally uses HTTPS on port 443 with a certificate, often through a load balancer or CloudFront.
Because security groups are stateful, response traffic for an allowed request is automatically permitted; you do not create a separate inbound rule for the response.
A service can be running correctly while its security group blocks access. On the exam, separate application health from network reachability.
Stopping an instance ends its compute billing but does not necessarily eliminate EBS, Elastic IP, snapshot, or other attached-resource charges. Termination and storage-deletion behavior must be checked separately.
Exam fingerprint: “The web server is running locally, but clients on the internet cannot connect” usually points to the instance's security group, subnet route, public addressing, or network ACL. In this lab, the missing inbound TCP port 80 rule is the decisive clue.
Real-World Analogy
Think of the security group as the door policy for a small shop with two separate entrances.
The service entrance is port 22. It is for the administrator, who must arrive from an approved address and carry the matching private key. The front entrance is port 80. It is for customers, so its rule allows the public to enter and view the website.
Unlocking the storefront does not unlock the service entrance—the two doors have independent rules. And because the guard is stateful, someone who was allowed through a door can receive the response and leave through the established connection without a second rule being written for the return trip.
Overview
AWS infrastructure is organized into Regions (independent geographic areas), Availability Zones (isolated data centers within a Region), and Edge Locations (used by CloudFront and other CDN-like services).
Deep Dive
Each Region contains multiple Availability Zones (AZs), each one or more physically separate data centers with independent power, cooling, and networking, connected by low-latency private links. Designing across at least two AZs is the baseline pattern for high availability. Edge locations are a much larger, separate network of sites used to cache content close to end users (CloudFront) and terminate connections for global services like Route 53 and AWS Global Accelerator — they are not a place you deploy compute workloads directly.
Exam Relevance
Match the requirement to the infrastructure layer. "Survive an AZ failure" points to a multi-AZ design; "serve global users with lower latency" points to CloudFront edge locations. Do not choose an edge location as a compute or VPC deployment target.
Real-World Analogy
A Region is a city, AZs are separate buildings with their own utilities, and edge locations are nearby pickup counters that keep popular items close to customers. Use multiple buildings for continuity; use pickup counters for speed.
Overview
S3 is AWS's scalable object storage service for files like backups, logs, and media — not for running operating systems or databases. This lesson creates a demo bucket, uploads an object, and shows how access is controlled through IAM identity, bucket policies, and pre-signed URLs.
Deep Dive
What S3 is
Object storage, not block or file storage — you cannot install an OS or a database directly inside an S3 bucket.
Common uses: video/media storage, log storage, backups, static assets.
Virtually unlimited scalability — storage capacity is not something you manage or plan around.
Creating a bucket
Bucket names are in a global namespace — the name must be unique across all of AWS, not just your account.
Key settings during creation:
Object Ownership: Bucket owner enforced — disables ACLs (access control lists) entirely, so access is controlled only through IAM policies and bucket policies.
Block Public Access: enabled — prevents public grants by default while still allowing specific authorized identities access through policies.
Versioning — when enabled, old versions of an object are retained (each version consumes storage) so you can roll back changes; left disabled for a temporary/lab bucket.
Uploading and access behavior
Uploading through the console succeeds because your signed-in IAM identity is authorized to call s3:PutObject.
Opening an object's URL directly in a browser fails with Access Denied — that request is anonymous, and the bucket blocks public access.
Pre-signed URLs grant temporary, time-limited access to a specific object without changing bucket policy or making it public:
You set an expiration (e.g., one minute).
Anyone with the link can access the object until it expires — the link itself is the credential, so treat it as sensitive.
After expiration, the object still exists in S3; the URL simply no longer authorizes a new request, and access reverts to denied.
Cost basics
S3 charges for stored data, requests, retrievals, and data transfer.
An empty bucket is effectively free; a single small object costs very little.
Exam Relevance
SAA-C03 tests S3 configuration choices heavily:
Bucket policies vs. IAM policies vs. ACLs — know that Bucket Owner Enforced disables ACLs and shifts all access control to policies.
Block Public Access settings and why they don't prevent all access, only public/anonymous access.
Versioning — storage cost implications of retained versions, and its role in accidental-deletion/overwrite recovery (often paired with MFA Delete and Lifecycle rules in exam scenarios).
Lifecycle rules — transitioning or auto-archiving objects (e.g., to Glacier) after a set period; this lesson only mentions it as a topic for later.
Pre-signed URLs — a favorite distractor topic: expect questions on their time-limited nature, that they grant access as the identity that generated them, and that they don't make the bucket public.
Common wrong-answer traps: assuming S3 can host a database or filesystem for an EC2 instance, or assuming disabling Block Public Access is required to share a single object (pre-signed URLs are the correct exam answer for temporary sharing).
Real-World Analogy
A pre-signed URL is like a hotel keycard programmed to stop working at checkout time — it opens the door for a limited window, but the room (the object) is still there after the card expires; you just need a new card to get back in.
Overview
This lesson creates a new IAM user with no permissions, confirms it is denied access to S3, then grants access by creating an IAM group with the AmazonS3FullAccess managed policy and adding the user to that group.
Deep Dive
Creating the user
A new IAM user (user-S3) is created with console access enabled.
On creation, the user belongs to zero IAM groups and has no attached policies.
IAM's default behavior is implicit deny: a user with no policies attached can do nothing, not even list S3 buckets.
Confirming the denial
Logging in as the new user (demoed via a private browser session) shows "access denied" errors across the console, including for listing S3 buckets.
Two ways to grant access From the user's permissions tab, IAM offers a few paths: add the user to a group, copy permissions from another user, or attach a policy directly to the user. The lesson deliberately avoids attaching a policy directly to the individual user.
Why groups over individual policies
Attaching policies per-user works, but doesn't scale: a mistake made across 25 individually-permissioned users means fixing 25 users one at a time.
A group lets you fix (or intentionally change) permissions for every member in one place.
This is a management trade-off, not an absolute rule — individual attachment is still valid in some cases — but group-based assignment is the common real-world pattern.
Building the group
A new group, group-S3-full-access, is created.
The AWS managed policy AmazonS3FullAccess is attached to the group. Its JSON allows all S3 actions (s3:*) and S3 Object Lambda actions on all resources (Resource: "*").
The user is added to this group.
Result
After refreshing, the user can list buckets, upload objects, generate a pre-signed URL, and delete objects — full S3 access, granted entirely through group membership rather than a user-level policy.
Aside on admin access
Even an administrator's AdministratorAccess policy (Allow: * on *) isn't absolute. It can still be limited by an explicit deny elsewhere, by the root user, or by organization-level guardrails (Service Control Policies).
Exam Relevance
IAM users have no permissions by default — access must be explicitly granted; this is the implicit-deny baseline the exam tests repeatedly.
Know the three ways to attach permissions to a user: directly to the user, via a group, or (less common) via a role. AWS/the exam favors groups as the scalable best practice for humans; roles are preferred for workloads/cross-account access.
AWS managed policies (like AmazonS3FullAccess) are broad, pre-built policies. Distractors often test whether you understand that managed "full access" policies grant Action: "s3:*" on Resource: "*" — appropriate for labs, not least-privilege production use.
Explicit deny always overrides an allow, and this holds even for administrators — a common trick question pairs AdministratorAccess with an explicit deny or an SCP restriction elsewhere.
Service Control Policies (SCPs) at the AWS Organizations level can restrict what even admin users can do; SCPs set a permissions ceiling, they don't themselves grant access.
Real-World Analogy
A new employee's keycard badge grants access to nothing until it's added to an access group (e.g., "Warehouse Staff"). Assign the group's access level once, and every badge added to that group inherits it — you don't reprogram each badge individually.
Overview
This lesson demonstrates how to restrict an IAM user from full S3 access down to read-only access by editing the permissions attached to their group, then verifies the change by actually attempting a delete and an upload rather than just trusting the console.
Deep Dive
IAM users share one AWS account — they don't get their own space
Logging in as a different IAM user (e.g., demo-user) feels like logging into a separate account, but it isn't. There's one AWS account; all IAM users operate inside it.
Users don't get individual buckets, folders, or workspaces by default. Everything an identity can see or touch is determined entirely by attached policy.
A brand-new IAM user starts with zero permissions — no policy means no access (implicit deny).
Policies attach to Users, Groups, or Roles
You can attach permissions directly to a user, to a group the user belongs to, or to a role the user assumes. The lesson uses a group so the policy change propagates to every member at once.
To change access, the group's existing policy (S3 full access) was renamed to S3 partial access, and a new AWS-managed policy — AmazonS3ReadOnlyAccess — was attached to the group.
Remove redundant/conflicting policies
With both S3 full access and the new read-only policy attached simultaneously, the full-access policy still wins for any action it allows. Redundant broad policies defeat the purpose of adding a narrower one.
The full-access policy was detached from the group, leaving only read-only access. This is least privilege: grant only what's needed, remove what isn't.
Verifying a permissions change
Refreshing the console and seeing buckets still listed does not confirm the new policy took effect — cached console state can be misleading.
The reliable check: open the user (or group) in IAM and confirm only the intended policies are attached.
The real proof is functional testing: attempting an actual action. Trying to delete an object and trying to upload a file both failed with access-denied errors once read-only access was in effect, confirming the restriction works.
Why this matters
Broad access (like the earlier full-access policy) is dangerous once real production data is involved — a user could delete or overwrite objects with no friction.
Read-only access is a basic guardrail: users can view/list objects but can't modify or delete them.
Exam Relevance
Default deny: IAM identities have no permissions until a policy explicitly grants them. Expect scenario questions where a user with no attached policy is denied all actions.
Policy attachment points: policies attach to users, groups, or roles — not to "workspaces." A common distractor implies users have isolated environments or resource ownership by default; they don't.
Evaluation logic: an explicit Deny always overrides an Allow; with no matching statement, the default is deny. If two policies are attached (one full access, one read-only) and neither has an explicit deny, the broader Allow wins — which is why the lesson removes the redundant full-access policy rather than relying on read-only to "override" it.
AWS managed policies: AmazonS3ReadOnlyAccess is a standard AWS-managed policy; know that these exist as ready-made, maintained permission sets versus custom customer-managed or inline policies.
Least privilege: a recurring SAA theme — grant the minimum permissions required, and remove unused or redundant grants, especially at the group level where changes affect every member.
Verification distractor: exam scenarios sometimes test whether you know that IAM policy changes should be verified by checking attached policies/testing behavior, not by assuming console state is authoritative or instantaneous.
Real-World Analogy
Think of the AWS account as one shared office building, not a set of private offices. Every employee (IAM user) badges into the same building — nobody gets their own building or floor by default. What each badge can actually open (file rooms, supply closets, the server room) is controlled entirely by which access list (policy) their badge, or their badge's assigned team (group), is on. Add them to the "read-only archive" list and their badge opens the door to look, but the lock still won't let them remove or shred anything inside.
Overview
This lesson demonstrates how to grant an IAM group upload access to a specific S3 bucket by adding an inline JSON policy, and highlights the critical distinction between bucket-level and object-level resource ARNs in IAM policies.
Deep Dive
Starting point: an IAM group ("S3 partial access") had only a read-only policy attached, scoped to all S3 buckets in the account. Its member user could list/view objects but not upload, and an upload attempt failed as expected.
Fixing it with an inline policy:
In IAM, navigate to the group → Permissions → Add inline policy.
Use the JSON editor instead of the visual editor for direct control over the policy document.
Add an Action of s3:PutObject. Actions can be written as a JSON array (["s3:PutObject", ...]) so multiple actions can be comma-separated; a single action doesn't strictly need the brackets, but they don't hurt.
Add a Resource value using the bucket's ARN, copied from the bucket's Properties page: arn:aws:s3:::bucket-tutorial-repo.
Statement names (Sid) must be alphanumeric only — hyphens cause a syntax error; underscores are fine.
Name and create the policy (e.g., "S3 upload demo").
Group inheritance: because the user is a member of the group, and the policy is attached to the group, the user automatically inherits the new permission — no per-user policy needed.
Bucket ARN vs. object ARN — the key gotcha:
arn:aws:s3:::bucket-tutorial-repo refers to the bucket itself as a resource (used for bucket-level actions like listing or bucket configuration).
arn:aws:s3:::bucket-tutorial-repo/* refers to the objects inside the bucket (used for object-level actions like PutObject, GetObject, DeleteObject).
The first upload attempt failed because the policy's resource pointed only at the bucket ARN without the trailing /*, so s3:PutObject had no valid object-level resource to act on.
Adding /* to the resource ARN and saving the policy resolved it; the upload succeeded after the permission propagated (near-instant).
Least privilege in practice: the policy was scoped to one specific bucket and one specific action (PutObject), rather than granting wildcard access (* for resource, which would allow uploads to any bucket). The group still lacked s3:DeleteObject, so a delete attempt correctly failed — demonstrating that permissions are additive and explicit; nothing is granted beyond what's written in the policy.
Exam Relevance
SAA-C03 frequently tests IAM policy resource scoping for S3:
Know that an S3 bucket ARN (arn:aws:s3:::bucket-name) and an object ARN (arn:aws:s3:::bucket-name/*) are different resource types, and that object-level actions (PutObject, GetObject, DeleteObject) require the /* (or a more specific key/prefix) suffix, while bucket-level actions (ListBucket, GetBucketLocation) use the bare bucket ARN.
A common distractor: a policy that "looks right" but grants s3:PutObject on the bucket ARN without /* — expect exam questions where uploads fail for exactly this reason.
Expect scenario questions on troubleshooting "access denied" errors by inspecting the policy's Resource element rather than assuming a Deny is present.
Least privilege is a recurring theme — questions may ask you to choose the most restrictive policy that still satisfies a stated requirement (e.g., allow upload to one bucket only, not Resource: "*").
Group-based permission inheritance (user → group → policy) is standard IAM behavior tested throughout the exam, not S3-specific.
Real-World Analogy
Think of the bucket as an office building and objects as the files inside individual offices. Giving someone a key to the building lobby (bucket ARN) lets them walk in and see the directory, but it doesn't let them open any office door and drop off a folder (object ARN with /*). You need to hand them a key that specifically works on the office doors, not just the front entrance.
Overview
AWS CloudShell is a free, browser-based terminal that comes preloaded with the AWS CLI and uses the permissions of whoever is signed in. This lesson shows how to enable access via IAM, upload a file into CloudShell's persistent storage, and copy it into an S3 bucket using the AWS CLI.
Deep Dive
What CloudShell is
A command-line terminal accessible from the AWS Console in a browser, available in most (not all) regions.
It is not your local machine — it's a small AWS-managed compute environment with its own storage.
Amazon provides 1 GB of persistent home storage per supported region, private to that IAM user.
Enabling access
CloudShell requires explicit IAM permission. Attach the AWS-managed policy AWSCloudShellFullAccess to the relevant IAM group or user.
After attaching the policy, CloudShell may not work immediately — IAM policy changes can take up to a couple of minutes to propagate.
The reliable fix is to log out and log back in so the new permissions take effect.
Using CloudShell
Run whoami to confirm your identity (returns something like cloudshell-user).
ls shows files in your current CloudShell home directory — empty until you upload something.
Use the CloudShell Upload file action to bring a local file (e.g., a photo) into CloudShell storage. This upload goes only to CloudShell, not to any S3 bucket.
Copying files to S3 with the CLI
Syntax: aws s3 cp <local-file> s3://<bucket-name>/<optional-new-name>
Example: aws s3 cp test.jpg s3://bucket-tutorialrepo/markclimb.jpg uploads and renames the file in one step.
Refresh the S3 console to confirm the object now appears in the bucket.
CLI operations matter because they scale: renaming, copying, or tagging hundreds or thousands of objects is only practical via scripting, not the console UI.
Access after upload
A newly uploaded object is still private. Viewing its plain object URL fails without permission.
Generate a pre-signed URL (via Actions > Share with a presigned URL) to grant temporary browser access without changing the object's permissions.
Exam Relevance
CloudShell can appear as a distractor or correct answer in questions about running AWS CLI commands without local setup. Key facts to retain:
It inherits the permissions of the signed-in IAM identity — it has no separate permission model, so IAM policy changes (not CloudShell itself) control access.
Each user gets persistent home directory storage per supported region (not global, not shared across regions).
It is not available in every region — don't assume universal availability.
Common distractor: confusing CloudShell (a general-purpose CLI shell tied to your IAM identity) with EC2 Instance Connect or Systems Manager Session Manager (which provide shell access to specific EC2 instances, not a standalone CLI environment).
Uploading a file to CloudShell storage is not the same as uploading to S3 — CloudShell storage and S3 buckets are separate; aws s3 cp is required to move data between them.
Real-World Analogy
CloudShell is like a company-issued laptop kept in a locker at the office: you don't own it, it only has your access badge's permissions, it keeps a small personal folder just for you, and you can use it from any browser without installing anything on your own machine.
Overview
The AWS CLI runs any AWS API call from your terminal and is the backbone of scripting and automation. After installing it, aws configure stores your credentials and default Region locally.
Deep Dive
Install (macOS) and confirm:
brew install awscli # or the official pkg installer
aws --version # aws-cli/2.x ...
Configure a profile interactively:
aws configure
# AWS Access Key ID [None]: AKIA...
# AWS Secret Access Key [None]: ...
# Default region name [None]: us-east-1
# Default output format [None]: json
This writes two files in ~/.aws/:
credentials — access key ID and secret (keep private; never commit).
config — default Region, output format, and profile settings.
Verify your identity and Region:
aws sts get-caller-identity
aws configure get region
Prefer not to store long-lived keys at all — configure the CLI to assume roles or use IAM Identity Center SSO (aws sso login), covered next. Output format can be json, table, text, or yaml, and --query (JMESPath) filters results.
Decision hook: the CLI is how you do anything the console does, scriptably. If credentials "don't work," check which profile/Region is active (AWS_PROFILE, AWS_REGION) and that the key isn't expired or from the wrong account (get-caller-identity tells you exactly who you are).
Exam Relevance
CLI syntax is rarely the architecture answer, but understand that commands act with the active profile's credentials and Region. Avoid configuring production automation with a root user or embedded long-lived keys.
Real-World Analogy
The AWS CLI is a command radio: configuration chooses which operator badge and regional control room the radio uses, while each command specifies the action. The radio cannot exceed the operator's permissions.
Overview
This lesson renames an IAM group from a broad S3-access name to a scoped demo-dev-access group, then replaces its permissions with a four-statement inline policy that grants account-level bucket listing, listing of one specific bucket, read access to all objects in that bucket, and full S3 access limited to a single key prefix. It also demonstrates the practical difference between implicit deny and explicit deny when testing the new permissions in the console.
Deep Dive
Group rename reflects intent
The group S3 partial access is renamed to demo-dev-access to match its actual purpose: giving developers on a project the access they need to do their job, not a generic label.
Principle applied: grant permissions by job function (least privilege), and keep group names descriptive of that function.
Baseline group permissions (unchanged)
CloudShell full access
Sign-in / local development access
These two are considered baseline access every developer on the project needs.
Rebuilding the user's inline policy from scratch The old inline policy (with mixed S3 partial/upload permissions) is deleted and replaced with a single new inline JSON policy containing four statements:
List all buckets (account level)
Action: s3:ListAllMyBuckets
Resource: *
Lets the user see every bucket name in the account, but not their contents.
List a specific bucket
Action: s3:ListBucket
Resource: arn:aws:s3:::bucket-tutorialrepo
Lets the user list the objects inside that one bucket. Note this is a different action from statement 1 even though both involve "listing."
Read objects in that bucket
Action: s3:GetObject
Resource: arn:aws:s3:::bucket-tutorialrepo/*
Grants read access to every object in the bucket (the trailing /* scopes it to objects, not the bucket itself).
Full access scoped to a prefix
Action: s3:*
Resource: arn:aws:s3:::bucket-tutorialrepo/user-s3/*
Grants every S3 action, but only for objects under the user-s3/ prefix. This is a common least-privilege pattern: broad actions, narrow resource scope.
The policy is saved as tutorialrepo-s3-user-access and attached to the group, bringing the group to three total policies.
Verifying behavior in the console
Listing all buckets works (statement 1).
Opening bucket-tutorialrepo and browsing its contents works (statements 2 and 3).
Deleting an object at the bucket root fails — the user only has delete/full access under the user-s3/ prefix, not bucket-wide.
Uploading a file at the bucket root also fails for the same reason.
Creating a user-s3 folder (prefix) and uploading inside it succeeds, because that matches the resource ARN in statement 4.
Deleting an object inside user-s3/ succeeds.
Implicit deny vs. explicit deny
By default, a principal has no access to anything: this is implicit deny — access is denied simply because no policy allows it.
Explicit deny is when a policy statement specifically sets "Effect": "Deny". An explicit deny always overrides any explicit allow, even from another attached policy.
The failed delete/upload attempts at the bucket root in this lesson are implicit denies (no allow exists for that resource), not explicit denies.
Exam Relevance
SAA-C03 tests IAM policy evaluation logic heavily: default deny, explicit allow, explicit deny, and the rule that an explicit deny always wins over an allow.
Expect questions distinguishing s3:ListAllMyBuckets (account-level, resource *) from s3:ListBucket (bucket-level, needs the bucket ARN) — a common distractor is using the wrong action for the wrong scope.
Know the S3 ARN pattern: arn:aws:s3:::bucket-name refers to the bucket itself; arn:aws:s3:::bucket-name/* refers to objects inside it. Policies for GetObject/PutObject/DeleteObject must target the object-level ARN (with /* or a prefix), not the bucket-level ARN.
Prefix-scoped resource ARNs (e.g., bucket-name/user-s3/*) are a standard least-privilege / multi-tenant pattern question topic — used to give each user or team access only to their own "folder" in a shared bucket.
A likely distractor: assuming a missing permission means the user was "denied" by a Deny statement, when it's actually an implicit deny from no matching Allow.
Real-World Analogy
Think of the bucket like an office building. ListAllMyBuckets is being on the building directory in the lobby — you can see building names exist. ListBucket is having a keycard that lets you see the directory board inside one specific building (which offices/floors exist). GetObject is a keycard that opens every office door on every floor so you can read files. The prefix-scoped full-access statement is a master key, but only for one specific room (user-s3/) — you can add, remove, or rearrange anything in that room, but you can't touch any other room in the building.
Overview
S3 buckets are private-by-default containers for storing any kind of object (photos, videos, backups). Access is granted through IAM users, groups, and policies scoped to specific actions (like ListBucket or GetObject) and specific resources, following the principle of least privilege.
Deep Dive
Buckets and objects
A bucket is identified by an Amazon Resource Name (ARN), e.g. arn:aws:s3:::course-bucket.
You store objects inside it — photos, video clips, log files, backup zips, anything.
Buckets scale automatically as you add objects; there's no capacity to provision.
Private by default
A new bucket has zero public access. An anonymous browser request to an object like photo.jpg is denied until access is explicitly granted.
This is least-privilege by default: nothing is allowed until a policy says otherwise.
Granting access with IAM
An admin creates an IAM group (e.g. S3 learners) and attaches a policy to it.
Users placed in that group inherit the group's permissions.
A minimal policy might allow only s3:ListBucket and s3:GetObject — enough to view and download objects, but not upload or delete anything.
Avoid overly broad policies
A policy with "Action": "s3:*" and "Resource": "*" grants every S3 action on every bucket. This is a common but risky shortcut — avoid it.
Instead, scope both the action and the resource tightly to what's actually needed.
Bucket-level vs object-level resources
To allow uploads, add the s3:PutObject action with resource arn:aws:s3:::course-bucket/*.
The trailing /* is a prefix meaning "everything inside the bucket" (its contents/objects) — not the bucket itself.
Bucket-level actions (like ListBucket) target the bucket ARN; object-level actions (like GetObject, PutObject, DeleteObject) target the bucket ARN + /*.
Why this matters at scale
With many users, applications, and roles needing access, restricting each identity to only the actions it needs (e.g., upload-only, no delete) limits the blast radius of a mistake or compromised credential.
Exam Relevance
SAA-C03 tests IAM policy structure for S3 heavily:
Knowing that bucket-level actions (ListBucket) require the bucket ARN, while object-level actions (GetObject, PutObject, DeleteObject) require the bucket ARN + /*. Mixing these up is a classic distractor (e.g., a policy that grants GetObject on the bucket ARN without /* won't work as intended).
Recognizing s3:* on Resource: * as a red flag for violating least privilege — expect questions asking you to pick the most restrictive policy that still satisfies a stated requirement.
S3 buckets being private by default, and access requiring explicit IAM policy grants (no implicit public access).
Distinguishing identity-based policies (attached to users/groups/roles) from resource-based policies (bucket policies) — this lesson only covers the identity-based side.
Real-World Analogy
Think of a bucket as a locked storage unit. By default no one has a key. The building manager (admin) can hand out keys that only open specific doors (the bucket) and only allow specific actions — some keys let you look at what's inside and take a copy (ListBucket/GetObject), others let you drop off new items (PutObject). A master key that opens every unit and does everything (s3:* on *) is convenient but reckless to hand out.
Overview
Use aws s3 ls with no S3 URI to list the buckets the active AWS CLI profile can see. A bucket is a top-level S3 container, so this is the quickest way to confirm both your identity and the bucket name you need for later commands.
Deep Dive
Start with the high-level S3 command that lists buckets visible to your current identity:
aws s3 ls
The output contains a creation timestamp and bucket name. Use that exact name in later commands, such as s3://my-example-bucket.
What this command does—and does not—show:
It lists buckets that the active profile is allowed to list; it is not a list of every S3 bucket in AWS.
It does not list the objects inside a bucket. Add the bucket URI when you are ready to inspect objects.
The command uses the credentials and profile currently selected by the AWS CLI. If the result is unexpected, run aws sts get-caller-identity before assuming the bucket is missing.
S3 bucket names are globally unique, but access is still controlled by IAM, bucket policies, and other applicable guardrails. Knowing a bucket name never grants access to its contents.
Decision hook: need a quick inventory of accessible buckets from the terminal → aws s3 ls. Need the account/role behind the command → aws sts get-caller-identity.
Exam Relevance
Buckets are the top-level S3 containers. CLI commands act only with the permissions of the active IAM principal, so an empty list or AccessDenied can be an identity or authorization issue rather than a missing resource.
Real-World Analogy
Listing buckets is checking the labels on the storage rooms your badge can enter. The labels tell you which rooms exist for you; they do not open every cabinet inside them.
Overview
Use aws s3 ls s3://BUCKET/PREFIX/ to list objects below a bucket or prefix. S3 uses object keys and prefixes, not real directories, so the slash is a naming convention that helps organize and filter objects.
Deep Dive
To list objects at a bucket or prefix, pass an S3 URI:
aws s3 ls s3://my-example-bucket/
aws s3 ls s3://my-example-bucket/photos/
For every object under a prefix, including deeper prefixes, use --recursive:
aws s3 ls s3://my-example-bucket/photos/ --recursive
An S3 URI follows this pattern:
s3://BUCKET_NAME/object-key-or-prefix
The part after the bucket name is an object key. Names like photos/2026/june/image.jpg look like folders, but S3 stores one flat namespace of keys; the prefix photos/ is simply the shared beginning of those keys. This is why listing photos/ filters the result without requiring an actual directory object to exist.
Use the output to verify an upload, locate an exact key for a download, or inspect a backup prefix. Listing a bucket requires authorization separately from reading an object, so being able to list does not automatically mean you can download every result.
Decision hook: need to discover or verify object names under a bucket path → aws s3 ls with a bucket/prefix URI; need all descendants → add --recursive.
Exam Relevance
S3 "folders" are prefixes in object keys, not a hierarchical filesystem. Listing permission and object-read permission are separate authorization decisions.
Real-World Analogy
A prefix is like asking an archive clerk for every label that begins with “photos/2026/.” It groups related boxes by their labels without creating real rooms inside the archive.
Overview
Use aws s3 cp to upload one local file to an S3 bucket. The destination key controls where the object appears; ending the destination with / preserves the local filename, while naming a key explicitly chooses the S3 object name.
Deep Dive
Upload a local file with aws s3 cp:
aws s3 cp ./report.pdf s3://my-example-bucket/reports/
Because the destination ends in /, S3 stores the object as reports/report.pdf. To choose a different object key, include it explicitly:
aws s3 cp ./report.pdf s3://my-example-bucket/reports/june-report.pdf
The first argument is a local path; the second is the S3 URI. A successful command reports the source and destination, but you can independently verify the key with:
aws s3 ls s3://my-example-bucket/reports/
Uploading requires the active identity to be allowed to write the target object key, typically through s3:PutObject in an IAM or bucket policy. An upload does not make an object public. Public access, sharing, encryption requirements, and ownership controls are separate bucket-policy and account-level concerns.
Decision hook: copy one file from your computer into S3 → aws s3 cp LOCAL_PATH s3://BUCKET/KEY.
Exam Relevance
aws s3 cp transfers individual files. An S3 object is private unless an applicable policy or controlled sharing mechanism allows a request; uploading alone does not grant public read access.
Real-World Analogy
Uploading is placing a document in an archive box. The label you write after the bucket name determines where staff file it; dropping it into a labeled tray keeps its original filename.
Overview
Use aws s3 cp s3://BUCKET/KEY LOCAL_PATH to download one object from S3. Supply the exact object key, then choose either a local directory to keep its name or a local filename to rename the downloaded copy.
Deep Dive
Download an object by placing its S3 URI first and the local destination second:
aws s3 cp s3://my-example-bucket/reports/june-report.pdf ./downloads/
The trailing slash means ./downloads/ is a directory, so the downloaded file remains june-report.pdf. To give the local copy a new name, specify that filename instead:
aws s3 cp s3://my-example-bucket/reports/june-report.pdf ./downloads/latest-report.pdf
If you do not know the exact key, list the prefix first:
aws s3 ls s3://my-example-bucket/reports/
The CLI must be configured with an identity that can read the object, usually through s3:GetObject. A bucket can contain an object while your command is still denied by an IAM policy, bucket policy, VPC endpoint policy, encryption-key policy, or an explicit deny.
Decision hook: copy one S3 object to your workstation → aws s3 cp s3://BUCKET/KEY LOCAL_PATH.
Exam Relevance
Downloading an S3 object requires object-read authorization; knowing a bucket or key name is not sufficient. Identity- and resource-based policies can both affect the request.
Real-World Analogy
Downloading is requesting one labeled archive box and deciding whether to place it in a folder under its original label or relabel your local copy as it arrives.
Overview
Use aws s3 mv to move an object to a different key or give it a new name. S3 has no atomic rename operation: a move is effectively a copy to the destination followed by deletion of the source, so both permissions and failure handling matter.
Deep Dive
To rename an object inside the same bucket, move it to a new key:
aws s3 mv \
s3://my-example-bucket/incoming/report.csv \
s3://my-example-bucket/processed/june-report.csv
The command can also move objects between buckets or between your local machine and S3. When both paths are S3 locations, treat the operation as copy then delete, not as an in-place filesystem rename. There can be a period when both keys exist, and a failed delete can leave the source behind.
Verify the result after the move:
aws s3 ls s3://my-example-bucket/processed/
aws s3 ls s3://my-example-bucket/incoming/
A move needs permission to read the source, write the destination, and delete the source. If the source bucket uses versioning, the delete portion normally creates a delete marker rather than permanently erasing prior versions.
Decision hook: change an S3 object's key or move it to another S3 location → aws s3 mv; preserve the original object → use aws s3 cp instead.
Exam Relevance
S3 objects are identified by bucket and key, and S3 does not provide a native atomic rename. A move combines copy and delete behavior, with separate permissions and versioning consequences.
Real-World Analogy
Renaming an object is photocopying a file into a newly labeled drawer and then removing the old drawer label. It is not the same as changing ink on a single file tab.
Overview
Use aws s3 cp with two S3 URIs to make a second copy of an object without downloading it first. The source stays in place, while the destination URI determines the new bucket and object key.
Deep Dive
Copy an object to another key in the same bucket:
aws s3 cp \
s3://my-example-bucket/incoming/report.csv \
s3://my-example-bucket/archive/report.csv
You can also copy between buckets:
aws s3 cp \
s3://my-source-bucket/reports/june.csv \
s3://my-destination-bucket/archive/june.csv
This is an S3-to-S3 operation: the object moves within AWS rather than passing through your laptop. Unlike aws s3 mv, cp leaves the source object unchanged. That makes it appropriate when you need a working copy, a staged prefix, or a duplicate before making a destructive change.
Verify the destination key after the copy:
aws s3 ls s3://my-example-bucket/archive/
The calling identity needs permission to read the source and write the destination. Copying to another Region or an object encrypted with a customer managed KMS key can add Region and KMS permission considerations.
Decision hook: preserve the original while creating a second object in S3 → aws s3 cp S3_SOURCE S3_DESTINATION.
Exam Relevance
cp creates a new object and keeps the source. Cross-bucket/cross-Region copies are data-transfer operations, not a substitute for S3 Cross-Region Replication when you need ongoing, automatic replication.
Real-World Analogy
Copying is making a second photocopy for a different filing cabinet while keeping the original in the first cabinet. Moving would remove the original label after the copy is filed.
Overview
Use aws s3 rm s3://BUCKET/KEY to delete one current S3 object. Be deliberate: in a non-versioned bucket this removes the object, while in a versioned bucket a normal delete creates a delete marker and older versions can remain.
Deep Dive
Delete a single object by using its full S3 URI:
aws s3 rm s3://my-example-bucket/reports/june-report.pdf
First list the prefix when there is any doubt about the key:
aws s3 ls s3://my-example-bucket/reports/
rm is destructive, so avoid adding --recursive until you have confirmed the exact bucket and prefix. For bulk work, use --dryrun where the command supports it to preview what would happen.
Versioning changes the outcome. In a versioning-enabled bucket, a normal delete request does not permanently erase the previous object version. S3 adds a delete marker as the current version, making ordinary reads behave as though the object is gone. Permanently deleting a particular version requires a version-specific API request and the appropriate permissions.
The active principal normally needs s3:DeleteObject; deleting a specific version requires the corresponding version permission. Object Lock, retention, legal holds, and explicit policy denies can prevent permanent deletion.
Decision hook: remove one current object by key → aws s3 rm; recoverability against accidental deletion → enable S3 Versioning before the mistake occurs.
Exam Relevance
In a versioning-enabled bucket, deleting without a version ID creates a delete marker rather than permanently deleting prior versions. Versioning improves recovery from accidental deletes but does not replace access control or lifecycle management.
Real-World Analogy
In a versioned archive, a normal delete puts a "do not show" card at the front of the folder; the older papers remain behind it until someone deliberately destroys those specific versions.
Overview
Use aws s3 presign to create a time-limited URL for one private S3 object. Anyone holding the URL can make the signed request until it expires, so a presigned URL is controlled sharing—not a public bucket policy.
Deep Dive
Generate a download link for one S3 object:
aws s3 presign \
s3://my-example-bucket/reports/june-report.pdf \
--expires-in 3600
The command prints a URL valid for one hour. Send that URL only to the intended recipient. They do not need AWS credentials because the URL carries a signature created with your CLI identity's permission to perform the request.
Important limits:
A presigned URL is temporary, but it acts as a bearer link while valid: anyone who obtains it can use it.
It does not make the bucket or object public and it does not change the object's bucket policy.
The URL stops working at its expiration time or earlier if the credentials used to sign it expire or are revoked.
aws s3 presign creates a URL for the object's download (GET) request. Use the appropriate SDK or S3 API pattern when your application needs a presigned upload request.
Keep the expiry as short as the use case permits, and do not place presigned URLs in logs, public issue trackers, or long-lived documents.
Decision hook: grant temporary, direct access to one private S3 object without making it public → a presigned URL.
Exam Relevance
Presigned URLs provide time-limited access using the signer's permissions; they do not grant permanent public access. Short expiration and careful URL handling are part of the security design.
Real-World Analogy
A presigned URL is a visitor pass with an expiration time. It opens one specific archive drawer for whoever presents it, but it does not turn the whole archive into a public library.
Overview
Use aws s3 sync to repeatedly align a local directory and an S3 prefix. It recursively transfers missing or changed files; add --delete only when the destination must be an exact mirror, because it removes destination-only data.
Deep Dive
Synchronize a local folder to an S3 prefix:
aws s3 sync ./photos/ s3://my-example-bucket/photos/ --dryrun
aws s3 sync ./photos/ s3://my-example-bucket/photos/
The first command previews the planned transfer. The second recursively uploads new or changed files. Run the command in the other direction to restore or download a prefix:
aws s3 sync s3://my-example-bucket/photos/ ./photos-restored/
sync is designed for repeatable directory/prefix work. It compares source and destination and normally transfers only files or objects that are missing or outdated. It is not a backup policy by itself: choose versioning, retention, encryption, lifecycle, and replication based on the protection requirement.
Use --delete with care:
aws s3 sync ./website/ s3://my-example-bucket/website/ --delete --dryrun
With --delete, objects that exist only at the destination are removed so the destination mirrors the source. Preview first. In a versioned bucket, that removal normally creates delete markers, which can retain prior versions and storage cost.
Decision hook: repeatedly copy a directory/prefix while avoiding retransfers of unchanged files → aws s3 sync; make the target an exact mirror → add --delete only after a --dryrun review.
Exam Relevance
sync is for recursive, incremental directory or prefix transfer. It is useful for recurring uploads, static-content deployment, and simple restore workflows, but --delete changes it into a destructive mirroring operation.
Real-World Analogy
Sync is a courier comparing two filing cabinets and carrying only new or changed folders. With --delete, the courier also removes every destination-only folder, so the two cabinets match exactly.
Overview
Overview of a hands-on mini-project: backing up local photos to an S3 bucket using versioning, key prefixes, and pre-signed URLs, then simulating delete-and-restore.
Deep Dive
This lesson introduces a small photo backup project used across the next several videos. The core idea: keep your favorite photos on your local computer and also store a copy in an S3 bucket.
Versioning: Turned on for the bucket so accidental overwrites or deletions can be rolled back — each write creates a new object version instead of destroying the old one.
Prefixes, not folders: S3 has no real folder hierarchy. A key like photos/beach.jpg uses photos/ as a prefix, which the console displays and behaves like a folder, but structurally it's just part of the object key.
Private by default: Objects in the bucket aren't publicly accessible. To let something (or someone) read an object temporarily, you generate a pre-signed URL — a time-limited link that grants access without changing the bucket's permissions or making the object public.
Delete and restore workflow: The project simulates deleting a photo locally, then restoring it from the S3 copy — demonstrating why the local-plus-S3 setup functions as a backup.
End state: A private, versioned, shareable, and restorable photo backup system, synchronized between a local directory and an S3 bucket.
Exam Relevance
S3 key prefixes vs. folders: SAA-C03 tests whether you know S3 is a flat object store — the console's "folder" view is a UI convenience built on key prefixes, not a real filesystem hierarchy. Distractor answers often assume true nested folders with independent permissions.
Pre-signed URLs: A frequent scenario is granting temporary, time-limited access to a private object without making the bucket or object public and without creating an IAM user for the requester. Common wrong answers involve making objects public, using bucket policies for one-off temporary access, or creating long-lived IAM credentials.
Versioning for data protection: Expect scenarios about protecting against accidental overwrite/delete — versioning (paired with MFA Delete for stricter control) is the S3-native answer, distinct from backup services like AWS Backup.
Real-World Analogy
Think of the S3 bucket as a storage unit with a single long aisle of labeled bins rather than a building with real rooms — the labels (photos/beach.jpg) just look organized into folders. The storage unit is locked to the public, but you can hand someone a temporary guest pass (pre-signed URL) that lets them grab one item and expires shortly after.
Overview
Start the photo-backup project by creating a globally unique S3 bucket from the AWS CLI. The script uses variables for the bucket name and Region, and set -e so it stops as soon as a command fails.
Deep Dive
This is the first infrastructure step in the project: create the durable S3 destination before there is any data to back up.
#!/bin/bash
set -e
BUCKET_NAME="your-unique-bucket-name"
REGION="us-east-1"
aws s3 mb "s3://$BUCKET_NAME" --region "$REGION"
Why a script? The console is fine for one experiment, but a script is repeatable, reviewable, and easy to adapt for many client folders or environments. set -e prevents a later command from running after an earlier failure.
Bucket naming. S3 bucket names are globally unique across AWS accounts. Use a naming convention with a personal or organization prefix plus a unique suffix; do not assume a short generic name will be available.
Decision hook: aws s3 mb creates the bucket. Creation alone does not configure versioning, encryption, lifecycle behavior, or public access—those are separate controls.
Exam Relevance
S3 buckets have globally unique names. Separate bucket creation from later configuration such as versioning, encryption, and access policy; an exam question may require more than one of those independent controls.
Real-World Analogy
The bucket is the labeled, fire-resistant archive room for the project. Creating the room is necessary first, but it does not yet decide who gets a key or how every document is protected.
Overview
Enable versioning immediately after creating the bucket so later overwrites and deletes do not silently destroy the only copy of a photo. This lesson makes the configuration change with aws s3api from a small Bash script.
Deep Dive
Versioning is a bucket-level setting, so it is configured separately from creating the bucket.
#!/bin/bash
set -e
BUCKET_NAME="your-unique-bucket-name"
aws s3api put-bucket-versioning \
--bucket "$BUCKET_NAME" \
--versioning-configuration Status=Enabled
Why s3api? The high-level aws s3 commands simplify common file operations such as sync. aws s3api exposes lower-level S3 API operations, including bucket configuration such as put-bucket-versioning.
What versioning protects. Uploading another object with the same key creates a new version rather than erasing the old object version. A delete normally creates a delete marker, allowing an authorized operator to restore an earlier version.
Decision hook: Versioning improves recovery from accidental overwrite or deletion, but it is not a substitute for access controls, replication, lifecycle policies, or a tested restore procedure.
Exam Relevance
S3 Versioning protects against accidental overwrite and deletion by retaining prior object versions. It is configured on the bucket and can be enabled with PutBucketVersioning.
Real-World Analogy
Versioning is a document-history drawer in the archive room: replacing a photo puts a newer copy on top instead of shredding the old one.
Overview
Create a repeatable backup script that synchronizes a local photo folder to the versioned S3 bucket. The script then lists the uploaded objects so you can verify the backup before relying on it.
Deep Dive
The upload step uses aws s3 sync, which compares the local directory and the S3 prefix instead of treating the backup as a one-time manual copy.
#!/bin/bash
set -e
BUCKET_NAME="your-unique-bucket-name"
PHOTO_DIRECTORY="$HOME/favorite-photos"
aws s3 sync "$PHOTO_DIRECTORY" "s3://$BUCKET_NAME/photos"
aws s3 ls "s3://$BUCKET_NAME/photos" --recursive
Why sync? A backup must be practical to run again. sync makes the local folder and target prefix converge, transferring new or changed objects instead of treating every run as a fresh bulk upload.
Verification matters. Listing the prefix confirms that the objects exist in S3. A raw object URL is not automatically viewable in a browser: private S3 objects still require an allowed principal or a controlled sharing mechanism.
Decision hook: A successful copy does not make data public. Storage durability and authorization are separate concerns.
Exam Relevance
aws s3 sync is appropriate for repeated directory synchronization. S3 objects are private unless a policy or another authorized access mechanism permits a request.
Real-World Analogy
This is the courier run from your photo cabinet to the archive room: each run checks what is new or changed instead of hauling every existing album again.
Overview
Add one new photo locally and run the same backup script again. S3 sync detects the change and uploads only the new or changed object instead of sending the whole photo collection again.
Deep Dive
A repeatable backup is useful only when subsequent runs are efficient. After adding a new photo to the local directory, run the original script again:
aws s3 sync "$PHOTO_DIRECTORY" "s3://$BUCKET_NAME/photos"
The command compares source and destination state and transfers the object that needs updating. In the demo, the newly added photo is uploaded while the existing photos are left alone.
Versioning and sync solve different problems. sync reduces redundant transfers during normal backup runs. Bucket versioning keeps prior object versions when an existing key is updated or deleted. Together they make repeated backups both efficient and recoverable.
Decision hook: Do not confuse incremental transfer behavior with a full data-protection strategy. Recovery still depends on versioning, permissions, retention choices, and validating the restore path.
Exam Relevance
For repeated uploads, synchronize only new or changed objects where possible. Versioning retains prior object versions; it does not mean every sync run re-uploads all unchanged data.
Real-World Analogy
The courier checks the inventory sheet before leaving. Only the new photo gets a trip to the archive room; the albums already stored there stay put.
Overview
Generate a presigned URL for one photo so it can be opened in a browser without making the bucket or its objects public. This provides scoped, temporary access to the specific S3 object.
Deep Dive
Presigned URLs are a controlled way to share a private S3 object. The creator has permission to access the object, and the URL carries a time-limited signed request for that exact key.
#!/bin/bash
set -e
BUCKET_NAME="your-unique-bucket-name"
PHOTO_NAME="example.jpg"
aws s3 presign "s3://$BUCKET_NAME/photos/$PHOTO_NAME"
Why not make the object public? A browser cannot fetch a private object simply because you know its object URL. A presigned URL grants a limited sharing path without changing the bucket's general public-access posture.
Use with care. Anyone who receives a valid presigned URL can use it until it expires. Keep the expiration as short as the workflow permits, share it only with the intended recipient, and ensure the signing principal has only the S3 permissions it needs.
Decision hook: Presigned URLs are for temporary delegated access to a specific object, not for permanent public distribution.
Exam Relevance
A presigned URL grants time-limited access to a private S3 object using the permissions of the signing principal. It is the right fit for temporary sharing without making data public.
Real-World Analogy
A presigned URL is a temporary visitor pass for one photo in the archive room. It opens one door for a limited time; it does not hand the visitor a master key.
Overview
Complete the workflow by restoring the S3 photo prefix to a local directory. The restore demonstrates why a backup is only useful when you can retrieve the data successfully.
Deep Dive
Recovery is the final test of a backup. This script synchronizes the S3 prefix back to a local restore directory:
#!/bin/bash
set -e
BUCKET_NAME="your-unique-bucket-name"
RESTORE_DIRECTORY="$HOME/Desktop/restored-photos"
aws s3 sync "s3://$BUCKET_NAME/photos" "$RESTORE_DIRECTORY"
The target directory is created as needed and receives a local copy of the stored objects. Verify the restored files by opening them—not merely by trusting a successful command exit code.
Least privilege after the demo. Broad administrator credentials make a quick demonstration easier, but production automation should use an IAM role or policy that is limited to the required bucket, prefix, and actions.
Decision hook: A backup design is incomplete until it has a practical, tested restore path and the access needed to perform it during an incident.
Exam Relevance
Backup and disaster-recovery questions test recovery objectives and restore design, not only whether data was copied. Apply least privilege to backup and restore principals.
Real-World Analogy
A backup is not proven because boxes were placed in the archive room; it is proven when you can bring the right boxes back and use what is inside.
Overview
Launch an EC2 instance from the console by choosing an AMI, an instance type, a key pair, network settings, and storage. The launch wizard creates a virtual machine, but the security group and your later lifecycle choices determine who can reach it and what continues to cost money.
Deep Dive
In the EC2 console, choose Instances and then Launch instances. The wizard asks for several separate decisions:
Give the instance a recognizable Name tag.
Choose an AMI, such as Amazon Linux or Ubuntu. The AMI is the starting operating-system image.
Choose an instance type that supplies the required vCPU, memory, network, and architecture.
Select or create a key pair if you plan to use SSH, and keep the private key outside source control.
Review the VPC, subnet, and security group. A security group should permit only the traffic the workload needs; for an administrative SSH demo, use My IP instead of opening port 22 to the internet.
Review the root EBS volume and launch.
After launch, the instance changes from pending to running. Its status checks may take a few minutes to pass. The console is a visual client for the EC2 API: every selection maps to an EC2 resource or configuration setting that can also be described or changed through the CLI and SDKs.
Cost and cleanup: stopping the instance stops compute billing, but EBS storage, snapshots, and unused public IPv4 addresses can still incur charges. Terminating the instance is permanent for the instance itself; check the root-volume deletion setting before relying on it as cleanup.
Decision hook: need to create and inspect one instance interactively while learning the parts → use the console launch wizard. Need repeatable automation at scale → use an IaC tool or API-driven workflow.
Exam Relevance
Keep the launch components distinct: an AMI supplies the boot image, an instance type supplies compute capacity, a security group is a stateful allow-only firewall, and an EBS root volume is persistent block storage. The console does not bypass IAM permissions or network design.
Real-World Analogy
Launching an instance is like ordering a configured office workstation: choose the operating system, hardware size, building and desk, door-access rules, and attached drive. Turning it on is only one part; access control and cleanup are separate responsibilities.
Overview
Use aws ec2 start-instances with an instance ID to start a stopped EBS-backed EC2 instance. The command is regional and uses the active CLI credentials, so confirm the account and Region before you start capacity or incur compute charges.
Deep Dive
Start a stopped instance by passing its instance ID:
aws ec2 start-instances --instance-ids i-0123456789abcdef0
The response reports the previous and current state, usually transitioning from stopped to pending. Wait until the instance reaches running before expecting its operating system and applications to be ready:
aws ec2 describe-instances \
--instance-ids i-0123456789abcdef0 \
--query "Reservations[0].Instances[0].State.Name" \
--output text
EC2 instance IDs are scoped to an AWS Region. If the instance is not found, first check the active CLI identity and Region:
aws sts get-caller-identity
aws configure get region
Starting an instance resumes compute billing and may give it a new automatically assigned public IPv4 address. An associated Elastic IP is the exception: that address remains associated across stop/start cycles unless you change it.
Decision hook: an EBS-backed instance is stopped and you want to use the same instance and its attached persistent volumes again → aws ec2 start-instances.
Exam Relevance
Stopping and starting an EBS-backed instance preserves its EBS volumes, but an auto-assigned public IPv4 address can change. A Region mismatch or missing IAM permission can make a valid instance ID appear unavailable to the CLI.
Real-World Analogy
Starting a stopped instance is turning a parked computer back on. Its saved hard drive is still attached, but the temporary visitor phone number it had before may be different when it comes back online.
Overview
Use aws ec2 stop-instances to shut down an EBS-backed EC2 instance without deleting it. Compute billing stops once the instance is stopped, but its EBS volumes and other attached resources can remain billable.
Deep Dive
Stop an EBS-backed instance with its instance ID:
aws ec2 stop-instances --instance-ids i-0123456789abcdef0
The lifecycle normally moves from running to stopping and then stopped. Confirm the final state before treating the maintenance action as complete:
aws ec2 describe-instances \
--instance-ids i-0123456789abcdef0 \
--query "Reservations[0].Instances[0].State.Name" \
--output text
Stopping is different from terminating. A stopped EBS-backed instance keeps its instance configuration and attached EBS volumes so it can be started later. The root volume, additional EBS volumes, snapshots, and an unused Elastic IP can still create charges. Data on instance-store volumes does not survive a stop/start lifecycle.
Do not use a stop command as a substitute for a backup plan. A stop is a lifecycle action, not a snapshot, AMI, or disaster-recovery operation.
Decision hook: temporarily stop paying for EC2 compute while preserving an EBS-backed machine for later → stop it. Permanently retire the machine after handling anything that must be retained → terminate it and clean up dependent resources.
Exam Relevance
The key distinction is compute versus storage: stopping stops instance compute charges, while EBS storage persists and remains billable. Instance-store data is ephemeral and is lost when the instance stops or terminates.
Real-World Analogy
Stopping an instance is shutting down a rented workstation while leaving its hard drive in the locked desk drawer. You no longer pay for the powered-on computer, but you still rent the desk and drive until you remove them.
Overview
An Elastic IP is a static public IPv4 address allocated to your AWS account in one Region. Allocate it first, then associate its allocation ID with an EC2 instance when you need a stable public address across instance stop/start cycles.
Deep Dive
A normal public IPv4 address can change when you stop and start an EC2 instance. An Elastic IP (EIP) is a public IPv4 address that you allocate to your account and then associate explicitly.
Allocate an EIP for use in a VPC:
aws ec2 allocate-address --domain vpc
Save the returned AllocationId, then associate it with the instance:
aws ec2 associate-address \
--instance-id i-0123456789abcdef0 \
--allocation-id eipalloc-0123456789abcdef0
The association response contains an AssociationId. Record both IDs: the allocation identifies the address you own, while the association identifies its current attachment. You can inspect allocated addresses with:
aws ec2 describe-addresses
Use an EIP only when the stable public IPv4 address is actually required. AWS charges for public IPv4 addresses, and an allocated address that is not associated with a running resource is a common avoidable cost. DNS names, load balancers, and other architectures are often better than depending on one instance's public address.
Decision hook: a workload truly needs the same public IPv4 address after an EC2 stop/start → allocate and associate an Elastic IP. Need a stable application endpoint rather than a fixed server address → consider DNS or a load balancer instead.
Exam Relevance
Elastic IP addresses are regional static public IPv4 addresses that are allocated to an account and associated with an instance or network interface. They are not the same as a private IP address, and they are limited resources with cost implications.
Real-World Analogy
An Elastic IP is a permanent business phone number you can route to a particular desk. A normal public IP is a temporary extension assigned when that desk is powered on; it may change the next time the desk opens.
Overview
Release an Elastic IP when you no longer need the static public IPv4 address. If it is still associated, disassociate it first; releasing removes the allocation from your account and returns the address to AWS for possible reassignment.
Deep Dive
First inspect the address and identify its allocation and association IDs:
aws ec2 describe-addresses
If the address is associated, disassociate it before release:
aws ec2 disassociate-address \
--association-id eipassoc-0123456789abcdef0
Then release the allocation:
aws ec2 release-address \
--allocation-id eipalloc-0123456789abcdef0
Releasing is different from stopping an instance. Stopping leaves an associated EIP allocated to your account; releasing gives up the address entirely. Once released, you cannot assume you will receive the same public IPv4 address again.
Before releasing, verify that no DNS record, firewall allow list, webhook callback, partner integration, or documentation still expects that address. Update consumers first, then remove the association and allocation.
Decision hook: the application no longer needs this static public IPv4 address and every dependency has been moved → disassociate it, then release it to avoid unused-address charges.
Exam Relevance
An Elastic IP that is no longer needed should be released to avoid unnecessary public-IPv4 costs. You must distinguish disassociating an EIP from releasing it: disassociation detaches it, while release returns the allocation to AWS.
Real-World Analogy
Disassociating an Elastic IP is unplugging a reserved phone number from a desk. Releasing it is cancelling the number entirely, so another customer may eventually receive it.
Overview
The tutorials run under an administrator CLI profile for convenience, but real-world (and exam) best practice is the principle of least privilege combined with temporary, time-limited credentials obtained through browser-based authentication rather than stored long-term keys.
Deep Dive
Why the demo uses an admin profile
The instructor's CLI is configured with an admin-level profile to avoid repeatedly switching to a restricted demo user and granting/revoking permissions mid-tutorial.
If you follow along with a more restricted IAM identity, you may hit permission errors caused by the policies attached to your account — that's expected, not a bug in the steps.
Least privilege in practice
Always grant the minimum permissions needed to do the job, both in real environments and on the exam.
Broad/admin access is a convenience for learning, never a production pattern.
Cost awareness
Be careful with any resources you create while following along.
Explicitly destroy, terminate, shut down, or pause resources that incur charges, and understand which ones will cost money before creating them.
Credential handling
Do not store long-lived credentials (access keys/secrets) on your computer or in the CLI config.
Use temporary, time-limited credentials instead.
The recommended pattern: CLI login triggers a browser-based authentication flow, the same one used to log into the AWS Console. Whatever identity you authenticate as in the browser is the identity your CLI session assumes.
Exam Relevance
SAA-C03 tests IAM security best practices directly:
Least privilege is a core exam theme — expect scenario questions asking you to pick the most restrictive policy that still allows a task to succeed.
Temporary credentials via AWS STS (AssumeRole) and AWS IAM Identity Center (SSO) browser-based login are the preferred pattern over long-lived IAM user access keys.
Common distractors: answers that suggest embedding access keys in code/config, using root account credentials for daily tasks, or granting AdministratorAccess for convenience — these are almost always wrong on the exam even if operationally "simpler."
Know that long-term access keys are discouraged in favor of temporary, automatically expiring credentials tied to a federated or SSO identity.
Real-World Analogy
Think of it like a hotel giving you a key card scoped to your room and valid only until checkout, instead of a master key with no expiration — you get exactly the access you need, for exactly as long as you need it, and it stops working automatically instead of relying on you to hand it back.
Overview
CloudFormation is AWS's native infrastructure-as-code: you describe resources in a template, and it creates and manages them as a single unit called a stack. Change sets let you preview exactly what a template update will do before you apply it.
Deep Dive
You write a template (YAML/JSON) declaring resources; CloudFormation provisions them as a stack and tracks their state. If creation fails, it rolls back automatically, so you never end up half-built.
Resources:
ReportsBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-reports-bucket
VersioningConfiguration: { Status: Enabled }
aws cloudformation deploy --template-file bucket.yaml --stack-name reports
Key capabilities the exam tests:
Change sets — generate a diff of what an update will add/modify/replace (some property changes force resource replacement) so there are no surprises before you execute.
Drift detection — flags resources changed outside CloudFormation.
Stacks are the unit of lifecycle — delete the stack, delete its resources (unless retained). Nested stacks and StackSets (deploy across accounts/Regions) handle scale.
Parameters, Mappings, Outputs make templates reusable; deletion policies protect data.
Decision hook: repeatable, version-controlled, self-documenting infrastructure with automatic rollback → CloudFormation. "Preview the impact of a change before applying" → change set. "Something was modified manually" → drift detection. Deploy the same stack to many accounts/Regions → StackSets.
Exam Relevance
A stack manages resources as one unit, and a change set previews proposed create, modify, and delete actions before execution. Use drift detection to find changes made outside the template.
Real-World Analogy
A CloudFormation stack is a building managed from one blueprint. A change set is the renovation proposal showing which walls move before work begins, while drift detection finds unrecorded changes made by occupants.
Overview
This lesson introduces AWS CloudFormation by writing a minimal YAML template that defines a single S3 bucket, then deploying it as a stack from the CLI. It covers core terminology (template, stack, logical ID, physical resource) and demonstrates stack drift by manually deleting a resource the stack created.
Deep Dive
CloudFormation basics
CloudFormation is AWS's infrastructure-as-code (IaC) service. You describe the resources you want in a template file, then CloudFormation creates, updates, or deletes those resources for you as a single unit called a stack.
Key terminology
Template – the YAML (or JSON) file that describes the desired infrastructure. YAML is preferred for templates because it's more human-readable than JSON.
Logical ID – the name you give a resource inside the template (e.g., PhotoBucket). This is a programmatic label only; it is not the resource's actual AWS name.
Physical resource – the real resource AWS creates in your account. For S3 buckets, AWS auto-generates a globally unique physical name; you don't control it directly through the logical ID.
Stack – the deployed collection of resources created from a template, tracked and managed together under a stack name you choose.
Writing the template
A minimal template needs a Resources section, a logical ID, and a resource Type:
Resources:
PhotoBucket:
Type: AWS::S3::Bucket
This tells CloudFormation: under Resources, create one resource, refer to it internally as PhotoBucket, and make it an S3 bucket.
Deploying the stack
aws cloudformation deploy --template-file photobucket.yaml --stack-name photo-demo
--template-file points to the template being deployed.
--stack-name names the resulting stack (photo-demo). The stack name is independent of any logical ID inside the template — the same template can be deployed multiple times under different stack names to produce separate, identical sets of resources.
After deployment, CloudFormation reports stack creation status, and the described resource (the S3 bucket) appears in the account with an AWS-generated physical name.
Stack drift
If you manually change or delete a resource that CloudFormation created — for example, deleting the S3 bucket directly from the S3 console — the stack itself is not updated or removed. The stack's recorded state no longer matches the real infrastructure. This mismatch is called stack drift, and it's a common operational problem once teams start making out-of-band changes via the console, CLI, or SDKs instead of through the template.
Cleanup
Deleting the entire stack (rather than individual resources) removes everything CloudFormation created for it, which is the correct way to tear down infrastructure that was provisioned as code.
Exam Relevance
SAA-C03 tests CloudFormation vocabulary precisely — expect questions that require distinguishing:
Template vs. stack: the template is the static definition file; the stack is the live, deployed instance of that definition.
Logical ID vs. physical ID: the logical ID is the name used inside the template and in intrinsic functions like Ref; the physical ID/name is what AWS actually assigns the resource. A distractor answer often conflates these.
Stack drift: recognize that manually modifying or deleting a stack-managed resource does not update the stack, and that CloudFormation provides drift detection to identify these mismatches — a frequent exam scenario for "resources were changed outside CloudFormation, what happened?"
Change sets: not covered in this video, but a related exam term — a change set previews what will happen (resource additions, modifications, replacements) before you execute a stack update, letting you avoid unintended replacements or deletions.
YAML vs. JSON: both are valid template formats; YAML is generally favored for readability, but this is not itself an exam-critical distinction beyond knowing both are supported.
A common distractor is assuming deleting the stack is the same as deleting resources manually, or vice versa — only deleting the stack guarantees CloudFormation reconciles and removes everything it provisioned.
Real-World Analogy
Think of the template as a blueprint and the stack as the actual city built from it. The blueprint might define a bucket (a building); when CloudFormation deploys it under a given stack name, it's like naming that construction project "Greenville." The same blueprint can be reused to build "Charleston" or "Atlanta" — different stacks, same design. If someone bulldozes a building without updating the blueprint's records, the city plan and the actual city no longer match — that's stack drift.
Learn how AWS services fit together—and how to choose between them.
This course supports your preparation for the AWS Certified Solutions Architect – Associate (SAA-C03) exam through short video lessons, practical walkthroughs, and detailed written explanations. Start with account security and your first EC2 instance, then work through the services and design decisions behind secure, resilient, high-performing, and cost-effective architectures.
Build a practical foundation
Follow lessons on securing your root user, configuring IAM access, setting billing alerts, and working with the AWS CLI. Explore EC2, connect to an instance, and use S3 commands to upload, download, sync, and restore files. A photo-backup example connects individual commands to a useful workflow. Networking lessons introduce VPCs, public and private subnets, routing, security groups, and connectivity.
Understand the architectural choices
Compare compute and storage options, load balancing and scaling approaches, relational and NoSQL databases, and caching services. Study serverless systems, containers, messaging, encryption, monitoring, governance, migration, and disaster recovery. Learn to connect requirements such as availability, recovery time, access control, and cost to a suitable AWS design.
Study in manageable pieces
The curriculum includes 152 lessons across 27 sections, combining 61 focused videos with written lessons. The video portion runs approximately 4 hours; reading and hands-on work require additional time. Some topics are taught through written lessons rather than video. Written explanations provide service comparisons, exam relevance, and practical analogies where applicable.
Bring the pieces together
Later sections cover architecture patterns and tradeoffs, followed by guidance on reading scenario questions, recognizing distractors, reviewing exam domains, and planning timed practice. Use the material to build understanding, revisit unfamiliar services, and support a broader exam-preparation plan.
No prior AWS certification is required. Basic computer and networking familiarity will help. An AWS account is needed to follow the hands-on activities, and AWS usage may incur charges. Budget alerts and resource cleanup are important parts of responsible practice.
This is an independently created educational course. AWS certification and exam registration are separate from course enrollment.