IAM Flashcards
What is Access Keys?
A pair of key consisting of the Access Key ID and the Secret Access Key.
While the ID is open (like a username) and shared, the Secret can only be downloaded once.
Do the Access Keys expire?
No - but it is best practice to rotate keys
How many Access Keys can a user have?
Two (doesn’t matter if active or inactive) - But you can always delete the keys
What is best practice to remove a key?
First set the key inactive - check for any problems.
Then delete the key and create a new one
What are the two “types” of policies and what are they attached/used for?
Identity policy: Given to a user or a group
Resource policy: Attached to a resource such as EC2
Describe the Attributes of a policy statement
Sid: Statement ID - What is the purpose?
Effect: What does the policy do? Allow / Deny
Action: Scope for the effect in terms of rights
Resource: What part of AWS is affected? (Service, S3 Bucket, DynamoDB table etc.)
Condition: Under what conditions does the policy take effect
What would dynamodb:Delete* do?
Access or denial of everything under :Delete
:DeleteBackup, :DeleteItem, :DeleteTable
What would dynamodb:*Table do?
Access or denial of everything ending with Table, dynamodb:CreateGlobalTable e.g.
What is the difference between and Permission and a Trust Policy?
Permission: Like a normal policy for a user, gives perssions to the role
Trust: Defines who can assume the role (EC2 e.g.)
Is it possible to give a role to resources in another account?
Yes, using the account in the trust policy
Can you restrict permissions to the Master Account in an AWS Organization?
No.
Only for Member Accounts or Organizational Units
What are the ways to add an account into an AWS Organization?
Invite an existing account
Create a new account
Which service control policy allows access to all AWS services within an attached member account?
FullAWSAccess
Is the master account affected by a SCP set on the root?
No, the master account is not affected by a Service Control Policy.
AWS Organizations use Inverse Tree Architecture, which starts at the root and flows onto any member or organization unit below.
How can you restrict a root user of an Organization Unit(!!) account?
By creating and attaching a service control policy