ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 44 - SAP-C02 discussion

Report
Export

A solutions architect has developed a web application that uses an Amazon API Gateway Regional endpoint and an AWS Lambda function. The consumers of the web application are all close to the AWS Region where the application will be deployed. The Lambda function only queries an Amazon Aurora MySQL database. The solutions architect has configured the database to have three read replicas.

During testing, the application does not meet performance requirements. Under high load, the application opens a large number of database connections. The solutions architect must improve the application's performance.

Which actions should the solutions architect take to meet these requirements? (Choose two.)

A.
Use the cluster endpoint of the Aurora database.
Answers
A.
Use the cluster endpoint of the Aurora database.
B.
Use RDS Proxy to set up a connection pool to the reader endpoint of the Aurora database.
Answers
B.
Use RDS Proxy to set up a connection pool to the reader endpoint of the Aurora database.
C.
Use the Lambda Provisioned Concurrency feature.
Answers
C.
Use the Lambda Provisioned Concurrency feature.
D.
Move the code for opening the database connection in the Lambda function outside of the event handler.
Answers
D.
Move the code for opening the database connection in the Lambda function outside of the event handler.
E.
Change the API Gateway endpoint to an edge-optimized endpoint.
Answers
E.
Change the API Gateway endpoint to an edge-optimized endpoint.
Suggested answer: B, D

Explanation:

Connect to RDS outside of Lambda handler method to improve performance https://awstut.com/en/2022/04/30/connect-to-rds-outside-of-lambda-handler-method-to-improve-performance-en/

Using RDS Proxy, you can handle unpredictable surges in database traffic. Otherwise, these surges might cause issues due to oversubscribing connections or creating new connections at a fast rate. RDS Proxy establishes a database connection pool and reuses connections in this pool. This approach avoids the memory and CPU overhead of opening a new database connection each time. To protect the database against oversubscription, you can control the number of database connections that are created. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-proxy.html

asked 16/09/2024
Ryan Edwards
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first