AWS Certified DevOps Engineer - Professional

AWS Certified DevOps Engineer - Professional

Get started today

Ultimate access to all questions.


A DevOps engineer is tasked with developing a script for a data archival project that involves migrating on-premises data older than one month to an Amazon S3 bucket. The script utilizes the S3 PutObject operation and must ensure that data is not corrupted during transmission. To achieve this, the script must verify data integrity using MD5 checksums before deleting the original on-premises data. Which methods should be implemented in the script to ensure data integrity during the migration process?





Explanation:

The correct answers are B and D. Option B involves including the MD5 checksum within the Content-MD5 parameter. Amazon S3 will compare the provided checksum with its own calculated checksum. If they do not match, an error is returned, ensuring data integrity. Option D suggests checking the returned response for the ETag, which is the MD5 checksum of the object stored in Amazon S3. By comparing the returned ETag with the locally calculated MD5 checksum, you can confirm whether the data was transferred without corruption. Both methods ensure that the data integrity is verified before deleting the on-premises data.