Courseiva

SOA-C02 Monitoring, Logging, and Remediation Practice Question

A company has deployed a web application on EC2 instances with an Auto Scaling group. The SysOps administrator needs to automatically replace any instance that is in a 'failed' status as reported by the EC2 status checks. Which action should the administrator take?

⚠ Common exam trap

Watch out — candidates often confuse monitoring (CloudWatch alarms or SNS notifications) with automated remediation, forgetting that Auto Scaling groups have a built-in health check replacement feature that directly addresses the requirement to automatically replace failed instances.

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

✓

Configure the Auto Scaling group to use EC2 status checks for health checks.

An Auto Scaling group can be configured to use EC2 status checks (both system and instance) as the health check type. When the status check reports a failed status, the Auto Scaling group automatically terminates the unhealthy instance and launches a new one to replace it, ensuring self-healing without manual intervention.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Create an AWS Config rule to detect failed status checks and trigger a remediation action.

    Why it's wrong here

    AWS Config rules evaluate resource compliance against desired configurations, not real-time instance health; they lack the ability to detect transient EC2 status check failures and trigger immediate instance replacement within an Auto Scaling group. This option is tempting because AWS Config can remediate non-compliant resources via automation, and in scenarios requiring enforcement of configuration baselines—such as ensuring instances have specific security groups or AMI IDs—it would be the correct choice. However, the stem demands automatic replacement based on live status checks, which is natively handled by Auto Scaling group health checks, not Config's compliance framework.

  • ✗

    Create an AWS Lambda function that stops and starts the failed instance.

    Why it's wrong here

    Stopping and starting the failed instance via an AWS Lambda function is an out-of-band, procedural workaround rather than a managed recovery mechanism. It does not integrate with an Auto Scaling group's desired capacity or lifecycle hooks, so if the instance is part of an ASG, manually stopping it could conflict with the group's health check evaluations and capacity tracking. Furthermore, a stop/start operation does not guarantee that the underlying host or network impairment causing the status check failure will be resolved, and it requires custom logic to detect and respond to each failure—unlike Auto Scaling, which natively performs health checks and automatically replaces unhealthy instances.

  • ✓

    Configure the Auto Scaling group to use EC2 status checks for health checks.

    Why this is correct

    Configuring the Auto Scaling group to use EC2 status checks for health checks is the correct native mechanism because Auto Scaling continuously monitors the StatusCheckFailed metrics (system status and instance status) for each instance in the group. When a status check fails, the ASG marks the instance as unhealthy, terminates it, and launches a replacement instance to maintain the desired capacity—all without custom code or manual intervention. This approach leverages Amazon's built-in health check integration and is the intended method for automatically replacing instances that have failed EC2 status checks, ensuring the web application remains available.

  • ✗

    Create a CloudWatch alarm on the StatusCheckFailed metric and trigger an SNS notification.

    Why it's wrong here

    Creating a CloudWatch alarm on the StatusCheckFailed metric and triggering an SNS notification only alerts human operators or downstream systems about a failure; it does not perform any automatic remediation by itself. This option lacks the execution of a recovery action such as terminating or replacing the instance, so the failed instance would remain in service and continue failing health checks until someone manually responds to the notification. Moreover, CloudWatch alarms evaluate metrics over specified periods and are not designed to directly replace instances; that responsibility belongs to the Auto Scaling group's native health check mechanism, which also handles the replacement in a controlled and scalable manner.

About these practice questions

One of 1,169 original SOA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.