BlackFriday 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
1 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
1 months ago
I'm with Nobuko on this one. The visibility timeout is the most straightforward solution without additional code changes.
upvoted 0 times
...
Jeannetta
1 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
1 months ago
I agree with Nikita. Increasing the memory configuration can help the Lambda function process the video files faster.
upvoted 0 times
...
Susana
1 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
17 days ago
D) Use multi-threading for the conversion.
upvoted 0 times
...
Claribel
18 days ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Cherelle
20 days ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Shenika
29 days ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Nobuko
1 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
24 days ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Beata
1 months ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Juliana
1 months ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Nikita
2 months ago
I think the answer is A) Increase the memory configuration of the Lambda function.
upvoted 0 times
...

Save Cancel