AWS Certified Data Engineer – Associate (DEA-C01) — Question 161

A company stores customer records in Amazon S3. The company must not delete or modify the customer record data for 7 years after each record is created. The root user also must not have the ability to delete or modify the data.

A data engineer wants to use S3 Object Lock to secure the data.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because enabling compliance mode ensures that no one, including the root user, can delete or alter the objects until the retention period expires. Option A, governance mode, allows certain users to bypass the retention settings, which does not satisfy the requirement of protecting the data from the root user. Options C and D do not provide the necessary restrictions on deletion or modification for the entire bucket as required.