0
0
AWScloud~20 mins

IAM users and groups in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
IAM Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate
2:00remaining
What happens when an IAM user is removed from a group?

Consider an IAM user who is part of a group with specific permissions. What is the effect on the user's permissions immediately after they are removed from that group?

AThe user’s permissions are unaffected because group membership changes do not apply to existing users.
BThe user retains the group permissions until they log out and log back in.
CThe user keeps the group permissions permanently unless explicitly revoked.
DThe user immediately loses all permissions granted by the group.
Attempts:
2 left
πŸ’‘ Hint

Think about how AWS evaluates permissions dynamically.

❓ Architecture
intermediate
2:00remaining
How to organize IAM users for a company with multiple departments?

A company has three departments: Sales, Engineering, and HR. Each department needs different AWS permissions. What is the best way to organize IAM users and groups to manage permissions efficiently?

ACreate one IAM group per department and assign users to their respective groups with department-specific policies.
BCreate one IAM group for all users and assign all permissions to that group.
CCreate individual IAM users with unique policies for each user without using groups.
DAssign permissions directly to IAM users without using groups or roles.
Attempts:
2 left
πŸ’‘ Hint

Think about how groups help manage permissions for many users.

❓ security
advanced
2:00remaining
What is the security risk of assigning permissions directly to IAM users instead of groups?

Consider a scenario where permissions are assigned directly to individual IAM users rather than through groups. What is a key security risk of this approach?

AIt increases the chance of inconsistent permissions and makes auditing difficult.
BIt automatically grants admin access to all users.
CIt disables multi-factor authentication for users.
DIt prevents users from accessing AWS services.
Attempts:
2 left
πŸ’‘ Hint

Think about managing many users and tracking their permissions.

🧠 Conceptual
advanced
2:00remaining
What is the effect of attaching multiple policies to an IAM group?

If an IAM group has multiple policies attached, how are the permissions combined for users in that group?

AOnly the permissions from the first attached policy are applied.
BPermissions from all policies are combined, granting the union of all allowed actions.
CPermissions are intersected, so only actions allowed by all policies are granted.
DThe last attached policy overrides all previous policies.
Attempts:
2 left
πŸ’‘ Hint

Think about how AWS evaluates multiple policies together.

βœ… Best Practice
expert
2:00remaining
How to securely grant temporary elevated permissions to an IAM user?

An IAM user needs temporary elevated permissions for a specific task. Which approach follows AWS best practices for security?

AAttach the elevated permissions policy directly to the user permanently.
BAdd the user to a group with elevated permissions permanently and remove them after the task.
CCreate a role with the elevated permissions and allow the user to assume that role temporarily.
DCreate a new IAM user with elevated permissions and share the credentials.
Attempts:
2 left
πŸ’‘ Hint

Think about temporary access and avoiding permanent permission changes.