Question 1,389 of 1,546
Reliability and Business ContinuitymediumMultiple ChoiceObjective-mapped

Quick Answer

The correct solution is to add a lifecycle hook on the autoscaling:EC2_INSTANCE_LAUNCHING transition and signal CompleteLifecycleAction(CONTINUE) when bootstrap finishes. This works because lifecycle hooks pause the instance in a 'pending:wait' state during launch, preventing the load balancer from routing traffic until the instance completes its four-minute bootstrap process—covering software installation, service discovery registration, and cache warm-up. Without this hook, premature traffic causes 503 errors, a common pitfall on the AWS Certified SysOps Administrator Associate SOA-C02 exam where you must distinguish between lifecycle hooks and health check grace periods. The exam tests your understanding that lifecycle hooks control the launch transition itself, while grace periods only delay health checks after the instance is already in service. A memory tip: think "Hook before Handle"—the lifecycle hook catches the instance before the load balancer handles traffic, ensuring zero 503 errors during bootstrap.

SOA-C02 Practice Question: Auto Scaling lifecycle hooks to complete…

This SOA-C02 practice question tests your understanding of reliability and business continuity. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: eC2 Auto Scaling lifecycle hooks. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An Auto Scaling group launches new EC2 instances when CPU exceeds 70 percent. The instances take 4 minutes to bootstrap (install software, register with a service discovery system, and warm up caches). Without a hook, the load balancer routes traffic to new instances before they are ready, causing 503 errors. What is the correct solution?

Question 1mediummultiple choice
Review the full routing breakdown →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Add a lifecycle hook on the autoscaling:EC2_INSTANCE_LAUNCHING transition; signal CompleteLifecycleAction(CONTINUE) when bootstrap finishes

Option A is correct because lifecycle hooks allow the Auto Scaling group to pause instance launch until a custom action (e.g., bootstrap completion) is finished. By adding a hook on the autoscaling:EC2_INSTANCE_LAUNCHING transition, the instance is held in a 'pending:wait' state. Once the bootstrap script calls CompleteLifecycleAction with the CONTINUE result, the instance transitions to 'InService' and can then be registered with the load balancer, preventing premature traffic and 503 errors.

Key principle: EC2 Auto Scaling lifecycle hooks

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add a lifecycle hook on the autoscaling:EC2_INSTANCE_LAUNCHING transition; signal CompleteLifecycleAction(CONTINUE) when bootstrap finishes

    Why this is correct

    The hook holds the instance in Pending:Wait, outside the target group, until the signal arrives. The load balancer never routes traffic to the instance during its Pending:Wait phase. After the CONTINUE signal, the instance enters InService and the load balancer registers it normally. The heartbeat timeout (default 1 hour, configurable) should exceed the bootstrap time.

    Related concept

    EC2 Auto Scaling lifecycle hooks

  • Increase the load balancer health check grace period to 10 minutes to give instances time to bootstrap

    Why it's wrong here

    The health check grace period tells the Auto Scaling group how long to wait before checking the health of a newly launched instance. It does not prevent the load balancer from routing traffic to the instance — the instance joins the target group immediately at launch. A 503 during the grace period is still visible to users.

  • Increase the warm-up time in the Auto Scaling group's instance refresh configuration

    Why it's wrong here

    Instance refresh warm-up controls how long Auto Scaling waits before updating the next batch during a rolling refresh. It does not hold instances out of the load balancer target group during normal scale-out launches. Lifecycle hooks are the correct mechanism for gating entry to InService.

  • Use a weighted target group with 0 weight for new instances until they are confirmed healthy

    Why it's wrong here

    Target group weights affect what percentage of traffic is directed to a given target group — they are used for blue/green deployments between groups. Individual instance weights within a target group cannot be set to zero through standard ALB configuration.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse the health check grace period (which only delays health checks, not registration) with lifecycle hooks (which actually control when the instance becomes available to the load balancer).

Detailed technical explanation

How to think about this question

Lifecycle hooks work by placing the instance in a 'pending:wait' state, during which the Auto Scaling group waits for a timeout (default 3600 seconds) or a CompleteLifecycleAction call. The hook can be integrated with services like AWS Lambda or Amazon SNS to run custom scripts. Under the hood, the instance remains in this state until the action is completed, and the load balancer target group does not register the instance until it transitions to 'InService', preventing any traffic before readiness.

KKey Concepts to Remember

  • EC2 Auto Scaling lifecycle hooks
  • Pending:Wait state
  • instance warm-up
  • CompleteLifecycleAction

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

EC2 Auto Scaling lifecycle hooks

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. EC2 Auto Scaling lifecycle hooks Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Review eC2 Auto Scaling lifecycle hooks, then practise related SOA-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related SOA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SOA-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SOA-C02 question test?

Reliability and Business Continuity — This question tests Reliability and Business Continuity — EC2 Auto Scaling lifecycle hooks.

What is the correct answer to this question?

The correct answer is: Add a lifecycle hook on the autoscaling:EC2_INSTANCE_LAUNCHING transition; signal CompleteLifecycleAction(CONTINUE) when bootstrap finishes — Option A is correct because lifecycle hooks allow the Auto Scaling group to pause instance launch until a custom action (e.g., bootstrap completion) is finished. By adding a hook on the autoscaling:EC2_INSTANCE_LAUNCHING transition, the instance is held in a 'pending:wait' state. Once the bootstrap script calls CompleteLifecycleAction with the CONTINUE result, the instance transitions to 'InService' and can then be registered with the load balancer, preventing premature traffic and 503 errors.

What should I do if I get this SOA-C02 question wrong?

Review eC2 Auto Scaling lifecycle hooks, then practise related SOA-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

EC2 Auto Scaling lifecycle hooks

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SOA-C02 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.