SOA-C03 练习题

SOA-C03 题目讲解:多实例也要跨可用区

SOA-C03 练习题讲解。答案 C。当前实例全在单 AZ,该 AZ 故障会使所有实例一起不可用。

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

题目

A company has an infernal web application that runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Amazon EC2 Auto Scaling group in a single Availability Zone. A SysOps administrator must make the application highly available. Which action should the SysOps administrator take to meet this requirement?

A. Increase the maximum number of instances in the Auto Scaling group to meet the capacity that is required at peak usage.
B. Increase the minimum number of instances in the Auto Scaling group to meet the capacity that is required at peak usage.
C. Update the Auto Scaling group to launch new instances in a second Availability Zone in the same AWS Region.
D. Update the Auto Scaling group to launch new instances in an Availability Zone in a second AWS Region.

答案

答案 C。当前实例全在单 AZ,该 AZ 故障会使所有实例一起不可用。

拆题

  • 当前实例全在单 AZ,该 AZ 故障会使所有实例一起不可用。
  • ASG 加第二 AZ 分散故障域,ALB 也需启用对应 AZ 并有健康目标。
  • ASG 是区域资源,不能把一个组直接扩到另一个 Region。

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

  • A:提高 max 只增加扩容上限,不改变实例同 AZ 的共同故障风险。
  • B:提高 min 增加现有容量,仍可能全位于同一故障域。
  • C(正确):同 Region 第二 AZ 的 subnet 加入 ASG,配 ALB 与足够实例,实现区域内 HA。
  • D:跨 Region 需要另一套资源与路由,不是修改一个 ASG 的 AZ 列表。

放到具体场景里

教学例子:四实例分两 AZ,每区两台;关闭一 AZ 的服务路径,另一区继续响应。若 ALB 没启用第二 AZ,或只配一个总实例,增加 subnet 名字不保证真正冗余。验证剩余容量和共享数据库,避免只让 web 层高可用。

检查对象本例条件或动作结果与边界
故障域两个 AZ减少共同失效
入口ALB 启用两 AZ健康 target 可选
容量失一区后可承载实测业务时延

遇到同类题的判断顺序

  1. 加入子网:ASG 覆盖第二 AZ。
  2. 准备实例:实际分布与数量足够。
  3. 配置入口:ALB 与健康检查覆盖。
  4. 演练故障:验证剩余容量和依赖。
结论:高可用需要不同故障域中的可用容量,不能只提高 max 值。

参考资料

继续练这门考试

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