exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 954 discussion

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.
  • 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.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
3a632a3
1 year, 4 months ago
Selected Answer: BD
B - enables connection pooling for RDS D - create the database connection outside of the handler to allow connections to be re-used by subsequent function invocations. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-lambda-tutorial.html
upvoted 1 times
...
ggrodskiy
1 year, 11 months ago
Correct BD
upvoted 2 times
...
F_Eldin
2 years ago
Selected Answer: BD
B: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html#:~:text=Objects declared outside of the function's handler method remain initialized D: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-proxy.html#:~:text=RDS%20Proxy%20establishes%20a%20database%20connection%20pool%20and%20reuses%20connections%20in%20this%20pool.%20This%20approach%20avoids%20the%20memory%20and%20CPU%20overhead%20of%20opening%20a%20new%20database%20connection%20each%20time
upvoted 2 times
...
dev112233xx
2 years, 1 month ago
Selected Answer: BC
BC makes sense
upvoted 1 times
...
zozza2023
2 years, 4 months ago
Selected Answer: BD
B and D for me
upvoted 1 times
...
Kende
2 years, 5 months ago
B and D are the ones.
upvoted 3 times
...
masetromain
2 years, 6 months ago
Selected Answer: BD
I go witch B and D. for B: 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/ for D: 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
upvoted 2 times
masetromain
2 years, 6 months ago
The answer cannot be E and A: for A: The Lambda function only queries an Amazon Aurora MySQL database. - You use the cluster endpoint for all write operations on the DB cluster, including inserts, updates, deletes, and DDL changes. You can also use the cluster endpoint for read operations, such as queries. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html for E: The consumers of the web application are all close to the AWS Region where the application will be deployed - An edge-optimized API endpoint is best for geographically distributed clients. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-endpoint-types.html
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...