Skip to content

Shared Responsibility & IAM

Lesson 1 of 20 · 6 min

Shared Responsibility & IAM

Step 1 of 10

The split first: AWS secures the hardware, network and hypervisor. What you configure — data, OS patches, who may call what — is yours.

The Idea

AWS secures the cloud itself: facilities, hardware, network and the virtualization layer. You secure what you put in it: your data, guest OS patches, firewall rules, encryption — and IAM, which decides who may call which API. Every request is denied by default, allowed only by an explicit Allow, and an explicit Deny beats any Allow.

Real-World Example

An app on EC2 needs to read one S3 bucket. Instead of an access key in a config file, it gets an IAM role through an instance profile. The role's credentials are temporary and updated automatically, and its policy allows s3:GetObject on that bucket and nothing more.

The Tradeoff

Least privilege is slower at first: permissions are added as the code needs them. IAM Access Analyzer can generate a policy from the access activity CloudTrail recorded, so start narrow and widen with evidence.

Hands-On

Your turn

Put the steps in the right order.

  1. Check every applicable policy for an explicit Deny
  2. If nothing allowed the request, deny it by default
  3. The app signs its request with the role's temporary credentials
  4. Look for an explicit Allow that matches the action and resource

Mini quiz

1 / 3

A request matches an explicit Allow in one policy and an explicit Deny in another. The result?

Sources

Certification prepPreparing for Data Engineer Associate? Try the free 45-question practice exam

ReferenceBig-O cheat sheetPatterns cheat sheet