exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 211 discussion

A DevOps engineer is building an application that uses an AWS Lambda function to query an Amazon Aurora MySQL DB cluster. The Lambda function performs only read queries. Amazon EventBridge events invoke the Lambda function.

As more events invoke the Lambda function each second, the database's latency increases and the database's throughput decreases. The DevOps engineer needs to improve the performance of the application.

Which combination of steps will meet these requirements? (Choose three.)

  • A. Use Amazon RDS Proxy to create a proxy. Connect the proxy to the Aurora cluster reader endpoint. Set a maximum connections percentage on the proxy.
  • B. Implement database connection pooling inside the Lambda code. Set a maximum number of connections on the database connection pool.
  • C. Implement the database connection opening outside the Lambda event handler code.
  • D. Implement the database connection opening and closing inside the Lambda event handler code.
  • E. Connect to the proxy endpoint from the Lambda function.
  • F. Connect to the Aurora cluster endpoint from the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: ACE 🗳️

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
dkp
Highly Voted 1 year ago
Selected Answer: ACE
Opening and closing database connections outside the Lambda handler allows for efficient reuse of connections and implements connection pooling
upvoted 6 times
...
WhyIronMan
Highly Voted 1 year, 1 month ago
Selected Answer: ADE
A, D, E For those going with A,C,E, the same link already provided here https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/ in the nodejs/javascript code you can see that database connection opening (connection.connect) and closing (connection.end) are being handled INSIDE the handler function, which is correct because you want to open connections but it is a good practice to close connections
upvoted 6 times
...
GripZA
Most Recent 8 months, 3 weeks ago
Selected Answer: ACE
"By opening the database connection outside the event handler, the connection can be reused across multiple invocations, which reduces the overhead of establishing new connections repeatedly."
upvoted 3 times
...
jamesf
9 months, 1 week ago
Selected Answer: ACE
Should be ACE Opening database connections OUTSIDE the Lambda handler allows for efficient reuse of connections and implements connection pooling
upvoted 4 times
...
c3518fc
1 year ago
Selected Answer: ACE
https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/
upvoted 4 times
...
L1_
1 year, 1 month ago
Selected Answer: ACE
ACE: I also agree - https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/
upvoted 5 times
...
DanShone
1 year, 1 month ago
Selected Answer: ACE
I agree
upvoted 5 times
...
Seoyong
1 year, 1 month ago
Selected Answer: ACE
perfect
upvoted 5 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago