Courseiva
Cost and Performance OptimizationmediumMultiple ChoiceObjective-mapped

SOA-C02 Cost and Performance Optimization Practice Question

A company runs a batch processing job every night that takes 2 hours on a single m5.xlarge EC2 instance. The job is fault-tolerant and can be interrupted. The SysOps administrator wants to reduce costs. Which solution is MOST cost-effective?

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

Use a Spot Instance with a Spot Fleet that includes a fallback to On-Demand if Spot is not available.

The most cost-effective solution is to use a Spot Instance with a Spot Fleet that includes a fallback to On-Demand if Spot is not available (Option B). The job is fault-tolerant and can be interrupted, making it ideal for Spot Instances which offer significant cost savings (up to 90% compared to On-Demand). The Spot Fleet with an On-Demand fallback ensures the job completes even if Spot capacity is unavailable. Option A (On-Demand with CloudWatch alarm) does not reduce costs since On-Demand is more expensive. Option C (Dedicated Host) is costly and unnecessary for a batch job. Option D (Reserved Instance) requires a 1- or 3-year commitment and is not cost-effective for a 2-hour daily job.

Answer analysis

Option-by-option breakdown

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

  • Use an On-Demand instance and set up a CloudWatch alarm to stop it when the job completes.

    Why it's wrong here

    An On-Demand instance gives you full control and no interruption, but you pay the full per-hour price for every hour it runs. A CloudWatch alarm that stops the instance after the job completes only prevents idle-hour charges; it does not reduce the compute cost during the actual job execution. Because this batch workload is fault-tolerant and can handle interruptions, On-Demand pricing is unnecessarily expensive compared to Spot capacity.

  • Use a Spot Instance with a Spot Fleet that includes a fallback to On-Demand if Spot is not available.

    Why this is correct

    A Spot Fleet is the correct choice here because it lets you request Spot Instances at a significantly lower cost while maintaining reliability with an On-Demand fallback. The nightly batch job is fault-tolerant, meaning it can restart or rerun if Spot capacity is reclaimed. If Spot capacity is unavailable or gets interrupted, the Spot Fleet automatically launches an On-Demand instance to ensure the job still completes, giving you a balance of cost savings and capacity assurance.

  • Use a Dedicated Host to run the job.

    Why it's wrong here

    A Dedicated Host provides a physical server dedicated solely to your use, which is useful for meeting licensing requirements or compliance constraints—but this batch job has no such needs. You pay for the entire host per hour regardless of how many instances you run, so using it for a few hours of nightly work is extremely costly. There is no cost benefit or architectural advantage for a stateless, fault-tolerant batch job, making this option unnecessarily expensive.

  • Purchase a Reserved Instance for the m5.xlarge instance.

    Why it's wrong here

    Reserved Instances provide a lower hourly rate only in exchange for a 1- or 3-year upfront commitment, and you are billed for every hour of the term—even when the instance is stopped. A nightly batch job that runs for only a few hours would have a very low utilization rate, making the effective cost per running hour far higher than Spot. Since the workload does not require guaranteed capacity and can tolerate interruptions, paying for 24/7 reserved capacity is not cost-effective.

About these practice questions

Courseiva writes every SOA-C02 question from scratch — 247 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 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.