
Answer-first summary for fast verification
Answer: Include the MD5 checksum within the Content-MD5 parameter. Check the operation call’s return status to find out if an error was returned., Check the returned response for the ETag. Compare the returned ETag against the MD5 checksum.
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.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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?
A
Check the returned response for the VersionId. Compare the returned VersionId against the MD5 checksum.
B
Include the MD5 checksum within the Content-MD5 parameter. Check the operation call’s return status to find out if an error was returned.
C
Include the checksum digest within the tagging parameter as a URL query parameter.
D
Check the returned response for the ETag. Compare the returned ETag against the MD5 checksum.
E
Include the checksum digest within the Metadata parameter as a name-value pair. After upload, use the S3 HeadObject operation to retrieve metadata from the object.