AWS Certified DevOps Engineer – Professional — Question 57

A DevOps engineer is developing an application for a company. The application needs to persist files to Amazon S3. The application needs to upload files with different security classifications that the company defines. These classifications include confidential, private, and public. Files that have a confidential classification must not be viewable by anyone other than the user who uploaded them. The application uses the IAM role of the user to call the S3 API operations.
The DevOps engineer has modified the application to add a DataClassification tag with the value of confidential and an Owner tag with the uploading user's ID to each confidential object that is uploaded to Amazon S3.
Which set of additional steps must the DevOps engineer take to meet the company's requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because modifying the S3 bucket policy allows for more granular control over access permissions based on the tags, ensuring that only the user who uploaded the confidential file can access it. Options A and D incorrectly suggest using ACLs, which are less flexible than bucket policies. Option C has an incorrect tag condition, using 'aws:RequestTag' instead of 's3:ExistingObjectTag', which would not properly enforce the owner's access control.