Topic 1 Question 141
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?
Turn on termination protection tor the EC2 Instances
Update the visibility timeout for the SQS queue to 3 hours
Configure scale-in protection for the instances during processing
Update the redrive policy and set maxReceiveCount to 0.
ユーザの投票
コメント(11)
- 正解だと思う選択肢: C
The correct answer is C. The company can solve the problem by configuring scale-in protection for the instances during processing. This will ensure that the instances are not terminated while they are processing videos. This will prevent the messages from moving to the dead-letter queue and ensure that videos are processed properly.
Option A is incorrect because turning on termination protection for the EC2 instances will not solve the problem as it will impact the ability of the Auto Scaling group to scale instances in and out based on the number of videos in the queue.
Option B is incorrect because the company has specified a visibility timeout of 1 hour, which is enough time for the instances to process a video and there is no need to update the timeout to 3 hours.
Option D is incorrect because the company has set the maxReceiveCount to 1 and changing it to 0 will not solve the problem. maxReceiveCount allowed range is 1 to 1000.
👍 10masetromain2023/01/16 C is correct A: termination protection of EC2 will impact ASG B: only take 30 minutes, no need for 3 hour C: ASG is based on queue depth, ASG will scale in when queue length is 0. But maxreceivecount is set to 1. D: maxreceivecount allowed range is 1 to 1000
👍 4zhangyu200002023/01/16- 正解だと思う選択肢: C
Setting maxReceiveCount to 0 in the redrive policy of an Amazon SQS queue means that if a message is not successfully processed by any of the consumers after one attempt, the message will be deleted from the queue immediately instead of being moved to the dead-letter queue.
👍 4kiran157892023/02/26
シャッフルモード