Free AWS DOP-C02 Actual Exam Questions - Question 4 Discussion
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
fulfill 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? (Select TWO)
Guessing A and E here—reserved concurrency (A) can make sure Lambdas don't get throttled at peak, and RDS Proxy (E) would handle the DB connection overhead, which seems to be the main cause of latency.
Option A could help by setting higher reserved concurrency to ensure enough Lambda instances can run simultaneously, preventing throttling during the burst. Also, option D might be worth considering—if the DB connections are being initialized outside the handler, refactoring to open connections inside the handler could avoid unnecessary initialization on cold starts. Combining these could reduce latency during spikes even if provisioned concurrency and RDS Proxy are not fully implemented yet. Still, I think A and D are good independent measures to improve scalability in this setup.
The initial latency is mainly from cold starts, so B (provisioned concurrency) helps a lot. E (RDS Proxy) reduces overhead by pooling DB connections, which fits the problem perfectly.
B/E for sure. Provisioned concurrency reduces cold start latency, and RDS Proxy handles connection pooling, cutting down DB connection time. These two directly tackle the initial burst and connection overhead.
Forget A, B and E handle cold starts and connection pooling best here.
It’s B and E, since provisioned concurrency reduces cold starts and RDS Proxy manages connections efficiently.
Option E seems crucial—does the question specify the Lambda runtime environment version?