Q50 — AWS SAP-C02 Ch.2

Question 50 of 75 | ← Chapter 2

Q200. A company wants to manage the costs associated with a group of 20 applications that are critical, by migrating to AWS. The applications are a mix of Java and Node.js spread across different instance clusters. The company wants to minimize costs while standardizing by using a single deployment methodology. Most of the applications are part of month-end processing routines with a small number of concurrent users, but they are occasionally run at other times. Average application memory consumption is less than 1 GB, though some applications use as much as5 GB of memory during peak processing. The most important application in the group is a billing report written in Java that accesses multiple data sources and often for several hours. Which is the MOST cost-effective solution?

Correct Answer: B. Deploy Amazon ECS containers on Amazon EC2 with Auto Scaling configured for memory utilization of 75%. Deploy an ECS task for each application being migrated with ECS task scaling. Monitor services and hosts by using Amazon CloudWatch.

Explanation

Option A suggests deploying a separate AWS Lambda function for each application, which may not be the most cost-effective solution as Lambda functions have maximum memory limits and may not be suitable for applications that require more than 2.5 GB of memory during peak processing. Option C suggests deploying AWS Elastic Beanstalk for each application, which may not be the most cost- effective solution as it creates additional layers of abstraction and may not provide enough control over the underlying infrastructure. Option D suggests deploying a new Amazon EC2 instance cluster that co-hosts all applications and using EC2 Auto Scaling and Application Load Balancers. While this can work, it may not be the most cost- effective solution as running multiple applications on a single instance can increase complexity and decrease flexibility. Therefore, option B is the most cost-effective solution to standardize deployment methodology and minimize costs. Deploying Amazon ECS containers on Amazon EC2 with Auto Scaling configured for memory utilization of 75%, and deploying an ECS task for each application being migrated with ECS task scaling, can help ensure that each application has sufficient resources while minimizing costs. Monitoring services and hosts by using Amazon CloudWatch can help verify completion of critical jobs and ensure reliability.