exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 89 discussion

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

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
haazybanj
Highly Voted 1 year, 3 months ago
Selected Answer: BD
B. Explanation: When using the S3 PutObject operation, you can include the MD5 checksum of the object in the Content-MD5 parameter of the request. Amazon S3 will calculate the MD5 checksum of the object and compare it to the provided checksum. If the checksums do not match, Amazon S3 will return an error response, indicating that the data integrity check failed. This way, you can ensure that the data was successfully copied to Amazon S3 without corruption. D. Explanation: When you use the S3 PutObject operation, it returns an ETag in the response, which is the MD5 checksum of the object that was stored in Amazon S3. After performing the upload, you can check the returned ETag against the MD5 checksum you have locally calculated. If they match, it means the data was transferred successfully without corruption. If they don't match, it indicates a data integrity issue, and you can take appropriate actions.
upvoted 11 times
...
GripZA
Most Recent 1 week, 6 days ago
Selected Answer: BD
B: the content-MD5 header is used to provide a base64encoded 128-bit MD5 digest of the object data when included in a PutObject request, S3 checks the provided MD5 against what it calculates during upload If the checksums dont match, the request fails with an error (like http 4xx) this will ensure data was not corrupted during upload D: for single part uploads, the ETag returned by S3 is usually the MD5 checksum of the object. by calculating the MD5 of the local file and comparing it to the returned ETag, the script can verify integrity
upvoted 1 times
...
dzn
8 months, 1 week ago
Selected Answer: BD
If the object was created by a PutObject, PostObject, or Copy operation, or via the AWS Management Console, and the object is either plain text or encrypted with server-side encryption using the Amazon S3 managed key ( SSE-S3), the object's ETag is the MD5 digest of the object data.
upvoted 3 times
...
thanhnv142
9 months ago
Selected Answer: BD
B and D are correct: <verify whether the data was successfully copied to Amazon S3> means we need to check <operation call’s return status> code. <use MD5 checksums to verify data integrity> means we need to check ETag A: no mention of ETag C and E: no mention of ETag or return status code
upvoted 3 times
...
rhinozD
1 year, 4 months ago
Selected Answer: BD
BD refer this link: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
upvoted 4 times
...
devnv
1 year, 5 months ago
BD are correct
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago