Q20 — AWS SAA-C03 Ch.13

Question 20 of 100 | ← Chapter 13

Q920. A company wants to migrate an application to AWS. The company wants to increase the application's current availability. The company wants to use AWS WAF in the application's architecture.Which solution will meet these requirements?

Correct Answer: A. Create an Auto Scaling group that contains multiple Amazon EC2 instances that host the application across two Availability Zones. Configure an Application Load Balancer (ALB) and set the Auto Scaling group as the target. Connect a WAF to the ALB.

Explanation

To meet the company's requirements of increasing the availability of an application and using AWS WAF in the application's architecture, the most suitable solution is:A. Create an Auto Scaling group that contains multiple Amazon EC2 instances hosting the application across two Availability Zones. Configure an Application Load Balancer (ALB) and set the Auto Scaling group as the target. Connect a WAF to the ALB.Option A suggests creating an Auto Scaling group with multiple EC2 instances hosting the application across two Availability Zones. By utilizing Auto Scaling, the company can automatically adjust the number of EC2 instances based on demand, ensuring high availability and scalability.Configuring an Application Load Balancer (ALB) and setting the Auto Scaling group as the target allows for distributing incoming traffic across the EC2 instances in a load-balanced manner. The ALB provides advanced load balancing features, such as health checks and listener rules, to ensure that traffic is routed to healthy instances and enables efficient utilization of resources.By connecting a Web Application Firewall (WAF) to the ALB, the company can enhance the security of the application. AWS WAF is a managed service that helps protect web applications from common web exploits and provides features like rate limiting, IP blocking, and protection against common attack patterns.Option B suggests creating a cluster placement group with multiple EC2 instances hosting the application. However, a cluster placement group is primarily used to provide low-latency networking between instances in a single Availability Zone and does not offer the desired high availability across multiple Availability Zones.Option C suggests creating two EC2 instances hosting the application across two Availability Zones and configuring them as the targets of an ALB. While this option provides some level of availability, it does not utilize Auto Scaling, which is essential for automatically adjusting capacity based on demand.Option D suggests creating an Auto Scaling group and connecting a WAF to the Auto Scaling group. However, Auto Scaling groups are not directly targeted by load balancers, and it is more appropriate to associate the ALB with the Auto Scaling group to achieve load balancing and high availability.In summary, option A, creating an Auto Scaling group with multiple EC2 instances, configuring an ALB, and connecting a WAF to the ALB, provides a scalable, highly available, and secure solution for migrating the application to AWS.