When writing a Lambda function, what is the benefit of instantiating AWS clients outside the scope of the handler?

When writing a Lambda function, what is the benefit of instantiating AWS clients outside the scope of the handler?
A . Legibility and stylistic convention
B . Taking advantage of connection re-use
C . Better error handling
D . Creating a new instance per invocation

Answer: B

Explanation:

Reference: https://www.jeremydaly.com/reuse-database-connections-aws-lambda/

Latest DVA-C01 Dumps Valid Version with 463 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments