exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 128 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 128
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer is building a serverless application that is based on AWS Lambda. The developer initializes the AWS software development kit (SDK) outside of the
Lambda handler function.
What is the PRIMARY benefit of this action?

  • A. Improves legibility and stylistic convention
  • B. Takes advantage of runtime environment reuse
  • C. Provides better error handling
  • D. Creates a new SDK instance for each invocation
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
SD_CS
1 year, 5 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
rcaliandro
2 years ago
Selected Answer: B
"Takes advantage of runtime environment reuse" is the correct one because, if we write code outside the handler, it will be only executed the first time the function is called. Other times, the compiled code is avaiable at runtime
upvoted 1 times
...
sichilam
2 years, 5 months ago
B it is
upvoted 1 times
...
cloud_collector
2 years, 8 months ago
Selected Answer: B
Initialize SDK clients and database connections outside of the function handler, and cache static assets locally in the /tmp directory. Subsequent invocations processed by the same instance of your function can reuse these resources. This saves cost by reducing function run time. https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html#function-code
upvoted 1 times
...
LEHUY
2 years, 10 months ago
Selected Answer: B
B is correct
upvoted 3 times
...
ARHATRAJ
2 years, 10 months ago
Selected Answer: B
B is correct
upvoted 4 times
...
Chhotu_DBA
2 years, 10 months ago
Selected Answer: B
"Takes advantage of runtime environment reuse" is correct
upvoted 3 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 ...