CLF-C02 Compute Services 4 — Questions and Answers
Question 1: Which EC2 purchasing option is most suitable for an unpredictable workload that cannot be interrupted?
- Spot Instances
- Reserved Instances
- On-Demand Instances (Correct answer)
- Dedicated Hosts
Correct answer: On-Demand Instances
On-Demand Instances have no long-term commitment and are never interrupted by AWS, making them ideal for unpredictable workloads.
Question 2: What is the key benefit of using an EC2 Dedicated Host compared to a standard EC2 instance?
- Lower cost per hour
- Physical server isolation for compliance and license management (Correct answer)
- Faster network throughput
- Automatic instance replacement on failure
Correct answer: Physical server isolation for compliance and license management
Dedicated Hosts give you a physical server solely for your use, helping meet compliance requirements and enabling per-socket or per-core software licensing.
Question 3: AWS Lambda charges are based on which two factors?
- Number of EC2 instances and storage used
- Number of requests and compute duration (GB-seconds) (Correct answer)
- vCPUs allocated and data transfer out
- Deployment package size and region
Correct answer: Number of requests and compute duration (GB-seconds)
Lambda pricing is based on the total number of function invocations and the duration your code runs, measured in GB-seconds of memory consumed.
Question 4: A company needs to ensure a minimum number of EC2 instances are always running while allowing the fleet to grow during peak demand. Which Auto Scaling setting controls the always-on minimum?
- Desired capacity
- Maximum capacity
- Minimum capacity (Correct answer)
- Cooldown period
Correct answer: Minimum capacity
The minimum capacity in an Auto Scaling group defines the floor — AWS will never scale below this number of instances.
Question 5: Which AWS service runs managed Kubernetes clusters, abstracting away the control plane management?
- Amazon ECS
- AWS Fargate
- Amazon EKS (Correct answer)
- AWS App Runner
Correct answer: Amazon EKS
Amazon Elastic Kubernetes Service (EKS) provides a managed Kubernetes control plane, handling upgrades, patching, and availability automatically.
Question 6: What distinguishes AWS Savings Plans from Reserved Instances?
- Savings Plans require a hardware reservation; Reserved Instances do not
- Savings Plans offer flexible commitment to a compute spend rate, applying across instance families and regions (Correct answer)
- Reserved Instances apply to Lambda; Savings Plans apply only to EC2
- Savings Plans have no minimum term commitment
Correct answer: Savings Plans offer flexible commitment to a compute spend rate, applying across instance families and regions
Savings Plans commit you to a consistent spend per hour (e.g., $10/hr) and automatically apply discounts across EC2, Lambda, and Fargate regardless of region or instance type.
Question 7: An application needs to process thousands of jobs simultaneously. The jobs are fault-tolerant and can restart if interrupted. Which option is most cost-effective?
- On-Demand Instances
- Reserved Instances
- Dedicated Hosts
- Spot Instances (Correct answer)
Correct answer: Spot Instances
Spot Instances can be up to 90% cheaper than On-Demand and are ideal for fault-tolerant, interruptible batch workloads.
Which EC2 purchasing option is most suitable for an unpredictable workload that cannot be interrupted?