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
- 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.
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.