An organization is using OpsWorks to manage a stack of application servers. They need to automatically scale out based on CPU utilization. Which configuration should the SysOps administrator use to achieve this?
Adding a load-based layer and specifying CPU utilization thresholds lets OpsWorks Stacks watch the layer's load metrics and automatically add or remove instances when CPU crosses upper or lower limits, with configurable cooldown and evaluation periods. This directly satisfies the CPU-based demand requirement because the layer scales out to more instances when CPU is high and scales in when it drops. Load-based instances are one of the built-in OpsWorks scaling types (along with time-based and 24/7 instances), and they are the only option listed that triggers scaling based on actual utilization.
Why this answer
OpsWorks load-based layers automatically scale instances based on CloudWatch alarms, such as CPU utilization thresholds. Option A is incorrect because auto-healing replaces failed instances, not scales out. Option B is incorrect because custom Chef recipes run on lifecycle events (setup, configure, etc.) but do not directly handle automatic scaling.
Option D is incorrect because time-based instances scale on a schedule, not based on CPU utilization.