SAP-C02 第 222 题
题目
A company wants to run a custom network analysis software package to inspect traffic as traffic leaves and enters a VPC. The company has deployed the solution by using AWS CloudFormation on three Amazon EC2 instances in an Auto Scaling group. All network routing has been established to direct traffic to the EC2 instances. Whenever the analysis software stops working, the Auto Scaling group replaces an instance. The network routes are not updated when the instance replacement occurs. Which combination of steps will resolve this issue? (Choose three.)
中文翻译:
一家公司希望运行自定义网络分析软件包来检查流量离开和进入 VPC 时的流量。该公司已在 Auto Scaling 组中的三个 Amazon EC2 实例上使用 AWS CloudFormation 部署该解决方案。所有网络路由均已建立,以将流量引导至 EC2 实例。每当分析软件停止工作时,Auto Scaling 组就会替换实例。发生实例替换时,网络路由不会更新。哪种步骤组合可以解决此问题? (选择三项。)
选项
A. Create alarms based on EC2 status check metrics that will cause the Auto Scaling group to replace the failed instance.
中文翻译:
根据 EC2 状态检查指标创建警报,这将导致 Auto Scaling 组替换故障实例。
B. Update the CloudFormation template to install the Amazon CloudWatch agent on the EC2 instances. Configure the CloudWatch agent to send process metrics for the application.
中文翻译:
更新 CloudFormation 模板以在 EC2 实例上安装 Amazon CloudWatch 代理。配置 CloudWatch 代理以发送应用程序的进程指标。
C. Update the CloudFormation template to install AWS Systems Manager Agent on the EC2 instances. Configure Systems Manager Agent to send process metrics for the application.
中文翻译:
更新 CloudFormation 模板以在 EC2 实例上安装 AWS Systems Manager 代理。配置 Systems Manager 代理以发送应用程序的进程指标。
D. Create an alarm for the custom metric in Amazon CloudWatch for the failure scenarios. Configure the alarm to publish a message to an Amazon Simple Notification Service (Amazon SNS) topic.
中文翻译:
在 Amazon CloudWatch 中针对故障场景为自定义指标创建警报。配置警报以将消息发布到 Amazon Simple Notification Service (Amazon SNS) 主题。
E. Create an AWS Lambda function that responds to the Amazon Simple Notification Service (Amazon SNS) message to take the instance out of service. Update the network routes to point to the replacement instance.
中文翻译:
创建一个 AWS Lambda 函数来响应 Amazon Simple Notification Service (Amazon SNS) 消息以使实例停止服务。更新网络路由以指向替换实例。
F. In the CloudFormation template, write a condition that updates the network routes when a replacement instance is launched.
中文翻译:
在 CloudFormation 模板中,编写一个条件,用于在启动替换实例时更新网络路由。
答案
BDE
解析
正确答案:BDE 解析: 本题应选择 BDE。 正确选项: B. 更新 CloudFormation 模板以在 EC2 实例上安装 Amazon CloudWatch 代理。配置 CloudWatch 代理以发送应用程序的进程指标。 D. 在 Amazon CloudWatch 中针对故障场景为自定义指标创建警报。配置警报以将消息发布到 Amazon Simple Notification Service (Amazon SNS) 主题...