A long-running Amazon EMR on EC2 cluster needs extra capacity for a 2-hour nightly Spark job. The team wants to lower the cost of that capacity and accepts slower runs if instances are reclaimed, but must not lose HDFS data or the cluster. Which approach meets these requirements?
Show the answer
Correct answerA. Add Spot Instances as task nodes for the nightly run.
AWhy this is right: Task nodes store no HDFS data, so Spot interruptions only slow the job while Spot pricing lowers the cost.
BWhy not this: Core nodes store HDFS data, so Spot interruptions on them can lose data.
CWhy not this: Losing the primary node to a Spot interruption terminates the whole cluster.
DWhy not this: Reserved Instances are billed for every hour of the term, which costs more than capacity used 2 hours a night.
Task nodes run tasks but store no HDFS data, so reclaimed Spot task nodes only slow the job. Core nodes hold HDFS, so losing them can lose data, and losing the primary node terminates the cluster. Reserved Instances bill around the clock, which costs more for 2 hours of nightly use.