ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 197 - DVA-C02 discussion

Report
Export

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'?

A.
Increase the memory configuration of the Lambda function
Answers
A.
Increase the memory configuration of the Lambda function
B.
Increase the visibility timeout on the SQS queue
Answers
B.
Increase the visibility timeout on the SQS queue
C.
Increase the instance size of the host that runs the Lambda function.
Answers
C.
Increase the instance size of the host that runs the Lambda function.
D.
Use multi-threading for the conversion.
Answers
D.
Use multi-threading for the conversion.
Suggested answer: B

Explanation:

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

asked 16/09/2024
Rodwell Shibambu
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first