AWS Certified DevOps Engineer – Professional — Question 125

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 for verification of data integrity through the operation's return status. Option D is also correct since the ETag can be compared against the MD5 checksum to ensure that the data was uploaded correctly. Options A, C, and E do not provide a reliable method for verifying data integrity before deletion of the on-premises data.