Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DVA-C02 Topic 3 Question 39 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 39
Topic #: 3
[All DVA-C02 Questions]

An Amazon Simple Queue Service (Amazon SQS) queue serves as an event source for an AWS Lambda function In the SQS queue, each item corresponds to a video file that the Lambda function must convert to a smaller resolution The Lambda function is timing out on longer video files, but the Lambda function's timeout is already configured to its maximum value

What should a developer do to avoid the timeouts without additional code changes'?

Show Suggested Answer Hide Answer
Suggested Answer: B

Visibility Timeout: When an SQS message is processed by a consumer (here, the Lambda function), it's temporarily hidden from other consumers. Visibility timeout controls this duration.

How It Helps:

Increase the visibility timeout beyond the maximum processing time your Lambda might typically take for long videos.

This prevents the message from reappearing in the queue while Lambda is still working, avoiding premature timeouts.


SQS Visibility Timeout:https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html

Contribute your Thoughts:

William
2 months ago
I'm not sure about that. I think the answer might be D) Use multi-threading for the conversion to speed up the process.
upvoted 0 times
...
Mitsue
2 months ago
I'm with Nobuko on this one. The visibility timeout is the most straightforward solution without additional code changes.
upvoted 0 times
Tamesha
25 days ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Stephania
28 days ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Aleisha
29 days ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Jeannetta
2 months ago
Haha, increasing the instance size of the host that runs the Lambda function? That's like throwing money at the problem instead of actually fixing it!
upvoted 0 times
...
Roxane
2 months ago
I agree with Nikita. Increasing the memory configuration can help the Lambda function process the video files faster.
upvoted 0 times
...
Susana
2 months ago
Using multi-threading for the conversion seems like an interesting idea. It could help the Lambda function process the videos more efficiently.
upvoted 0 times
Gearldine
2 months ago
D) Use multi-threading for the conversion.
upvoted 0 times
...
Claribel
2 months ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Cherelle
2 months ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Shenika
2 months ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Nobuko
3 months ago
I think increasing the visibility timeout on the SQS queue is the way to go. That should give the Lambda function more time to process the longer video files without timing out.
upvoted 0 times
Jaleesa
2 months ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Beata
2 months ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Juliana
2 months ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Nikita
3 months ago
I think the answer is A) Increase the memory configuration of the Lambda function.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77