AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 108

A DevOps engineer is working on a data archival project that requires the migration of on-premises data to an Amazon S3 bucket. The DevOps engineer develops a script that incrementally archives on-premises data that is older than 1 month to Amazon S3. Data that is 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 notices that the script does not verify whether the data was successfully copied to Amazon S3. The DevOps engineer must update the script to ensure that data is not corrupted during transmission. The script must use MD5 checksums to verify data integrity before the on-premises data is deleted.

Which solutions for the script will meet these requirements? (Choose two.)

Answer options

Correct answer: B, D

Explanation

Option B is correct because including the MD5 checksum in the Content-MD5 parameter allows verification of the data integrity during the upload process, and checking the return status ensures that no errors occurred. Option D is also correct as comparing the returned ETag with the MD5 checksum provides a means to verify that the uploaded object matches the intended content. Options A, C, and E are incorrect as they do not adequately ensure data integrity verification during the upload process.