AWS Certified Solutions Architect – Professional — Question 116
Which is a valid Amazon Resource name (ARN) for IAM?
Answer options
- A. aws:iam::123456789012:instance-profile/Webserver
- B. arn:aws:iam::123456789012:instance-profile/Webserver
- C. 123456789012:aws:iam::instance-profile/Webserver
- D. arn:aws:iam::123456789012::instance-profile/Webserver
Correct answer: B
Explanation
The correct answer is B, as it follows the proper ARN format, which includes the 'arn' prefix, service name, account ID, and the resource type and name. Option A is incorrect because it is missing the 'arn' prefix. Option C does not conform to the ARN structure, and option D has an extra colon which makes it invalid.