SAP-C02 练习题

SAP-C02 题目讲解:先计算故障后容量,再谈 Spot 成本

SAP-C02 练习题讲解。答案 D。在三 AZ 分散即时 On-Demand Capacity Reservations,把可中断的 Spot 留给能延迟的用户任务;Savings Plan 的长期承诺不符合题设。

SAP-C02 免费试练题 · 考证匠讲解

题目

A company uses an on-premises data analytics platform. The system is highly available in a fully redundant configuration across 12 servers in the company’s data center. The system runs scheduled jobs, both hourly and daily, in addition to one-time requests from users. Scheduled jobs can take between 20 minutes and 2 hours to finish running and have tight SLAs. The scheduled jobs account for 65% of the system usage. User jobs typically finish running in less than 5 minutes and have no SLA. The user jobs account for 35% of system usage. During system failures, scheduled jobs must continue to meet SLAs. However, user jobs can be delayed. A solutions architect needs to move the system to Amazon EC2 instances and adopt a consumption-based model to reduce costs with no long-term commitments. The solution must maintain high availability and must not affect the SLAs. Which solution will meet these requirements MOST cost-effectively?

A. Split the 12 instances across two Availability Zones in the chosen AWS Region. Run two instances in each Availability Zone as On-Demand Instances with Capacity Reservations. Run four instances in each Availability Zone as Spot Instances.
B. Split the 12 instances across three Availability Zones in the chosen AWS Region. In one of the Availability Zones, run all four instances as On-Demand Instances with Capacity Reservations. Run the remaining instances as Spot Instances.
C. Split the 12 instances across three Availability Zones in the chosen AWS Region. Run two instances in each Availability Zone as On-Demand Instances with a Savings Plan. Run two instances in each Availability Zone as Spot Instances.
D. Split the 12 instances across three Availability Zones in the chosen AWS Region. Run three instances in each Availability Zone as On-Demand Instances with Capacity Reservations. Run one instance in each Availability Zone as a Spot Instance.

答案

答案 D。在三 AZ 分散即时 On-Demand Capacity Reservations,把可中断的 Spot 留给能延迟的用户任务;Savings Plan 的长期承诺不符合题设。

拆题

  • 先分负载:定时任务有 20 分钟至 2 小时的 SLA,用户任务允许延迟,不能把两者都当成可任意中断的工作。
  • 即时 On-Demand Capacity Reservations 不要求长期期限承诺;它解决指定 AZ 的容量保障,Spot 解决可容忍中断负载的成本。
  • D 在三 AZ 各放三台保障容量和一台 Spot,购买组合与分散方向最符合题设。实际 SLA 还需要根据作业并行度、队列峰值和 AZ 故障恢复演练校验,65% 使用量不能直接当作精确 CPU 台数。

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

  • A:两 AZ 各两台保障容量,总共只有四台;其他八台都是 Spot,无法把主要 SLA 任务都放在稳定容量上。失去一个 AZ 后资源集中风险更明显。
  • B:把四台保障容量集中在一个 AZ;该 AZ 故障时剩余全是 Spot,关键定时任务失去稳定承载。跨三个 AZ 并不自动消除关键负载单点。
  • C:三 AZ 分布改善故障隔离,但 Savings Plan 要承担约定期限的使用承诺,直接违反 no long-term commitments。
  • D(正确):三 AZ 各三台 On-Demand Capacity Reservation 和一台 Spot,把更多稳定容量留给 SLA 作业,可延期任务使用低成本 Spot。容量预留不等于自动作业故障转移,还需应用层调度和重试。

放到具体场景里

教学例子:夜间财务结算不可延迟,临时分析报表可重跑。把结算工作者部署在三个 AZ 的预留容量上,临时报表提交到可中断队列;收到 Spot 中断通知时保存进度并重试。预留容量的数量由压测确定,不能仅由账单使用比例推断。

负载采购与调度故障时动作
定时结算分散在多个 AZ 的 On-Demand 保障容量在健康区重调度,核对完成时限
临时分析Spot 工作队列中断后重试,允许排队
承诺约束即时 Capacity Reservation按需使用和取消,避免长期购买承诺

遇到同类题的判断顺序

  1. 区分负载:标出有 SLA 的定时作业和可延期的临时请求。
  2. 检查购买约束:排除长期 Savings Plan 承诺,使用即时容量预留。
  3. 分散保障容量:把关键作业放入多个 AZ,Spot 任务支持保存进度与重试。
  4. 演练故障:按实际峰值验证单 AZ 故障下的队列时延和 SLA。
结论:先用 SLA 分负载,再比较购买约束与故障后的保障容量;多 AZ、折扣和容量保证分别解决不同问题。

参考资料

继续练这门考试

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