DVA-C02 · Question #491
An application interacts with Amazon Aurora to store and track customer information. The primary database is set up with multiple read replicas for improving the performance of the read queries. Howev
The correct answer is A. Disable application-level DNS caching.. Application-level DNS caching causes clients to repeatedly resolve the Aurora cluster endpoint to the same replica IP, bypassing Aurora's load balancing and overloading a single replica.
Question
An application interacts with Amazon Aurora to store and track customer information. The primary database is set up with multiple read replicas for improving the performance of the read queries. However, one of the Aurora replicas is receiving most or all of the traffic, while the other Aurora replica remains idle. How can this issue be resolved?
Options
- ADisable application-level DNS caching.
- BEnable application-level DNS caching.
- CEnable application pooling
- DDisable application pooling
How the community answered
(37 responses)- A76% (28)
- B5% (2)
- C5% (2)
- D14% (5)
Why each option
Application-level DNS caching causes clients to repeatedly resolve the Aurora cluster endpoint to the same replica IP, bypassing Aurora's load balancing and overloading a single replica.
Aurora's reader endpoint uses DNS-based load balancing to distribute connections across available read replicas on each new DNS resolution. When applications cache DNS responses, they keep connecting to the same resolved IP (one replica) instead of allowing the DNS TTL to expire and re-resolve to a different replica. Disabling DNS caching forces fresh DNS lookups and restores even traffic distribution.
Enabling DNS caching is the root cause of the problem; it pins connections to a single replica and prevents load balancing from working.
Connection pooling manages the reuse of existing database connections but does not affect how DNS resolution distributes traffic across replicas.
Disabling connection pooling would increase connection overhead and does not address the DNS-based load balancing issue.
Concept tested: Aurora read replica DNS-based load balancing
Source: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html
Community Discussion
No community discussion yet for this question.