6. Audit and Enforce Least-Privilege IAM Permissions
Beginner Mode
Start your terminal to use beginner mode.
Scenario
A security audit has flagged the IAM user app-deployer for having AdministratorAccess policy with far more permissions than needed. The user only needs access to:
- S3: Read (GetObject) and Add objects (PutObject), list buckets (ListBucket).
- CloudWatch Logs: Create log groups (CreateLogGroup), log streams (CreateLogStream), and put log events (PutLogEvents).
Task
- Inspect the current policies attached to the
app-deployeruser - Remove the overly broad
AdministratorAccesspolicy - Create a custom managed policy named
AppDeployerPolicythat grants only the required permissions listed above - Attach the new policy to the
app-deployeruser
Note: You can use either the AWS Management Console or AWS CLI to complete this task.
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
AWS Console Environment
Launch an AWS environment to solve this challenge.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
Amazon
Accenture
Coinbase
Adobe
EPAM
Twitch
Kayak
Autodesk
Lyft
Revolut
RedHat
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks