exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 529 discussion

A developer is building an image-processing application that includes an AWS Lambda function. The Lambda function moves images from one AWS service to another AWS service for image processing. For images that are larger than 2 MB, the Lambda function returns the following error: “Task timed out after 3.01 seconds.”

The developer needs to resolve the error without modifying the Lambda function code.

Which solution will meet these requirements?

  • A. Increase the Lambda function’s timeout value.
  • B. Configure the Lambda function to not move images that are larger than 2 MB.
  • C. Request a concurrency quota increase for the Lambda function.
  • D. Configure provisioned concurrency for the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
vbloise
1 month, 4 weeks ago
Selected Answer: A
The correct answer is: A. Increase the Lambda function’s timeout value. Explanation: The error message "Task timed out after 3.01 seconds" clearly indicates that the Lambda function is not being given enough time to complete its task — specifically, moving images larger than 2 MB. This is a timeout configuration issue, not a concurrency issue or a problem with the code logic. A is correct because increasing the timeout allows the function more time to complete processing. B avoids the problem rather than solving it. C (concurrency quota increase) deals with how many instances can run simultaneously, not execution time. D (provisioned concurrency) ensures a function is pre-initialized but doesn't fix timeout errors.
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 ...