Week1: AWS IAM Fundamentals

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

39 Terms

1
New cards

What is the difference between Authentication and Authorization in AWS IAM?

Authentication proves who you are (e.g., password); Authorization determines whether you are allowed or denied access to AWS resources via policies.

2
New cards

What permissions does a newly created IAM user have by default?

Zero permissions — they can log into the console if enabled, but cannot perform any actions until policies are applied.

3
New cards

How do IAM User Groups simplify permissions management?

You attach a permissions policy to a group for a common job role, and all users in that group automatically inherit those permissions.

4
New cards

What happens if an IAM user is a member of multiple IAM User Groups?

The user gains multiple sets of permissions that are combined together.

5
New cards

What is an IAM Role used for?

Delegation — it is an identity with permissions assigned via a policy that can be temporarily assumed ("putting on a hat").

6
New cards

Which credentials are used for AWS Management Console login vs. CLI/API programmatic access?

Console: Account ID/Alias + Friendly Name + Password (+ MFA);

CLI/API: Access Key ID + Secret Access Key, or short-term credentials from AWS STS.

7
New cards

Why should you lock away the AWS Root User with a strong password and MFA instead of using it daily?

The root user has full, unrestricted access and most of its permissions cannot be restricted.

8
New cards
What is the primary purpose of AWS Security Token Service (STS)?
Provides short-lived, temporary security credentials for accessing AWS resources.
9
New cards
What container is used to attach an IAM role to an Amazon EC2 instance?
An Instance Profile.
10
New cards
Which API action does an EC2 instance call to assume an IAM role?
sts:AssumeRole
11
New cards
What is the difference between an IAM Role's Trust Policy and Permissions Policy?
The Trust Policy controls WHO can assume the role; the Permissions Policy defines WHAT actions are allowed or denied once assumed.
12
New cards
What 4 elements are included in AWS STS temporary security credentials?
Access Key, Secret Access Key, Session Token, and Expiration.
13
New cards
What happens when STS temporary credentials issued to an EC2 instance are about to expire?
They are automatically renewed via STS before expiration.
14
New cards
What are the 4 primary use cases for AWS STS temporary credentials?
Identity Federation, delegation, cross-account access, and IAM roles.
15
New cards
An EC2 instance receives STS temporary credentials from its role, but S3 rejects its write request. Which policy should you check?
The IAM role's Permissions Policy (not the Trust Policy, since the role was already assumed).
16
New cards
An EC2 instance cannot assume its attached IAM role at all. Which policy should you check?
The IAM role's Trust Policy (verify ec2.amazonaws.com is allowed to call sts:AssumeRole).
17
New cards
Error when CLI has NO credentials configured
Unable to locate credentials (vs AccessDenied when credentials exist without permission)
18
New cards
Error when credentials exist but IAM policy lacks permission
AccessDenied
19
New cards
Linux/macOS CLI credential & config file paths
~/.aws/credentials and ~/.aws/config
20
New cards
Windows CLI credential & config file paths
%USERPROFILE%\.aws\credentials and %USERPROFILE%\.aws\config (e.g., C:\Users\Administrator\.aws\)
21
New cards
Security risk of ~/.aws/credentials file
Stores access keys in plain text on disk; compromise exposes full identity permissions
22
New cards
CLI command to set access key, secret key, region, and output
aws configure
23
New cards
CLI command to test S3 bucket listing permissions
aws s3 ls
24
New cards
CLI command to view help for a specific service like EC2 or S3
aws <service> help (e.g., aws ec2 help, aws s3 help)
25
New cards
Keys to scroll and quit AWS CLI help pager
Space or Enter to scroll; q to quit
26
New cards
CLI command to list EC2 instances
aws ec2 describe-instances
27
New cards
EC2 lifecycle term instead of delete
terminate (e.g., terminate-instances)
28
New cards
CLI command to create an S3 bucket

aws s3 mb s3://[Bucket- name]

29
New cards
CLI command to copy a local file to S3

aws s3 cp s3:///[Bucket- name]

30
New cards
CLI command to list objects inside an S3 bucket

aws s3 ls s3://[Bucket- name]

31
New cards
CLI command to remove a non-empty S3 bucket

aws s3 rb s3://[Bucket- name] --force

32
New cards
Why aws s3 rb fails without --force on a non-empty bucket
Bucket is not empty; --force removes objects and then deletes the bucket
33
New cards
Why aws s3 mb can fail even with valid S3 permissions
Bucket name is not globally unique across all of Amazon S3
34
New cards
Meaning of blank output with no error on aws s3 ls
Authorized call succeeded and account has zero buckets
35
New cards
CLI flag to run a command using a named profile
--profile <profile-name> (e.g., aws ec2 describe-instances --profile ec2-role)
36
New cards
CLI command to create or update a named credential profile
aws configure --profile <name>
37
New cards
Where [profile <name>] role-assumption settings are placed
In the config file (~/.aws/config or %USERPROFILE%\.aws\config)
38
New cards
Where named profile access keys are added after aws configure --profile
In the credentials file (~/.aws/credentials or %USERPROFILE%\.aws\credentials)
39
New cards
Difference between [default] and --profile <name> in CLI calls
Unflagged commands use [default]; --profile <name> switches identity for that call