AWS Certified Developer – Associate (DVA-C02)Development with AWS ServicesHard

A developer is building a web application that uses Amazon RDS for its database. The application is containerized and deployed on AWS Fargate, scaling dynamically based on traffic. The developer observes that during periods of rapid scaling, new containers struggle to establish database connections quickly, sometimes leading to connection errors. They also want to manage database credentials more securely without embedding them directly in the application code. Which AWS service can help address both these issues?

  1. AAWS CloudFormation
  2. BAWS Secrets Manager
  3. CAmazon RDS Proxy
  4. DAmazon ElastiCache
Show answer & explanation

Correct answer: C. Amazon RDS Proxy

Amazon RDS Proxy is a fully managed database proxy that pools and shares database connections, reducing the burden on the database during scaling events and improving application resilience. It also integrates with AWS Secrets Manager for secure credential management, addressing both concerns.

Why the other options are wrong

  • A. AWS CloudFormation is an infrastructure as code service, used for provisioning AWS resources, not for runtime connection management or credential security.
  • B. AWS Secrets Manager manages database credentials securely, but it does not solve the connection pooling and scaling issues directly.
  • D. Amazon ElastiCache is an in-memory caching service, which helps with performance but not directly with database connection management or credential security.

Amazon RDS Proxy

A fully managed, highly available database proxy for Amazon RDS that improves application scalability and resilience by pooling and sharing database connections, and enhances security by integrating with AWS Secrets Manager.

  • Pools and shares database connections.
  • Reduces burden on database during scaling.
  • Integrates with AWS Secrets Manager for credential management.

Memory trick: RDS Proxy: connect securely, scale smoothly, no connection woes.

More Development with AWS Services questions