
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 save the results from a medical trial to an Amazon S3 repository. The repository must allow a few scientists to add new files and must restrict all other users to read-only access. No users can have the ability to modify or delete any files in the repository. The company must keep every file in the repository for a minimum of 1 year after its creation date.
Which solution will meet these requirements?
A
Use S3 Object Lock in governance mode with a legal hold of 1 year.
B
Use S3 Object Lock in compliance mode with a retention period of 365 days.
C
Use an IAM role to restrict all users from deleting or changing objects in the S3 bucket. Use an S3 bucket policy to only allow the IAM role.
D
Configure the S3 bucket to invoke an AWS Lambda function every time an object is added. Configure the function to track the hash of the saved object so that modified objects can be marked accordingly.
Explanation:
Correct Answer: B - Use S3 Object Lock in compliance mode with a retention period of 365 days.
Why this is correct:
S3 Object Lock in compliance mode provides the strongest protection against object deletion and modification:
Retention period of 365 days ensures that "every file in the repository for a minimum of 1 year after its creation date"
Access control can be managed separately using IAM policies and bucket policies to:
Why other options are incorrect:
A. S3 Object Lock in governance mode with a legal hold of 1 year:
C. Use an IAM role to restrict all users from deleting or changing objects:
D. Configure S3 bucket to invoke AWS Lambda function:
Key AWS Concepts:
This solution meets all requirements: immutable storage, 1-year retention, and controlled access permissions.