Courseiva
Resilient Cloud Solutions →mediumMultiple Choice

DOP-C02 Resilient Cloud Solutions Practice Question

A company experiences intermittent high latency for a web application running on EC2 behind an ALB. They want to monitor and automatically replace instances that have high CPU. Which solution meets this requirement?

⚠ Common exam trap

Test-takers frequently confuse ALB health checks with instance health monitoring, assuming ALB can react to CPU metrics, when in fact ALB health checks only verify application-level responsiveness (e.g., HTTP status codes) and cannot directly measure CPU utilization.

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

✓

Create a CloudWatch alarm on CPU utilization that triggers an Auto Scaling policy to replace the instance

You can configure a CloudWatch alarm on the EC2 instance's CPU utilization metric, and then use that alarm to trigger an Auto Scaling lifecycle hook or a scaling policy that terminates the unhealthy instance and launches a replacement. This directly ties performance monitoring to automated instance replacement, meeting the requirement to replace instances with high CPU.

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 a CloudWatch alarm on CPU utilization that triggers an Auto Scaling policy to replace the instance

    Why this is correct

    A CloudWatch alarm on CPUUtilization monitors the metric in near real-time and, when breached, triggers an Auto Scaling policy that terminates the affected instance, after which the Auto Scaling group automatically launches a fresh replacement. This directly addresses the intermittent high latency by reacting to the actual symptom (high CPU) as it occurs, rather than relying on predetermined schedules, and the managed replacement ensures capacity is maintained without manual intervention.

  • ✗

    Use Auto Scaling scheduled scaling actions to replace instances at peak times

    Why it's wrong here

    Scheduled scaling actions execute on a fixed cron or recurrence schedule, which assumes that traffic and CPU patterns are predictable. Intermittent high latency does not follow a consistent timeline, so pre-scheduled replacements will either fire too early, too late, or not at all, and cannot adapt to a sudden CPU spike. These actions are designed for planned peak windows, not for responding to real-time utilization, making them useless for an unpredictable, intermittent problem.

  • ✗

    Use AWS Lambda to periodically check CPU and terminate high-CPU instances

    Why it's wrong here

    Using Lambda to periodically poll CPU Utilization and then terminate instances is a custom, out-of-band control loop that lacks Auto Scaling integration. Terminating an instance directly does not automatically launch a replacement unless you also implement separate logic to call the EC2 RunInstances API or force a scale-in, and the periodic polling interval (e.g., every few minutes) adds latency that worsens the outage. Additionally, this approach bypasses Auto Scaling health checks and lifecycle hooks, making the process error-prone and unable to maintain the desired capacity reliably.

  • ✗

    Configure the ALB health check to mark instances unhealthy when CPU is high

    Why it's wrong here

    ALB health checks operate at Layers 4 and 7 and verify an instance's ability to respond to HTTP(S) or TCP requests; they do not measure CPU utilization or any other CloudWatch metric. You cannot configure an ALB health check to directly mark an instance unhealthy based on CPU because the health check merely attempts a request (such as GET /) and considers the instance unhealthy on connection or HTTP failure. Even if the application were customized to return a 5xx under high CPU, that would be a manual application-level signal, not an ALB-native CPU check, and it would only stop routing traffic—it would not automatically replace the instance unless Auto Scaling were also configured.

About these practice questions

Courseiva writes every DOP-C02 question from scratch — 1,298 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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 DOP-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 DOP-C02 exam.