Use On-Demand warm pools for critical data and a separate Spot group scaling on a CloudWatch agent memory metric

Answer Correct answer: B, D — use an On-Demand warm pool for critical data and a Spot group scaling on a custom CloudWatch memory metric.

A company's application uses a fleet of Amazon EC2 On-Demand Instances to analyze and process data. The EC2 instances are in an Auto Scaling group. The Auto Scaling group is a target group for an Application Load Balancer (ALB). The application analyzes critical data that cannot tolerate interruption. The application also analyzes noncritical data that can withstand interruption. The critical data analysis requires quick scalability in response to real-time application demand. The noncritical data analysis involves memory consumption. A DevOps engineer must implement a solution that reduces scale-out latency for the critical data. The solution also must process the noncritical data. Which combination of steps will meet these requirements? (Choose two.)

  1. For the critical data, modify the existing Auto Scaling group. Create a warm pool instance in the stopped state. Define the warm pool size. Create a new version of the launch template that has detailed monitoring enabled. Use Spot Instances.
  2. For the critical data, modify the existing Auto Scaling group. Create a warm pool instance in the stopped state. Define the warm pool size. Create a new version of the launch template that has detailed monitoring enabled. Use On-Demand Instances. Correct Answer
  3. For the critical data, modify the existing Auto Scaling group. Create a lifecycle hook to ensure that bootstrap scripts are completed successfully. Ensure that the application on the instances is ready to accept traffic before the instances are registered. Create a new version of the launch template that has detailed monitoring enabled.
  4. For the noncritical data, create a second Auto Scaling group that uses a launch template. Configure the launch template to install the unified Amazon CloudWatch agent and to configure the CloudWatch agent with a custom memory utilization metric. Use Spot Instances. Add the new Auto Scaling group as the target group for the ALB. Modify the application to use two target groups for critical data and noncritical data. Correct Answer
  5. For the noncritical data, create a second Auto Scaling group. Choose the predefined memory utilization metric type for the target tracking scaling policy. Use Spot Instances. Add the new Auto Scaling group as the target group for the ALB. Modify the application to use two target groups for critical data and noncritical data.

Community Votes

BD
100%

100% of anonymous learners picked answer BD. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Interruption tolerance is what separates the two tiers: the critical path must stay On-Demand because the data cannot tolerate interruption, while the noncritical path can use Spot Instances because it can withstand interruption (B and D). Reducing scale-out latency is specifically what a warm pool of pre-initialized stopped instances does, and it is paired with On-Demand rather than Spot. For the noncritical group, the scaling signal must be memory, which is why the launch template installs the CloudWatch agent and configures a custom memory utilization metric that the scaling policy can track (D).

The critical data analysis cannot tolerate interruption and needs fast scale-out on real-time demand, so it stays on the existing On-Demand Auto Scaling group enhanced with a warm pool of stopped instances that reduces scale-out latency, plus detailed monitoring in a new launch template version. The noncritical analysis tolerates interruption and is driven by memory consumption, so it goes on a second Auto Scaling group using Spot Instances whose launch template installs the unified CloudWatch agent configured to publish a custom memory utilization metric, giving the scaling policy a signal to track.

Using Spot Instances for the critical data with a warm pool (A) — trungtd and jamesf identified this, and the requirement is explicit that the critical data cannot tolerate interruption, which is exactly the risk Spot Instances carry; a warm pool of Spot instances can be reclaimed. Choosing the predefined memory utilization metric type for the target tracking policy (E) — trungtd stated plainly that Auto Scaling does not provide a predefined memory utilization metric type, which is precisely why the CloudWatch agent must be installed and configured to publish a custom memory metric in option D. Using a lifecycle hook to delay traffic until bootstrap completes (C) — this improves deployment safety but does not reduce scale-out latency, which is what the warm pool in B addresses.

Community Discussion (4 comments)

trungtd 👍 5 Selected: BD
AWS Auto Scaling does not provide a predefined memory utilization metric type
jamesf 👍 4 Selected: BD
Option B (For critical data): Creates a warm pool and ensures quick scaling with On-Demand Instances, addressing the need for low latency in scaling. Option D (For noncritical data): Uses Spot Instances with memory-based scaling policies to handle noncritical data efficiently.
tgv 👍 4 Selected: BD
---> B D
TEC1 👍 1 Selected: BE
On-Demand Instances: For critical data that cannot tolerate interruption, On-Demand Instances are reliable and provide the required stability without the risk of termination Spot Instances: Utilising Spot Instances for noncritical data processing can significantly reduce costs since these workloads can tolerate interruptions. This combination ensures that the critical data analysis benefits from reduced scale-out latency and reliability, while noncritical data processing leverages cost-effective Spot Instances and is scaled based on memory usage.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The two data types have opposite requirements, so they need separate scaling configurations. The critical data cannot tolerate interruption and must scale out quickly on real-time demand, so it stays in the existing Auto Scaling group on On-Demand Instances and gains a warm pool whose stopped instances are pre-initialized, which is the feature that actually reduces scale-out latency; a new launch template version with detailed monitoring enabled supports the visibility needed, and On-Demand rather than Spot is required because interruption is not acceptable (B). The noncritical data can withstand interruption and is driven by memory consumption, so it moves to a second Auto Scaling group on Spot Instances to gain the cost benefit; its launch template installs the unified CloudWatch agent and configures a custom memory utilization metric, which supplies the signal a target tracking scaling policy needs (D). Splitting the two tiers this way satisfies both the availability and the cost requirement without compromising either. B and D are the correct combination.

Why the Other Options Are Wrong

A modifies the existing Auto Scaling group with a warm pool and detailed monitoring but uses Spot Instances for the critical data. The requirement states that the critical data analysis cannot tolerate interruption, and Spot Instances carry exactly that risk; jamesf and trungtd both identified this as disqualifying, and a warm pool of Spot capacity can be reclaimed. C modifies the existing group with a lifecycle hook that ensures bootstrap completes and the application is ready before instances are registered, and enables detailed monitoring in a new launch template version. A lifecycle hook improves deployment safety and readiness but does nothing to reduce scale-out latency, because new instances still have to be launched and initialized on demand; the warm pool in B is what reduces that latency. E creates a second Auto Scaling group and chooses the predefined memory utilization metric type for the target tracking policy while using Spot Instances. trungtd stated directly that AWS Auto Scaling does not provide a predefined memory utilization metric type, so the policy in E has no valid metric to track; this is exactly the gap option D closes by installing the CloudWatch agent and configuring a custom memory utilization metric. B and D are correct.

Community Comment Notes

Community voted B,D (93). trungtd gave the decisive technical fact that AWS Auto Scaling does not provide a predefined memory utilization metric type, which eliminates option E and explains why option D must install the CloudWatch agent and publish a custom metric. jamesf explained that option B creates a warm pool with On-Demand Instances for the critical data to address low-latency scaling and that option D uses Spot Instances for the noncritical data. TEC1 was the sole dissenter, favoring B and E, and argued that On-Demand is reliable while Spot carries termination risk; that reasoning supports B but does not overcome the absence of a predefined memory metric type in E. No alternative received substantive support.

Official Reference

Related Analysis

Practice All DOP-C02 Questions

Access 85 questions with complete answers and detailed explanations.

View Full DOP-C02 Practice Test →

← Back to DOP-C02 Study Guide