SAP-C02 第 501 题
题目
A company runs a web application on a single Amazon EC2 instance. End users experience slow application performance during times of peak usage, when CPU utilization is consistently more than 95%. A user data script installs required custom packages on the EC2 instance. The process of launching the instance takes several minutes. The company is creating an Auto Scaling group that has mixed instance groups, varied CPUs, and a maximum capacity limit. The Auto Scaling group will use a launch template for various configuration options. The company needs to decrease application latency when new instances are launched during auto scaling. Which solution will meet these requirements?
中文翻译:
一家公司在单个 Amazon EC2 实例上运行 Web 应用程序。最终用户在使用高峰期(CPU 利用率始终高于 95%)会遇到应用程序性能缓慢的情况。用户数据脚本在 EC2 实例上安装所需的自定义包。启动实例的过程需要几分钟时间。该公司正在创建一个 Auto Scaling 组,该组具有混合实例组、不同的 CPU 和最大容量限制。 Auto Scaling 组将使用启动模板来实现各种配置选项。该公司需要在自动扩展期间启动新实例时减少应用程序延迟。哪种解决方案可以满足这些要求?
选项
A. Use a predictive scaling policy. Use an instance maintenance policy to run the user data script. Set the default instance warmup time to 0 seconds.
中文翻译:
使用预测性扩展策略。使用实例维护策略来运行用户数据脚本。将默认实例预热时间设置为 0 秒。
B. Use a dynamic scaling policy. Use lifecycle hooks to run the user data script. Set the default instance warmup time to 0 seconds.
中文翻译:
使用动态扩展策略。使用生命周期挂钩运行用户数据脚本。将默认实例预热时间设置为 0 秒。
C. Use a predictive scaling policy. Enable warm pools for the Auto Scaling group. Use an instance maintenance policy to run the user data script.
中文翻译:
使用预测性扩展策略。为 Auto Scaling 组启用热池。使用实例维护策略来运行用户数据脚本。
D. Use a dynamic scaling policy. Enable warm pools for the Auto Scaling group. Use lifecycle hooks to run the user data script.
中文翻译:
使用动态扩展策略。为 Auto Scaling 组启用热池。使用生命周期挂钩运行用户数据脚本。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 使用动态扩展策略。为 Auto Scaling 组启用热池。使用生命周期挂钩运行用户数据脚本。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:EC2、Config、Auto Scaling。 排除思路: A、B...