ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 102 - DOP-C02 discussion

Report
Export

A company is using an AWS CodeBuild project to build and package an application. The packages are copied to a shared Amazon S3 bucket before being deployed across multiple AWS accounts.

The buildspec.yml file contains the following:

The DevOps engineer has noticed that anybody with an AWS account is able to download the artifacts.

What steps should the DevOps engineer take to stop this?

A.
Modify the post_build command to use --acl public-read and configure a bucket policy that grants read access to the relevant AWS accounts only.
Answers
A.
Modify the post_build command to use --acl public-read and configure a bucket policy that grants read access to the relevant AWS accounts only.
B.
Configure a default ACL for the S3 bucket that defines the set of authenticated users as the relevant AWS accounts only and grants read-only access.
Answers
B.
Configure a default ACL for the S3 bucket that defines the set of authenticated users as the relevant AWS accounts only and grants read-only access.
C.
Create an S3 bucket policy that grants read access to the relevant AWS accounts and denies read access to the principal ''*''.
Answers
C.
Create an S3 bucket policy that grants read access to the relevant AWS accounts and denies read access to the principal ''*''.
D.
Modify the post_build command to remove --acl authenticated-read and configure a bucket policy that allows read access to the relevant AWS accounts only.
Answers
D.
Modify the post_build command to remove --acl authenticated-read and configure a bucket policy that allows read access to the relevant AWS accounts only.
Suggested answer: D

Explanation:

When setting the flag authenticated-read in the command line, the owner gets FULL_CONTROL. The AuthenticatedUsers group (Anyone with an AWS account) gets READ access.

Reference: https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html

asked 16/09/2024
David Hartnett
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first