DBS-C01 · Question #29
A company is building a new web platform where user requests trigger an AWS Lambda function that performs an insert into an Amazon Aurora MySQL DB cluster. Initial tests with less than 10 users on…
The correct answer is B. Increase the instance size of the DB cluster. Explanation Increasing the instance size of the Aurora MySQL DB cluster is the correct solution because Aurora's max_connections limit is automatically determined by the instance's memory (RAM) - larger instance classes have more memory, which directly allows a higher maximum…
Question
A company is building a new web platform where user requests trigger an AWS Lambda function that performs an insert into an Amazon Aurora MySQL DB cluster. Initial tests with less than 10 users on the new platform yielded successful execution and fast response times. However, upon more extensive tests with the actual target of 3,000 concurrent users, Lambda functions are unable to connect to the DB cluster and receive too many connections errors. Which of the following will resolve this issue?
Options
- AEdit the my.cnf file for the DB cluster to increase max_connections
- BIncrease the instance size of the DB cluster
- CChange the DB cluster to Multi-AZ
- DIncrease the number of Aurora Replicas
How the community answered
(33 responses)- A9% (3)
- B73% (24)
- C15% (5)
- D3% (1)
Explanation
Explanation
Increasing the instance size of the Aurora MySQL DB cluster is the correct solution because Aurora's max_connections limit is automatically determined by the instance's memory (RAM) - larger instance classes have more memory, which directly allows a higher maximum connection count, resolving the "too many connections" error at scale.
Why the distractors are wrong:
- A is incorrect because Aurora MySQL does not use a
my.cnffile for configuration; parameters are managed through DB Parameter Groups, and even then,max_connectionsin Aurora is tied to instance memory, not a simple config file edit. - C is incorrect because Multi-AZ improves availability and failover, not connection limits - it doesn't increase the number of connections the primary instance can accept.
- D is incorrect because Aurora Replicas handle read traffic only; Lambda insert operations write to the primary instance, so adding replicas doesn't help with write connection limits.
Memory Tip: Think "Bigger box = more connections" - in Aurora MySQL,
max_connections ≈ instance memory / connection overhead. When you hit connection limits under load, sizing up the instance is the lever to pull. For production workloads, also remember RDS Proxy as a connection pooling solution (a common exam alternative answer).
Topics
Community Discussion
No community discussion yet for this question.