nerdexam
Amazon

DOP-C02 · Question #216

A company recently deployed its web application on AWS. The company is preparing for a large- scale sales event and must ensure that the web application can scale to meet the demand. The application's

The correct answer is B. Configure a higher provisioned concurrency for the Lambda functions. D. Refactor the Lambda functions. Move the code blocks that initialize database connections into the E. Use Amazon RDS Proxy to create a proxy for the Aurora database. Update the Lambda functions. To mitigate request latency during initial bursts for Lambda functions burdened by database connection establishment, implement provisioned concurrency, refactor functions to reuse connections, and utilize Amazon RDS Proxy for efficient connection pooling.

Submitted by chen.hong· Mar 6, 2026Reliability & Resilience

Question

A company recently deployed its web application on AWS. The company is preparing for a large- scale sales event and must ensure that the web application can scale to meet the demand. The application's frontend infrastructure includes an Amazon CloudFront distribution that has an Amazon S3 bucket as an origin. The backend infrastructure includes an Amazon API Gateway API, several AWS Lambda functions, and an Amazon Aurora DB cluster. The company's DevOps engineer conducts a load test and identifies that the Lambda functions can fulfil the peak number of requests. However, the DevOps engineer notices request latency during the initial burst of requests. Most of the requests to the Lambda functions produce queries to the database. A large portion of the invocation time is used to establish database connections. Which combination of steps will provide the application with the required scalability? (Choose three.)

Options

  • AConfigure a higher reserved concurrency for the Lambda functions.
  • BConfigure a higher provisioned concurrency for the Lambda functions.
  • CConvert the DB cluster to an Aurora global database. Add additional Aurora Replicas in AWS
  • DRefactor the Lambda functions. Move the code blocks that initialize database connections into the
  • EUse Amazon RDS Proxy to create a proxy for the Aurora database. Update the Lambda functions

How the community answered

(36 responses)
  • A
    19% (7)
  • B
    69% (25)
  • C
    11% (4)

Why each option

To mitigate request latency during initial bursts for Lambda functions burdened by database connection establishment, implement provisioned concurrency, refactor functions to reuse connections, and utilize Amazon RDS Proxy for efficient connection pooling.

AConfigure a higher reserved concurrency for the Lambda functions.

Configuring higher reserved concurrency only sets a maximum limit for concurrent executions and does not address or mitigate cold start latency or the time spent establishing database connections.

BConfigure a higher provisioned concurrency for the Lambda functions.Correct

Provisioned concurrency ensures a specified number of Lambda instances are pre-initialized, eliminating cold starts and reducing the latency associated with environment setup, including initial database connection establishment during bursts.

CConvert the DB cluster to an Aurora global database. Add additional Aurora Replicas in AWS

Aurora global databases and additional replicas primarily enhance read scalability and disaster recovery across regions, which does not directly solve the problem of high latency due to database connection establishment within individual Lambda invocations.

DRefactor the Lambda functions. Move the code blocks that initialize database connections into theCorrect

Refactoring Lambda functions to initialize database connections outside the handler function (in the global scope) allows connection reuse across multiple invocations on the same warm container, significantly reducing connection establishment time for subsequent requests.

EUse Amazon RDS Proxy to create a proxy for the Aurora database. Update the Lambda functionsCorrect

Amazon RDS Proxy maintains a pool of database connections and reuses them across Lambda invocations, efficiently managing connections and drastically reducing the overhead and latency of establishing new database connections for each function call.

Concept tested: AWS Lambda cold start optimization, database connection management, and Amazon RDS Proxy

Source: https://docs.aws.amazon.com/lambda/latest/dg/invocation-modes.html#invocation-modes-provisioned-concurrency

Topics

#Lambda scaling#Provisioned concurrency#RDS Proxy#Database connection pooling

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice