Design High-Performing Architectures

An application uses RDS Proxy with RDS for MySQL. Monitoring shows extensive session pinning after the application starts storing request-specific state in database session variables. Which change will BEST improve connection reuse?

Show the answer

Correct answerC. Remove reliance on request-specific session variables

AWhy not this: Multi-AZ improves availability but does not remove the session-state dependency.

BWhy not this: Read replicas provide read capacity but do not eliminate session state that causes connections to remain pinned.

CWhy this is right: Removing session-specific state allows the proxy to reuse database connections more effectively.

DWhy not this: Provisioned IOPS affects storage performance, not connection reuse or session pinning.

Session-specific state can pin a client session to a database connection, limiting RDS Proxy's connection reuse. Removing that dependency improves multiplexing; adding read replicas does not remove the session-pinning cause.