A repeatable workflow keeps sandbox learning safe: create account → secure root → create IAM admin → enable billing alerts → use named profiles → tag resources → tear down experiments.
Account setup checklist
- Create AWS account with strong root password
- Enable MFA on root (hardware or authenticator app)
- Create IAM user or SSO identity for daily Console/CLI work
- Enable AWS Budgets or billing alarms
- Never commit access keys to Git—use environment variables or a secrets manager
Free tier / sandbox safety: Stay within free-tier limits, set billing alerts, and tear down resources you create for learning. Never paste real access keys, secret keys, or passwords into lessons, tickets, or chat.
Named CLI profiles
aws configure --profile sandbox
export AWS_PROFILE=sandbox
aws sts get-caller-identitySeparate sandbox from work profiles to avoid accidental changes in the wrong account.
Resource tagging habit
# When launching resources, tag for cost tracking:
# Key: Environment Value: learning
# Key: Owner Value: your-name
# Console: EC2 → Tags tab, or use --tag-specifications on create
Teardown discipline
- Stop or terminate EC2 instances you no longer need
- Release unassociated Elastic IP addresses
- Delete empty S3 buckets (must be empty first)
- Remove NAT gateways and unused load balancers
Forward to Cybersecurity for identity hygiene and incident response basics.
Important interview questions and answers
- Q: Why avoid root for daily tasks?
A: Root has unrestricted access—compromised root keys are catastrophic; use IAM with least privilege. - Q: What is AWS_PROFILE?
A: Selects which named credential profile the CLI uses for a command session.
Self-check
- List three steps in a safe new-account workflow.
- Why tag resources with Environment=learning?
Challenge
Secure your sandbox account
- Enable MFA on root.
- Create IAM sandbox user.
- Configure
AWS_PROFILE=sandbox. - Set a billing alarm.
Done when: you can run CLI commands as the sandbox IAM user—not root.
Interview prep
- Root daily use?
Avoid—use IAM users/SSO with MFA; root only for break-glass account tasks.
- AWS_PROFILE?
Selects named CLI credential profile for sandbox vs work accounts.