nerdexam
Amazon

DOP-C02 · Question #72

A security review has identified that an AWS CodeBuild project is downloading a database population script from an Amazon S3 bucket using an unauthenticated request. The security team does not allow u

The correct answer is C. Remove unauthenticated access from the S3 bucket with a bucket policy. Modify the service role. It involves removing unauthenticated access from the S3 bucket with a bucket policy, which ensures that only authorized users or services can access the bucket.

Submitted by devops_kid· Mar 6, 2026Security & Compliance

Question

A security review has identified that an AWS CodeBuild project is downloading a database population script from an Amazon S3 bucket using an unauthenticated request. The security team does not allow unauthenticated requests to S3 buckets for this project. How can this issue be corrected in the MOST secure manner?

Options

  • AAdd the bucket name to the AllowedBuckets section of the CodeBuild project settings. Update the
  • BModify the S3 bucket settings to enable HTTPS basic authentication and specify a token. Update
  • CRemove unauthenticated access from the S3 bucket with a bucket policy. Modify the service role
  • DRemove unauthenticated access from the S3 bucket with a bucket policy. Use the AWS CLI to

How the community answered

(51 responses)
  • A
    12% (6)
  • B
    4% (2)
  • C
    80% (41)
  • D
    4% (2)

Explanation

It involves removing unauthenticated access from the S3 bucket with a bucket policy, which ensures that only authorized users or services can access the bucket.

Topics

#S3 bucket policies#CodeBuild service role#least privilege#authenticated access

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice