Solved

A User Wants to List the IAM Role That Is

Question 246

Multiple Choice

A user wants to list the IAM role that is attached to their Amazon EC2 instance. The user has login access to the EC2 instance but does not have IAM permissions. What should a solutions architect do to retrieve this information?


A) Run the following EC2 command: curl http://169.254.169.254/latest/meta-data/iam/info
B) curl http://169.254.169.254/latest / user-data/iam/info
C) http://169.254.169.254/latest/dynamic/instance-identity/
D) Run the following AWS CLI command: aws iam get-instance-profile --instance-profile-name ExampleInstanceProfile

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions