
Answer-first summary for fast verification
Answer: When providing AWS credentials to individuals, When assigning users to IAM groups
The correct answers are B and D. IAM users are created for individuals who need to access AWS resources, and they can be used to sign in to the AWS Management Console or to make programmatic requests to AWS services. IAM users are also suitable when multi-factor authentication is required or when users need to access resources using the AWS API or CLI. IAM roles, on the other hand, are used to grant permissions to AWS resources or services, and they are often used for granting temporary access or cross-account access. Options A and C are incorrect because IAM roles can be attached to EC2 instances and used in mobile applications through AWS STS APIs. Option E is also incorrect as IAM roles can be used with identity federation to provide single sign-on capabilities.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Under what circumstances should a company opt to create an IAM user rather than an IAM role?
A
For applications on Amazon EC2 needing access to AWS services
B
When providing AWS credentials to individuals
C
For mobile applications accessing AWS
D
When assigning users to IAM groups