ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 132 - SAP-C02 discussion

Report
Export

A company is processing videos in the AWS Cloud by using Amazon EC2 instances in an Auto Scaling group. It takes 30 minutes to process a video. Several EC2 instances scale in and out depending on the number of videos in an Amazon Simple Queue Service (Amazon SQS) queue.

The company has configured the SQS queue with a redrive policy that specifies a target dead-letter queue and a maxReceiveCount of 1. The company has set the visibility timeout for the SQS queue to 1 hour. The company has set up an Amazon CloudWatch alarm to notify the development team when there are messages in the dead-letter queue.

Several times during the day, the development team receives notification that messages are in the dead-letter queue and that videos have not been processed properly. An investigation finds no errors in the application logs.

How can the company solve this problem?

A.
Turn on termination protection for the EC2 instances.
Answers
A.
Turn on termination protection for the EC2 instances.
B.
Update the visibility timeout for the SOS queue to 3 hours.
Answers
B.
Update the visibility timeout for the SOS queue to 3 hours.
C.
Configure scale-in protection for the instances during processing.
Answers
C.
Configure scale-in protection for the instances during processing.
D.
Update the redrive policy and set maxReceiveCount to 0.
Answers
D.
Update the redrive policy and set maxReceiveCount to 0.
Suggested answer: B

Explanation:

The best solution for this problem is to update the visibility timeout for the SQS queue to 3 hours. This is because when the visibility timeout is set to 1 hour, it means that if the EC2 instance doesn't process the message within an hour, it will be moved to the dead-letter queue. By increasing the visibility timeout to 3 hours, this should give the EC2 instance enough time to process the message before it gets moved to the dead-letter queue. Additionally, configuring scale-in protection for the EC2 instances during processing will help to ensure that the instances are not terminated while the messages are being processed.

asked 16/09/2024
michael brooks
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first