Q: 16
An 1AM 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 1AM access key and secret access key, which
allow full administrative access.
Given that multiple modes of 1AM access are present for this EC2 instance, which of the following is
correct?
Options
Discussion
Option C, The trap here is thinking the instance profile deny overrides everything, but if there are admin keys in the credentials file they'll get used first (provider chain order). So full S3 access still works unless you remove those keys. Seen this come up on other practice exams, too.
Makes sense to go with B. Lambda@Edge requires the function to be created in us-east-1, no matter where the CloudFront or other resources are. Pretty sure that’s what causes the stack failure here. Agree?
B imo. Lambda@Edge deploys have to be in us-east-1 even if your stack is in another region. Seen this issue mentioned before.
C tbh, trap is thinking the instance role's deny wins but creds file takes priority. Seen similar in exam reports.
Be respectful. No spam.
Question 16 of 35