Question 350
A legacy application is being separated into independent scaling tiers. The team confirms that every application service connects directly to RDS and exhausts connections. Which design adjustment best addresses that requirement?
Explanation
Correct Answer
The scenario identifies this requirement: Every application service connects directly to RDS and exhausts connections. Select Place Amazon RDS Proxy in front of supported RDS instances as the specified technical mechanism. RDS Proxy pools and reuses database connections. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Trigger events through S3 EventBridge integration and managed workers addresses a separate condition: a file-processing service depends on a manual cron job on one EC2 host. Managed event routing removes host-specific scheduling. The actual requirement is every application service connects directly to RDS and exhausts connections. Recommended corrective action: Place Amazon RDS Proxy in front of supported RDS instances. RDS Proxy pools and reuses database connections.
For the alternative failure a presentation server directly writes to a database and blocks on slow reports, the control Move reports to asynchronous workers via SQS and isolate databases is relevant: queued workers separate report latency from front-end requests. Here the evidence instead is every application service connects directly to RDS and exhausts connections. The selected technical mechanism is Place Amazon RDS Proxy in front of supported RDS instances: rDS Proxy pools and reuses database connections.
Store session state in an external cache or session store solves a different operational problem where users' sessions are stored in each EC2 instance's memory. Externalized sessions support load-balanced stateless servers. It does not directly address every application service connects directly to RDS and exhausts connections. The case calls for Place Amazon RDS Proxy in front of supported RDS instances, since rDS Proxy pools and reuses database connections.