Q56 — AWS SAA-C03 Ch.11

Question 56 of 100 | ← Chapter 11

Q756. A startup company is hosting a website for its customers on an Amazon EC2 instance. The website consists of a stateless Python application and a MySQL database. The website serves only a small amount of traffic. The company is concerned about the reliability of the instance and needs to migrate to a highly available architecture. The company cannot modify the application code.Which combination of actions should a solutions architect take to achieve high availability for the website? (Choose two.)

Correct Answer: B. Migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance., E. Create an Application Load Balancer to distribute traffic to an Auto Scaling group of EC2 instances that are distributed across two Availability Zones.

Explanation

To achieve high availability for the website consisting of a stateless Python application and a MySQL database hosted on an Amazon EC2 instance without modifying the application code, the solutions architect should take the following two actions:B. Migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance.E. Create an Application Load Balancer to distribute traffic to an Auto Scaling group of EC2 instances that are distributed across two Availability Zones.Option B: Migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance:By migrating the MySQL database to an Amazon RDS Multi-AZ DB instance, AWS automatically replicates the database in a standby instance located in a different Availability Zone. This provides high availability and automatic failover in the event of a primary database instance failure. The failover process is handled by AWS, ensuring minimal downtime and improved reliability for the website.Option E: Create an Application Load Balancer to distribute traffic to an Auto Scaling group of EC2 instances that are distributed across two Availability Zones:By creating an Application Load Balancer (ALB) and distributing traffic to an Auto Scaling group of EC2 instances across two Availability Zones, the website benefits from load balancing and automatic scaling capabilities. The ALB distributes incoming traffic across multiple EC2 instances, ensuring that the workload is evenly distributed and reducing the risk of a single point of failure. The Auto Scaling group dynamically adjusts the number of EC2 instances based on demand, allowing the website to handle varying levels of traffic while maintaining high availability.Options A, C, and D are not the most suitable choices in this scenario:Option A suggests provisioning an internet gateway in each Availability Zone. While an internet gateway enables communication between instances in a VPC and the internet, it does not directly address the high availability requirement for the website.Option C suggests migrating the database to Amazon DynamoDB and enabling DynamoDB auto scaling. DynamoDB is a NoSQL database service, and migrating from MySQL to DynamoDB would require modifying the application code. Additionally, DynamoDB's auto scaling is designed for handling variable workloads and may not be the most suitable choice in this scenario.Option D suggests using AWS DataSync to synchronize the database data across multiple EC2 instances. AWS DataSync is a data transfer service, and while it can be used for data synchronization, it does not provide the necessary mechanisms for achieving high availability for the website.Therefore, the most appropriate combination of actions to achieve high availability for the website is to migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance (option B) and create an Application Load Balancer to distribute traffic to an Auto Scaling group of EC2 instances across two Availability Zones (option E).