nerdexam
Amazon

DOP-C02 · Question #231

A company releases a new application in a new AWS account. The application includes an AWS Lambda function that processes messages from an Amazon Simple Queue Service (Amazon SQS) standard queue…

The correct answer is D. Keep the Lambda function's batch size the same. Configure the Lambda function to report failed. https://docs.aws.amazon.com/prescriptive-guidance/latest/lambda-event-filtering-partial-batch- responses-for-sqs/best-practices-partial-batch-responses.html

Submitted by tunde_lagos· Mar 6, 2026Reliability & Resilience

Question

A company releases a new application in a new AWS account. The application includes an AWS Lambda function that processes messages from an Amazon Simple Queue Service (Amazon SQS) standard queue. The Lambda function stores the results in an Amazon S3 bucket for further downstream processing. The Lambda function needs to process the messages within a specific period of time after the messages are published. The Lambda function has a batch size of 10 messages and takes a few seconds to process a batch of messages. As load increases on the application's first day of service, messages in the queue accumulate at a greater rate than the Lambda function can process the messages. Some messages miss the required processing timelines. The logs show that many messages in the queue have data that is not valid. The company needs to meet the timeline requirements for messages that have valid data. Which solution will meet these requirements?

Options

  • AIncrease the Lambda function's batch size. Change the SQS standard queue to an SQS FIFO
  • BReduce the Lambda function's batch size. Increase the SQS message throughput quota. Request
  • CIncrease the Lambda function's batch size. Configure S3 Transfer Acceleration on the S3 bucket.
  • DKeep the Lambda function's batch size the same. Configure the Lambda function to report failed

How the community answered

(51 responses)
  • A
    10% (5)
  • B
    6% (3)
  • C
    18% (9)
  • D
    67% (34)

Explanation

https://docs.aws.amazon.com/prescriptive-guidance/latest/lambda-event-filtering-partial-batch- responses-for-sqs/best-practices-partial-batch-responses.html

Topics

#Lambda SQS integration#SQS message processing#Lambda batching#Message failure handling

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice