SAP-C02 Question 512
Select 3A company has an application deployed on Amazon EC2 instances backed by Amazon EBS volumes. The application runs 24/7 but experiences predictable spikes in traffic during business hours, Monday through Friday. The company is seeking to reduce costs while ensuring the application remains available and performant. Which of the following actions should the Solutions Architect take to optimize the costs?
- A
Purchase EC2 Reserved Instances for the baseline workload and use Spot Instances for the traffic spikes.
- B
Switch the EBS volumes to the General Purpose SSD (gp3) storage type.
- C
Use EC2 Auto Scaling with On-Demand Instances to handle both the baseline and spike workloads.
- D
Move the application to AWS Lambda and use Provisioned Concurrency for predictable traffic.
- E
Purchase Savings Plans for the baseline workload and use On-Demand Instances for the traffic spikes.
Show answer and explanation
Correct answers: A, B, E
Explanation
To optimize costs, it's important to use pricing models and storage options that match the workload characteristics. Reserved Instances or Savings Plans are well-suited for predictable, baseline traffic, while Spot Instances are cost-effective for handling variable traffic spikes. Additionally, switching to gp3 storage for EBS volumes can provide cost savings without compromising performance. These approaches together provide a balanced and cost-optimized solution.
- A. Correct.
Correct: Reserved Instances are ideal for predictable and steady workloads like the baseline traffic, and Spot Instances are cost-effective for handling the additional, less critical spike traffic.
- B. Correct.
Correct: Switching to gp3 volumes from gp2 can reduce EBS costs while maintaining or even improving performance.
- C. Incorrect.
Incorrect: Using only On-Demand Instances with Auto Scaling could lead to higher costs compared to a combination of Reserved Instances or Savings Plans and Spot Instances.
- D. Incorrect.
Incorrect: While AWS Lambda can be cost-effective for certain workloads, migrating an application from EC2 to Lambda may not be feasible without significant refactoring, particularly if the application requires 24/7 availability.
- E. Correct.
Correct: Savings Plans offer flexible pricing for consistent workloads and can be combined with On-Demand Instances for handling variable traffic spikes.