SAP-C02 Exam QuestionsBrowse all questions from this exam

SAP-C02 Exam - Question 488


A company is running a serverless ecommerce application on AWS. The application uses Amazon API Gateway to invoke AWS Lambda Java functions. The Lambda functions connect to an Amazon RDS for MySQL database to store data.

During a recent sale event, a sudden increase in web traffic resulted in poor API performance and database connection failures. The company needs to implement a solution to minimize the latency for the Lambda functions and to support bursts in traffic.

Which solution will meet these requirements with the LEAST amount of change to the application?

Show Answer
Correct Answer: B

Creating an RDS Proxy endpoint for the database will efficiently manage connection pools to handle bursts of traffic. Additionally, storing database secrets in AWS Secrets Manager and setting up the required IAM permissions ensures a secure and seamless connection. Increasing the provisioned concurrency for the Lambda functions will pre-warm instances to handle sudden traffic surges effectively, minimizing latency. This approach requires the least amount of changes to the existing application while addressing the performance issues and connection failures.

Discussion

7 comments
Sign in to comment
ebbff63
Jun 27, 2024

Provisioned Concurrency - makes sure Lambda functions could handle traffic bursts RDS proxy endpoint - intelligently manages connections to a relational database ( Amazon RDS here) So, the answer - B

mifune
Jun 27, 2024

yes, I would go with "Provisioned concurrency" too.

AlagongOption: D
Jun 27, 2024

Option D with "reserved concurrency" can be more cost-effective and flexible for handling sudden traffic bursts, as it ensures a minimum number of instances without the potential over-provisioning of provisioned concurrency.

mifuneOption: B
Jun 27, 2024

If cost is a primary concern, Reserved Concurrency could be a more economical choice. Provisioned Concurrency is designed to provide more control over your Lambda function’s performance and scalability. Answer is B.

vip2Option: B
Jul 6, 2024

B is correct for least operation(not cost effectively) in question

zapper1234
Jun 25, 2024

Sorry, meant A

ebbff63Option: B
Jun 30, 2024

Answer B

HelpnosenseOption: A
Jun 30, 2024

A is right answer. D is wrong because the provisioned Concurrency is the term to keep pre-allocated warm instances of lambda not reserved concurrency. B missing auto scaling the db.