nerdexam
Amazon

DVA-C02 · Question #657

A team of developers is creating an application that writes data to Amazon S3. Part of the application needs to programmatically append data to an existing file that is in Amazon S3. Which solution…

The correct answer is D. Download the contents of the existing file. Concatenate the contents of the existing file and the. Amazon S3 objects are immutable - you cannot append in place. To add data to an existing object, your application must first retrieve (download) the current file, concatenate the new content, and then perform a PutObject (or multipart upload) to overwrite the object with the…

Submitted by yuki_2020· Mar 5, 2026Development with AWS Services

Question

A team of developers is creating an application that writes data to Amazon S3. Part of the application needs to programmatically append data to an existing file that is in Amazon S3. Which solution will meet this requirement?

Options

  • AUse a PutObject API call. Include the new data, the location of the existing object, and an integer
  • BUse an UploadPart API call. Include the new data, the location of the existing object, and an
  • CUse a SelectObjectContent API call. Include the new data, the Amazon Resource Name (ARN) of
  • DDownload the contents of the existing file. Concatenate the contents of the existing file and the

How the community answered

(43 responses)
  • A
    12% (5)
  • B
    2% (1)
  • C
    5% (2)
  • D
    81% (35)

Explanation

Amazon S3 objects are immutable - you cannot append in place. To add data to an existing object, your application must first retrieve (download) the current file, concatenate the new content, and then perform a PutObject (or multipart upload) to overwrite the object with the combined data. This approach ensures the file in S3 always reflects the appended content.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice