QuestionQ89

VerifiedSecurity

An IAM role is attached to an Amazon EC2 instance that explicitly denies access to all Amazon S3 API actions. The EC2 instance credentials file specifies the IAM access key and secret access key, which allow full administrative access.

Given that multiple modes of IAM access are present for this EC2 instance, which of the following is correct?

Explanation

The default AWS credential provider chain checks explicit credentials, such as those in a local credentials file, before falling back to the EC2 instance's role/instance-profile credentials. Since the credentials file specifies a separate IAM identity with full administrative access, calls made with those keys are evaluated under that identity's own policies and are unaffected by the explicit deny attached to the instance's IAM role, so full S3 access is possible. Learn more: Configure the AWS SDKs and Tools to use credentials

Community Discussion

No comments yet. Be the first to start the discussion!