nerdexam
Amazon

SAP-C02 · Question #2

A solutions architect is responsible (or redesigning a legacy Java application to improve its availability, data durability, and scalability. Currently, the application runs on a single high- memory…

The correct answer is B. Create an Amazon API Gateway REST API that uses a service proxy to put items in an Amazon. The obvious challenges here are long workloads, scalability based on queue load, and reliability. Almost always the defacto answer to queue related workload is SQS. Since the workloads are very long (90 minutes) Lambdas cannot be used (15 mins max timeout). So, autoscaled…

Submitted by lars.no· Mar 6, 2026Design Resilient Architectures

Question

A solutions architect is responsible (or redesigning a legacy Java application to improve its availability, data durability, and scalability. Currently, the application runs on a single high- memory Amazon EC2 instance. It accepts http requests from upstream clients, adds them to an in-memory queue, and responds with a 200 status. A separate application thread reads items from the queue, processes them, and persists the results to an Amazon RDS MySQL instance. The processing time for each item takes 90 seconds on average, most of which is spent waiting on external service calls, but the application is written to process multiple items in parallel. Traffic to this service is unpredictable. During periods of high load, items may sit in the internal queue for over an hour while the application processes the backlog. In addition, the current system has issues with availability and data loss if the single application node fails. Clients that access this service cannot be modified. They expect to receive a response to each http request they send within 10 seconds before they will time out and retry the request. Which approach would improve the availability and durability of the system while decreasing the processing latency and minimizing costs?

Options

  • ACreate an Amazon API Gateway REST API that uses Lambda proxy integration to pass requests
  • BCreate an Amazon API Gateway REST API that uses a service proxy to put items in an Amazon
  • CModify the application to use Amazon DynamoDB instead of Amazon RDS. Configure Auto
  • DUpdate the application to use a Redis task queue instead of the in-memory queue. Build a Docker

How the community answered

(52 responses)
  • A
    21% (11)
  • B
    67% (35)
  • C
    4% (2)
  • D
    8% (4)

Explanation

The obvious challenges here are long workloads, scalability based on queue load, and reliability. Almost always the defacto answer to queue related workload is SQS. Since the workloads are very long (90 minutes) Lambdas cannot be used (15 mins max timeout). So, autoscaled smaller EC2 nodes that wait on external services to complete the task makes more sense. If the task fails, the message is returned to the queue and retried.

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice