0
0
AWScloud~10 mins

IAM users and groups in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create an IAM user named 'Alice'.

AWS
aws iam create-user --user-name [1]
Drag options to blanks, or click blank then click option'
AAlice
BBob
CAdmin
DUser1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different user name than 'Alice'.
Leaving the user name blank.
2fill in blank
medium

Complete the code to add the user 'Alice' to the group named 'Developers'.

AWS
aws iam add-user-to-group --group-name [1] --user-name Alice
Drag options to blanks, or click blank then click option'
AManagers
BAdmins
CUsers
DDevelopers
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong group name.
Swapping user and group names.
3fill in blank
hard

Fix the error in the command to list all users in the group 'Admins'.

AWS
aws iam get-group --group-name [1]
Drag options to blanks, or click blank then click option'
AUsers
BManagers
CAdmins
DDevelopers
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong group name.
Using a command other than 'get-group'.
4fill in blank
hard

Fill both blanks to create a group named 'Testers' and attach the policy 'AmazonS3ReadOnlyAccess' to it.

AWS
aws iam create-group --group-name [1]
aws iam attach-group-policy --group-name [2] --policy-arn arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
Drag options to blanks, or click blank then click option'
ATesters
BAdmins
CDevelopers
DUsers
Attempts:
3 left
💡 Hint
Common Mistakes
Using different group names in the two commands.
Using a group name other than 'Testers'.
5fill in blank
hard

Fill all three blanks to create a user 'Bob', add him to the group 'Admins', and then delete the user.

AWS
aws iam create-user --user-name [1]
aws iam add-user-to-group --group-name [2] --user-name [3]
aws iam delete-user --user-name Bob
Drag options to blanks, or click blank then click option'
AAlice
BAdmins
CBob
DDevelopers
Attempts:
3 left
💡 Hint
Common Mistakes
Using different user names in create and add commands.
Using wrong group name.
Not matching the user name in delete command.