AWS Solutions Architect · Design High-Performing Architectures · medium
Hundreds of AWS Lambda functions scale concurrently during market open and connect to an Amazon RDS for PostgreSQL instance. During peak bursts, the database exhausts its connection limit and rejects new connections. Which change resolves the connection exhaustion with minimal application code changes?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: B. Deploy Amazon RDS Proxy in front of the RDS for PostgreSQL instance and point the Lambda functions to the proxy endpoint
Amazon RDS Proxy pools and shares established database connections across concurrent Lambda execution environments, preventing connection spikes from overwhelming the PostgreSQL engine and requiring only an endpoint change. Read replicas do not pool write connections, ElastiCache caches reads rather than pooling relational connections, and provisioned concurrency alone still opens one connection per execution environment.
Why the other options are wrong
- A. Create three Amazon RDS Read Replicas and update the Lambda functions to distribute write queries across them — RDS Read Replicas accept read traffic only and neither accept writes nor pool connections to the primary instance.
- C. Place an Amazon ElastiCache for Memcached cluster in front of RDS and route all database transactions through it — ElastiCache caches key-value query results and cannot pool relational connections or execute PostgreSQL transactions.
- D. Migrate the RDS instance to a Multi-AZ standby deployment so connection limits double across both Availability Zones — An RDS Multi-AZ standby instance is passive for failover only and does not double active connection capacity.
More Design High-Performing Architectures questions
- A mobile gaming backend uses Amazon DynamoDB to serve player leaderboards and item catalogs. Read traffic is 50 times…
- A video studio uploads 200 GB raw footage files from remote filming sites on five continents into a central Amazon S3…
- A global news portal serves static images from Amazon S3 and dynamic personalized articles from an Application Load…
- A high-performance computing (HPC) cluster on Amazon EC2 Linux instances processes genomics datasets stored in an…
- A financial modeling workload runs tightly coupled message-passing interface (MPI) simulations across 64 Amazon EC2…
- An IoT platform ingests 50,000 JSON telemetry records per second and wants to query the data in Amazon S3 using Amazon…
All Design High-Performing Architectures questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.