SAP-C02 学习助手

SAP-C02 第 141 题

EC2 SQS CloudWatch Config Auto Scaling

题目

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?

中文翻译:
一家公司正在使用 Auto Scaling 组中的 Amazon EC2 实例处理 AWS 云中的视频。处理一个视频需要 30 分钟 多个 EC2 实例根据 Amazon Simple Queue Service (Amazon SQS) 队列中的视频数量进行扩展和扩展。该公司已使用指定目标死信队列和 maxReceiveCount 为 1 的重新驱动策略配置了 SQS 队列。该公司已将 SQS 队列的可见性超时设置为 1 小时。该公司设置了 Amazon CloudWatch 警报,以便在死信队列中有消息时通知开发团队。白天好几次。开发团队收到消息位于死信队列中且视频尚未得到处理的通知。调查发现应用程序日志中没有错误。公司如何解决这个问题?

选项

A. Turn on termination protection tor the EC2 Instances

中文翻译:
打开 EC2 实例的终止保护

B. Update the visibility timeout for the SQS queue to 3 hours

中文翻译:
将 SQS 队列的可见性超时更新为 3 小时

C. Configure scale-in protection for the instances during processing

中文翻译:
配置处理过程中实例的缩容保护

D. Update the redrive policy and set maxReceiveCount to 0.

中文翻译:
更新重新驱动策略并将 maxReceiveCount 设置为 0。

答案

C

解析

正确答案:C 解析: 本题应选择 C。 正确选项: C. 配置处理过程中实例的缩容保护 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:EC2、SQS、CloudWatch、Config、Auto Scaling。 排除思路: A、B、D 通常会在协议或服务适配、单点故...

登录后查看完整解析