nerdexam
Amazon

SAP-C02 · Question #164

An auction website enables users to bid on collectible items. The auction rules require that each bid is processed only once and in the order it was received. The current implementation is based on…

The correct answer is C. Refactor the web application to post each incoming bid to an Amazon SQS FIFO queue in place. FIFO is better in this case compared to Kinesis, as it guarantee the order of the bid. Min Max 1, is okay as the SQS will hold the queue in case of failure of the instance, till it come

Submitted by amina.ke· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

An auction website enables users to bid on collectible items. The auction rules require that each bid is processed only once and in the order it was received. The current implementation is based on a fleet of Amazon EC2 web servers that write bid records into Amazon Kinesis Data Streams. A single t2.large instance has a cron job that runs the bid processor, which reads incoming bids from Kinesis Data Streams and processes each bid. The auction site is growing in popularity, but users are complaining that some bids are not registering. Troubleshooting indicates that the bid processor is too slow during peak demand hours, sometimes crashes while processing, and occasionally loses track of which records is being processed. What changes should make the bid processing more reliable?

Options

  • ARefactor the web application to use the Amazon Kinesis Producer Library (KPL) when posting
  • BRefactor the web application to post each incoming bid to an Amazon SNS topic in place of
  • CRefactor the web application to post each incoming bid to an Amazon SQS FIFO queue in place
  • DSwitch the EC2 instance type from t2.large to a larger general compute instance type. Put the bid

How the community answered

(51 responses)
  • A
    8% (4)
  • B
    33% (17)
  • C
    43% (22)
  • D
    16% (8)

Explanation

FIFO is better in this case compared to Kinesis, as it guarantee the order of the bid. Min Max 1, is okay as the SQS will hold the queue in case of failure of the instance, till it come

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice