Possible Certification Questions on IAM Service
Below are the possible questions and their answer that might ask in upcomming AWS certification exam like AWS Cloud Practitioner (CLF-02), AWS AI Practitioner etc.
1. Which AWS service is used to manage users and their permissions in AWS?
A) Amazon EC2
B) AWS Identity and Access Management (IAM)
C) Amazon S3
D) AWS CloudTrail
Answer: B
2. What is the main benefit of using IAM groups?
A) To monitor user activity
B) To assign permissions to multiple users at once
C) To encrypt user passwords
D) To create temporary users
Answer: B
3. What is an IAM policy?
A) A document that defines permissions for actions on AWS resources
B) A list of users in an AWS account
C) A monitoring tool for AWS resources
D) A billing report for AWS usage
Answer: A
4. What happens if a user is not explicitly granted permission to access an AWS resource?
A) The user has full access by default
B) The user is denied access by default
C) The user can request access through the AWS Management Console
D) The user can access the resource only during business hours
Answer: B
5. Which of the following is a best practice for managing IAM user permissions?
A) Assign permissions directly to each user
B) Use IAM groups to assign permissions
C) Give all users administrator access
D) Share user credentials among team members
Answer: B
6. Which IAM entity can you attach a policy to?
A) Only users
B) Users, groups, and roles
C) Only groups
D) Only roles
Answer: B
7. What is the effect of an explicit "Deny" in an IAM policy?
A) It overrides any "Allow" permissions
B) It is ignored if there is an "Allow"
C) It only applies to root users
D) It is only valid for S3 buckets
Answer: A
8. Which type of policy would you use to grant cross-account access to an S3 bucket?
A) Identity-based policy
B) Resource-based policy
C) Permissions boundary
D) Service control policy
Answer: B
9. What is the default maximum number of IAM users per AWS account?
A) 10
B) 50
C) 100
D) 5000
Answer: C
10. Which of the following is NOT a valid IAM policy type?
A) Identity-based policy
B) Resource-based policy
C) Network-based policy
D) Permissions boundary
Answer: C
11. What is the purpose of a permissions boundary in IAM?
A) To define the maximum permissions an IAM entity can have
B) To encrypt IAM user credentials
C) To monitor IAM activity
D) To create temporary users
Answer: A
12. How can you assign the same set of permissions to multiple IAM users efficiently?
A) Attach the policy to each user individually
B) Add users to an IAM group and attach the policy to the group
C) Use a resource-based policy
D) Use a service control policy
Answer: B
13. Which policy element specifies the AWS service action in a policy statement?
A) Effect
B) Action
C) Resource
D) Condition
Answer: B
14. What is the default behavior if a user has no policies attached?
A) The user has full access
B) The user has no access
C) The user can only access S3
D) The user can only access IAM
Answer: B
15. Which of the following is a recommended security best practice for IAM users?
A) Use the root account for daily tasks
B) Enable multi-factor authentication (MFA)
C) Share passwords among users
D) Disable CloudTrail logging
Answer: B
16. What is the purpose of an IAM role?
A) To provide temporary access to AWS resources
B) To monitor AWS billing
C) To encrypt S3 buckets
D) To create EC2 instances
Answer: A
17. Which AWS service can be used to centrally manage multiple AWS accounts and apply policies across them?
A) AWS CloudFormation
B) AWS Organizations
C) Amazon S3
D) AWS Lambda
Answer: B
18. What is the recommended way to provide an application running on an EC2 instance with permissions to access other AWS services?
A) Store AWS credentials in the application code
B) Assign an IAM role to the EC2 instance
C) Use the root account credentials
D) Share user credentials
Answer: B
19. Which of the following actions can be controlled by an IAM policy?
A) Starting and stopping EC2 instances
B) Accessing objects in S3 buckets
C) Creating and deleting DynamoDB tables
D) All of the above
Answer: D
20. What is the AWS root user?
A) A user with no permissions
B) The first account created when you sign up for AWS, with full access to all resources
C) A user created by IAM
D) A user with read-only access
Answer: B
