AWS Certified Solutions Architect - Associate Exam: Scaling an Application with AWS Services

Scaling an Application with AWS Services

Prev Question Next Question

Question

There is an application that consists of frontend and backend EC2 Instances behind classic ELBs.

The database is deployed in AWS RDS.

The application might not be able to scale properly.

What should be used to scale the application appropriately? (SELECT TWO.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer - A and B.

When you see a requirement for scaling, consider the Auto Scaling service provided by AWS.

This can be used to scale both the frontend and backend instances.

For more information on Auto Scaling, please visit the following URL:

https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html

To scale the application appropriately, we should consider the following options:

  1. Use Auto Scaling for the frontend EC2 instances: This option involves using AWS Auto Scaling to automatically add or remove frontend EC2 instances based on traffic or demand. Auto Scaling helps ensure that the application can handle varying levels of traffic, and can help maintain a consistent user experience. This option is recommended if the frontend instances are the bottleneck in the application.

  2. Use Auto Scaling for the backend EC2 instances: This option involves using AWS Auto Scaling to automatically add or remove backend EC2 instances based on traffic or demand. Auto Scaling helps ensure that the application can handle varying levels of traffic and can help maintain consistent performance. This option is recommended if the backend instances are the bottleneck in the application.

  3. Replace the Classic ELB with Application ELB: The Classic Load Balancer (ELB) operates at Layer 4 and can balance traffic based on IP addresses and ports. On the other hand, the Application Load Balancer (ALB) operates at Layer 7 and can balance traffic based on content, URL, and cookies. ALB can improve the scalability and performance of an application by distributing traffic to healthy instances and providing advanced routing features such as content-based routing. This option is recommended if the application requires advanced routing features or if the Classic ELB is the bottleneck in the application.

  4. Use Network ELB for both the frontend and backend instances: The Network Load Balancer (NLB) operates at Layer 4 and can balance traffic based on IP addresses and ports. It is designed to handle high levels of traffic and can scale to millions of requests per second. This option is recommended if the application requires extreme performance and scalability, and if the frontend and backend instances require the same level of balancing.

Therefore, the correct answers to the question are:

A. Use Auto Scaling for the frontend EC2 instances. B. Use Auto Scaling for the backend EC2 instances.