
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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?
A
Create an S3 Glacier vault. Apply a write-once, read-many (WORM) vault lock policy to the objects.
B
Create an S3 bucket with S3 Object Lock enabled. Enable versioning. Set a retention period of 100 years. Use governance mode as the S3 bucket’s default retention mode for new objects.
C
Create an S3 bucket. Use AWS CloudTrail to track any S3 API events that modify the objects. Upon notification, restore the modified objects from any backup versions that the company has.
D
Create an S3 bucket with S3 Object Lock enabled. Enable versioning. Add a legal hold to the objects. Add the s3:PutObjectLegalHold permission to the IAM policies of users who need to delete the objects.
Explanation:
Correct Answer: D
Why Option D is correct:
s3:PutObjectLegalHold permission to specific IAM policies, only authorized users can remove the legal hold and then delete objectsWhy other options are incorrect:
Option A: S3 Glacier vaults are for archival storage, not for active S3 storage. WORM vault lock policies apply to Glacier, not S3 objects.
Option B: Setting a fixed 100-year retention period doesn't meet the "nonspecific amount of time" requirement. Governance mode with fixed retention periods is too rigid for the requirement of "until the company decides to modify the objects."
Option C: This is a reactive approach rather than preventive. It relies on detecting changes after they happen and restoring from backups, which doesn't prevent modification in the first place.
Key AWS Concepts:
This solution provides the flexibility needed while ensuring data immutability until the company decides to make changes.