QuestionQ28

Security and Compliance

A DevOps engineer is working on a data-archival project that requires migrating on-premises data to an Amazon S3 bucket. The DevOps engineer creates a script that incrementally archives on-premises data older than 1 month to Amazon S3. Data transferred to Amazon S3 is deleted from the on-premises location. The script uses the S3 PutObject operation.

During a code review, the DevOps engineer finds that the script does not confirm whether the data was copied successfully to Amazon S3. The DevOps engineer must update the script to ensure that data is not corrupted in transit. The script must use MD5 checksums to verify data integrity before deleting the on-premises data.

Which solutions for the script meet these requirements?

Choose two
Explanation

Amazon S3 validates a supplied Content-MD5 value against the received object data and returns an error when the digests do not match. For a PutObject object whose ETag is its MD5 digest, comparing the returned ETag with the locally calculated MD5 also verifies that the uploaded content matches the source.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!