AWS Certified Solutions Architect – Professional — Question 370
Which of the following is true of an instance profile when an IAM role is created using the console?
Answer options
- A. The instance profile uses a different name.
- B. The console gives the instance profile the same name as the role it corresponds to.
- C. The instance profile should be created manually by a user.
- D. The console creates the role and instance profile as separate actions.
Correct answer: B
Explanation
When an IAM role is created via the AWS Management Console, AWS automatically provisions an instance profile and assigns it the exact same name as the role. If you use the AWS CLI or API instead, you would have to create the instance profile and associate it with the role as separate actions. The console simplifies this workflow by automating the creation and naming of the instance profile.