passdrill
AWS SAA-C03 · EC2 & Compute · Card 016/024 hard

An Auto Scaling group uses a Pending:Wait lifecycle hook with its default heartbeat timeout to let a configuration management agent finish installing software before a new instance enters service. The install job unpredictably takes anywhere from 10 minutes to just under 4 hours. With no heartbeat calls sent from the instance and everything left at its defaults, what happens for an install that takes 3 hours?

  1. The instance times out of the wait state after the default 1-hour heartbeat timeout, and Auto Scaling proceeds using the hook's configured default result before the 3-hour install finishes
  2. The instance waits the full 3 hours, because the default heartbeat timeout is 4 hours
  3. The instance waits indefinitely, because lifecycle hooks never time out unless a heartbeat explicitly ends them
  4. The instance is terminated immediately once the hook is created, before the install can even start
Next card → Shuffle