SAP-C02 第 519 题
题目
A company is running a large containerized workload in the AWS Cloud. The workload consists of approximately 100 different services. The company uses Amazon Elastic Container Service (Amazon ECS) to orchestrate the workload. Recently the company’s development team started using AWS Fargate instead of Amazon EC2 instances in the ECS cluster. In the past, the workload has come close to running the maximum number of EC2 instances that are available in the account. The company is worried that the workload could reach the maximum number of ECS tasks that are allowed. A solutions architect must implement a solution that will notify the development team when Fargate reaches 80% of the maximum number of tasks. What should the solutions architect do to meet this requirement?
中文翻译:
一家公司正在 AWS 云中运行大型容器化工作负载。该工作负载由大约 100 个不同的服务组成。该公司使用 Amazon Elastic Container Service (Amazon ECS) 来编排工作负载。最近,该公司的开发团队开始在 ECS 集群中使用 AWS Fargate 代替 Amazon EC2 实例。过去,工作负载已接近运行账户中可用的 EC2 实例的最大数量。该公司担心工作负载可能会达到允许的 ECS 任务的最大数量。解决方案架构师必须实现一个解决方案,当 Fargate 达到最大任务数的 80% 时,该解决方案将通知开发团队。解决方案架构师应该做什么来满足这个要求?
选项
A. Use Amazon CloudWatch to monitor the Sample Count statistic for each service in the ECS cluster. Set an alarm for when the math expression sample count/SERVICE_QUOTA(service)*100 is greater than 80. Notify the development team by using Amazon Simple Notification Service (Amazon SNS).
中文翻译:
使用 Amazon CloudWatch 监控 ECS 集群中每个服务的样本计数统计数据。当数学表达式样本计数/SERVICE_QUOTA(service)*100 大于 80 时设置警报。使用 Amazon Simple Notification Service (Amazon SNS) 通知开发团队。
B. Use Amazon CloudWatch to monitor service quotas that are published under the AWS/Usage metric namespace. Set an alarm for when the math expression metric/SERVICE_QUOTA(metric)*100 is greater than 80. Notify the development team by using Amazon Simple Notification Service (Amazon SNS).
中文翻译:
使用 Amazon CloudWatch 监控在 AWS/Usage 指标命名空间下发布的服务配额。当数学表达式指标/SERVICE_QUOTA(metric)*100 大于 80 时设置警报。使用 Amazon Simple Notification Service (Amazon SNS) 通知开发团队。
C. Create an AWS Lambda function to poll detailed metrics from the ECS cluster. When the number of running Fargate tasks is greater than 80, invoke Amazon Simple Email Service (Amazon SES) to notify the development team.
中文翻译:
创建 AWS Lambda 函数以从 ECS 集群轮询详细指标。当正在运行的 Fargate 任务数量大于 80 时,调用 Amazon Simple Email Service (Amazon SES) 通知开发团队。
D. Create an AWS Config rule to evaluate whether the Fargate SERVICE_QUOTA is greater than 80. Use Amazon Simple Email Service (Amazon SES) to notify the development team when the AWS Config rule is not compliant.
中文翻译:
创建 AWS Config 规则来评估 Fargate SERVICE_QUOTA 是否大于 80。当 AWS Config 规则不合规时,使用 Amazon Simple Email Service (Amazon SES) 通知开发团队。
答案
B
解析
正确答案:B 解析: 本题应选择 B。 正确选项: B. 使用 Amazon CloudWatch 监控在 AWS/Usage 指标命名空间下发布的服务配额。当数学表达式指标/SERVICE_QUOTA(metric)*100 大于 80 时设置警报。使用 Amazon Simple Notification Service (Amazon SNS) 通知开发团队。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题...