SAP-C02 免费试练题 · 考证匠讲解
题目
A company owns a chain of travel agencies and is running an application in the AWS Cloud. Company employees use the application to search for information about travel destinations. Destination content is updated four times each year. Two fixed Amazon EC2 instances serve the application. The company uses an Amazon Route 53 public hosted zone with a multivalue record of travel.example.com that returns the Elastic IP addresses for the EC2 instances. The application uses Amazon DynamoDB as its primary data store. The company uses a self-hosted Redis instance as a caching solution. During content updates, the load on the EC2 instances and the caching solution increases drastically. This increased load has led to downtime on several occasions. A solutions architect must update the application so that the application is highly available and can handle the load that is generated by the content updates. Which solution will meet these requirements?
答案
拆题
- 更新日期已知,可提前 scheduled scaling,避免等待 CPU 告警后再扩容。
- 两台固定 EC2 与单机 Redis 形成瓶颈;ASG、ALB 和托管缓存分别解决容量与故障。
- DAX 适合 DynamoDB 读取加速,但缓存 TTL、写入路径与强一致读取需求需要核对。
每个选项为什么对、为什么错
- A(正确):DAX 接近现有 DynamoDB 访问模型,ALB 配 ASG 并提前扩容,覆盖缓存与应用两层。
- B:CloudFront 不能直接把 ASG 当 origin,手动扩容也增加漏操作风险。
- C:Memcached 加 ALB/ASG 可以构建有效方案,但需要自管缓存填充、失效逻辑;本题原生 DynamoDB 加速的 DAX 路径更直接,不能说 C 完全不可用。
- D:DAX 正确,但 ASG 不是可直接访问的 CloudFront origin,且手工扩容没有利用已知更新计划。
放到具体场景里
教学例子:发布目的地内容前半小时把应用容量从 2 提到 8,并做缓存预热。客户端使用 DAX 支持的访问方式,更新后按业务新鲜度控制缓存;要求立即最新的读取走正确一致性路径。ALB 分配健康实例,Route 53 alias 指向 ALB 而不是固定实例 EIP。
| 检查对象 | 本例条件或动作 | 结果与边界 |
|---|---|---|
| 应用层 | ASG 2→8 提前扩容 | 估算容量需压测 |
| 缓存层 | DAX 与 TTL 策略 | 核对新鲜度 |
| 入口层 | ALB + alias | 不绑定单台 EIP |
遇到同类题的判断顺序
- 预测峰值:按四次年度更新安排容量。
- 准备缓存:明确刷新和一致性策略。
- 弹性服务:ALB 分发到 ASG 健康实例。
- 观测收缩:高峰结束后按测量回收容量。
参考资料
继续练这门考试
同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。
