Q47 — AWS SAP-C02 Ch.2
Question 47 of 75 | ← Chapter 2
Q197. A company has migrated an application from on premises to AWS.The application frontend is a static website that runs on two Amazon EC2 instances behind an Application Load Balancer (ALB). The application backend is a Python application that runs on three EC2 instances behind another ALB. The EC2 instances are large, general purpose On-Demand Instances that were sized to meet the on-premises specifications for peak usage of the application. The application averages hundreds of thousands of requests each month. However, the application is used mainly during lunchtime and receives minimal traffic during the rest of the day. A solutions architect needs to optimize the infrastructure cost of the application without negatively affecting the application availability. Which combination of steps will meet these requirements?(Select TWO.)
- A. Change all the EC2 instances to compute optimized instances that have the same number of cores as the existing EC2 instances
- B. Move the application frontend to a static website that is hosted on Amazon S3 ✓
- C. Deploy the application frontend by using AWS Elastic Beanstalk. Use the same instance type for the nodes
- D. Change all the backend EC2 instances to Spot Instances
- E. Deploy the backend Python application to general purpose burstable EC2 instances that have the same number of cores as the existing EC2 instances ✓
Correct Answer: B. Move the application frontend to a static website that is hosted on Amazon S3, E. Deploy the backend Python application to general purpose burstable EC2 instances that have the same number of cores as the existing EC2 instances
Explanation
Option A does not provide any optimization for the infrastructure cost as it only changes the instance type while keeping the same amount of resources. Option C does not optimize infrastructure cost as Elastic Beanstalk uses managed on-demand instances that would likely have higher cost than other options. Option D suggests changing all the backend EC2 instances to Spot Instances, which can help reduce costs. However, this option may not be suitable if the company cannot tolerate the potential loss of instances due to Spot Instance interruption. Option B suggests moving the application frontend to a static website hosted on Amazon S3. This option can significantly reduce costs as it eliminates the need for EC2 instances to host the frontend. Option E suggests deploying the backend Python application to general purpose burstable EC2 instances. This option can help reduce costs as burstable instances can provide the necessary performance at a lower cost compared to On-Demand instances when the application is used mainly during lunchtime. Therefore, options B and E in combination provide a cost-effective solution without negatively affecting application availability.