ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 60 - DOP-C02 discussion

Report
Export

An Amazon EC2 instance is running in a VPC and needs to download an object from a restricted Amazon S3 bucket. When the DevOps engineer tries to download the object, an AccessDenied error is received,

What are the possible causes tor this error? (Select TWO,)

A.
The 53 bucket default encryption is enabled.
Answers
A.
The 53 bucket default encryption is enabled.
B.
There is an error in the S3 bucket policy.
Answers
B.
There is an error in the S3 bucket policy.
C.
The object has been moved to S3 Glacier.
Answers
C.
The object has been moved to S3 Glacier.
D.
There is an error in the IAM role configuration.
Answers
D.
There is an error in the IAM role configuration.
E.
S3 Versioning is enabled.
Answers
E.
S3 Versioning is enabled.
Suggested answer: B, D

Explanation:

These are the possible causes for the AccessDenied error because they affect the permissions to access the S3 object from the EC2 instance. An S3 bucket policy is a resource-based policy that defines who can access the bucket and its objects, and what actions they can perform. An IAM role is an identity that can be assumed by an EC2 instance to grant it permissions to access AWS services and resources. If there is an error in the S3 bucket policy or the IAM role configuration, such as a missing or incorrect statement, condition, or principal, then the EC2 instance may not have the necessary permissions to download the object from the S3 bucket .

https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html

asked 16/09/2024
Sergio Pena Ochoa
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first