You are deploying a new Node.js AWS Lambda function that runs outside of a VPC. The function must query an Amazon Aurora database that is not publicly accessible, and you expect unpredictable bursts of database traffic. What should you do to allow the Lambda function to access the database reliably under bursts?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure the Lambda function to use an Amazon RDS Proxy..
Why this is the answer
An Amazon RDS Proxy is the correct solution because it manages database connections, including connection pooling and multiplexing. This allows the Lambda function to efficiently reuse existing connections, reducing the overhead of establishing new connections during unpredictable bursts of traffic. This is crucial for serverless applications like Lambda functions, which can scale rapidly and overwhelm a database with new connection requests. Configuring a NAT gateway is incorrect because it allows outbound internet access from a private subnet, but it doesn't solve the connection management problem for the database. Making the Aurora database publicly accessible is a security risk and doesn't address connection management. Enabling VPC access for the Lambda function is necessary to access resources within a VPC, but attaching it to a security group with no rules would prevent it from connecting to the database.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed