
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 has a serverless website with millions of objects in an Amazon S3 bucket. The company uses the S3 bucket as the origin for an Amazon CloudFront distribution. The company did not set encryption on the S3 bucket before the objects were loaded. A solutions architect needs to enable encryption for all existing objects and for all objects that are added to the S3 bucket in the future.
Which solution will meet these requirements with the LEAST amount of effort?
A
Create a new S3 bucket. Turn on the default encryption settings for the new S3 bucket. Download all existing objects to temporary local storage. Upload the objects to the new S3 bucket.
B
Turn on the default encryption settings for the S3 bucket. Use the S3 Inventory feature to create a .csv file that lists the unencrypted objects. Run an S3 Batch Operations job that uses the copy command to encrypt those objects.
C
Create a new encryption key by using AWS Key Management Service (AWS KMS). Change the settings on the S3 bucket to use server-side encryption with AWS KMS managed encryption keys (SSE-KMS). Turn on versioning for the S3 bucket.
D
Navigate to Amazon S3 in the AWS Management Console. Browse the S3 bucket's objects. Sort by the encryption field. Select each unencrypted object. Use the Modify button to apply default encryption settings to every unencrypted object in the S3 bucket.
Explanation:
Option B is the correct answer because it provides the most efficient and automated approach to encrypting millions of existing objects while ensuring future objects are encrypted.
Option A: This approach is inefficient and costly because:
Option C: This only addresses future objects, not existing ones. While turning on SSE-KMS with default encryption will encrypt new objects, it does nothing for the millions of existing unencrypted objects.
Option D: This is impractical for millions of objects. The AWS Management Console is not designed for bulk operations on millions of objects, and manually selecting each object would be impossible.
This solution meets both requirements: encrypting all existing objects (via S3 Batch Operations) and ensuring future objects are encrypted (via default encryption settings), with minimal manual effort.