Exam SAP-C02 All QuestionsBrowse all questions from this 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?

    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
ebbff63

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

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

AlagongOption: D

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.

vip2Option: B

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

mifuneOption: B

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.

HelpnosenseOption: A

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.

ebbff63Option: B

Answer B

zapper1234

Sorry, meant A