AWS Certified Solutions Architect – Professional (SAP-C02) — Question 139

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 property. An investigation finds no errors m the application logs.

How can the company solve this problem?

Answer options

Correct answer: C

Explanation

The correct answer is C because configuring scale-in protection ensures that EC2 instances remain active during video processing, preventing them from being terminated prematurely. Option A does not address the processing issue, while option B might not effectively solve the problem given the current processing time. Option D would prevent any message from being retried, which is not a suitable solution for ensuring processing.