New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DVA-C02 Exam - 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:

0/2000 characters
Frederica
3 months ago
I agree, memory boost might just do the trick!
upvoted 0 times
...
Trevor
3 months ago
Definitely not C, that's not how Lambda works.
upvoted 0 times
...
Leana
3 months ago
Wait, can you really change the visibility timeout like that?
upvoted 0 times
...
Dong
4 months ago
I think option B is better, though.
upvoted 0 times
...
Sueann
4 months ago
Increasing the memory can help with performance!
upvoted 0 times
...
Winifred
4 months ago
I practiced a similar question where multi-threading was mentioned, but I don't think we can implement that without code changes, so option D might not be applicable here.
upvoted 0 times
...
Paul
4 months ago
Option C seems off to me; I thought Lambda runs on a managed service, so we can't really change the instance size, right?
upvoted 0 times
...
Edison
4 months ago
I'm not entirely sure, but I think increasing the visibility timeout on the SQS queue could help if the Lambda is taking longer to process messages.
upvoted 0 times
...
Quentin
5 months ago
I remember reading that increasing the memory for a Lambda function can actually improve performance, so maybe option A is the right choice?
upvoted 0 times
...
Francis
5 months ago
Hmm, this is a tricky one. I'm not sure if increasing the memory or instance size would really help here, since the issue seems to be with the longer video files. The visibility timeout on the SQS queue seems like the most promising option to me, but I'm not 100% sure.
upvoted 0 times
...
Tijuana
5 months ago
Alright, let's see. The key here is that the Lambda function is timing out on longer video files, but the timeout is already at the max. Increasing the visibility timeout on the SQS queue sounds like the most logical solution to me. I'm pretty confident that's the right approach.
upvoted 0 times
...
Ona
5 months ago
I'm a bit confused here. The question mentions the Lambda function is timing out, but the timeout is already at the max. Increasing the memory doesn't seem like it would solve the problem. Maybe the multi-threading option could be worth exploring?
upvoted 0 times
...
Kristal
5 months ago
Okay, let me think this through. The question says the Lambda function's timeout is already at the maximum, so that's not the issue. Increasing the instance size could potentially help, but that might be overkill. I'm leaning towards the visibility timeout option.
upvoted 0 times
...
Armando
5 months ago
Hmm, this one seems tricky. I'm not sure if increasing the memory configuration would really help with the timeout issue. Maybe increasing the visibility timeout on the SQS queue could be a better approach?
upvoted 0 times
...
Merissa
5 months ago
I'm a bit lost on this one. Weren't there points made about how commercial enrollees generally have more flexibility compared to Medicare and Medicaid?
upvoted 0 times
...
William
1 year 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 year ago
I'm with Nobuko on this one. The visibility timeout is the most straightforward solution without additional code changes.
upvoted 0 times
Tamesha
1 year ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Stephania
1 year ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Aleisha
1 year ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Jeannetta
1 year 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 year ago
I agree with Nikita. Increasing the memory configuration can help the Lambda function process the video files faster.
upvoted 0 times
...
Susana
1 year 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
1 year ago
D) Use multi-threading for the conversion.
upvoted 0 times
...
Claribel
1 year ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Cherelle
1 year ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Shenika
1 year ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Nobuko
1 year 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
1 year ago
C) Increase the instance size of the host that runs the Lambda function.
upvoted 0 times
...
Beata
1 year ago
B) Increase the visibility timeout on the SQS queue
upvoted 0 times
...
Juliana
1 year ago
A) Increase the memory configuration of the Lambda function
upvoted 0 times
...
...
Nikita
1 year ago
I think the answer is A) Increase the memory configuration of the Lambda function.
upvoted 0 times
...

Save Cancel