AWS Certified SysOps Administrator – Associate — Question 369
A company is uploading important files as objects to Amazon S3. The company needs to be informed if an object is corrupted during the upload.
What should a SysOps administrator do to meet this requirement?
Answer options
- A. Pass the Content-Disposition value as a request body during the object upload
- B. Pass the Content-MD5 value as a request header during the object upload
- C. Pass x-amz-object-lock-mode as a request header during the object upload
- D. Pass x-amz-server-side-encryption-customer-algorithm as a request body during the object upload
Correct answer: B
Explanation
Providing the Content-MD5 header during an Amazon S3 upload forces Amazon S3 to calculate the MD5 hash of the received object and compare it to the provided value, failing the upload if a mismatch occurs. The other options, such as Content-Disposition, Object Lock, and SSE-C parameters, do not provide data integrity verification during transit.