AWS Certified Solutions Architect – Associate (SAA-C02) — Question 648

A company needs to store data in Amazon S3 and must prevent the data from being changed. The company wants new objects that are uploaded to Amazon S3 to remain unchangeable for a nonspecific amount of time until the company decides to modify the objects. Only specific users in the company's AWS account can have the ability to delete the objects.
What should a solutions architect do to meet these requirements?

Answer options

Correct answer: D

Explanation

Amazon S3 Object Lock legal hold prevents an object version from being overwritten or deleted indefinitely until the hold is explicitly removed, making it ideal for nonspecific durations. By restricting the s3:PutObjectLegalHold permission to specific IAM users, the company ensures that only designated personnel can lift the hold to modify or delete the data. Retention periods (such as 100 years in governance mode) are less suitable because they enforce a fixed time frame rather than an indefinite, on-demand duration.