SOA-C03 练习题

SOA-C03 题目讲解:实例状态事件用 EventBridge 通知 SNS

SOA-C03 练习题讲解。答案 C。running、stopped 等状态变化是 EC2 服务事件。

SOA-C03 免费试练题 · 考证匠讲解

题目

A company has 10 Amazon EC2 instances in its production account. A SysOps administrator must ensure that email notifications are sent to administrators each time there is an EC2 instance state change. Which solution will meet this requirements?

A. Configure an Amazon Route 53 simple routing policy that publishes a message to an Amazon Simple Notification Service (Amazon SNS) topic when an EC2 instance state changes. This SNS topic then sends notifications to its email subscribers.
B. Configure an Amazon Route 53 simple routing policy that publishes a message to an Amazon Simple Queue Service (Amazon SQS) queue when an EC2 instance state changes. This SQS queue then sends notifications to its email subscribers.
C. Create an Amazon EventBridge (Amazon CloudWatch Events) rule that publishes a message to an Amazon Simple Notification Service (Amazon SNS) topic when an EC2 instance state changes. This SNS topic then sends notifications to its email subscribers.
D. Create an Amazon EventBridge (Amazon CloudWatch Events) rule that publishes a message to an Amazon Simple Queue Service (Amazon SQS) queue when an EC2 instance state changes. This SQS queue then sends notifications to its email subscribers.

答案

答案 C。running、stopped 等状态变化是 EC2 服务事件。

拆题

  • running、stopped 等状态变化是 EC2 服务事件。
  • EventBridge 根据 source/detail-type 过滤后投递 SNS email。
  • SNS 订阅需确认;事件可能重复,邮件不保证恰好一次,需定义通知噪声策略。

每个选项为什么对、为什么错

  • A:Route 53 simple routing 解析 DNS,不监听 EC2 状态事件。
  • B:Route 53 不能按题述发布状态到 SQS;SQS 也不提供邮箱订阅。
  • C(正确):EventBridge EC2 state-change rule 加 SNS confirmed email,是标准事件通知路径。
  • D:EventBridge 方向正确,但 SQS 没有直接 email subscribers 机制。

放到具体场景里

教学例子:实例从 running 变 stopped,EventBridge 事件包含 instance-id 与 state,input transformer 提取这些字段发送邮件。规则限定 production account/Region 或目标 ID,避免测试实例泛滥。实际收到邮件和匹配事件都核对,不能只创建 rule 就认定通知成功。

检查对象本例条件或动作结果与边界
来源EC2 state-change不是 DNS 变化
路由EventBridge filter限定实例范围
通知SNS email confirmed验收真正投递

遇到同类题的判断顺序

  1. 捕获状态:匹配 EC2 服务事件。
  2. 限定范围:过滤生产资源。
  3. 格式通知:包含实例、区域和状态。
  4. 测试投递:确认订阅与邮箱收到。
结论:EventBridge 路由事件,SNS 发送通知,SQS 储存待处理消息。

参考资料

继续练这门考试

同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。