A startup hosts a website on a single Amazon EC2 instance. The site is a stateless Python application with a MySQL database, serving low traffic. The company is concerned about instance reliability and must migrate to a highly available architecture without changing application code. Which combination of actions should a solutions architect take to achieve high availability? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance., Create an Application Load Balancer to distribute traffic to an Auto Scaling group of EC2 instances that are distributed across two Availability Zones..
Why this is the answer
To achieve high availability for the stateless Python application, distributing the compute layer across multiple Availability Zones (AZs) is crucial. An Application Load Balancer (ALB) can effectively distribute incoming traffic to an Auto Scaling group of EC2 instances, ensuring that if one instance or AZ fails, traffic is routed to healthy instances in other AZs. For the database, migrating to an Amazon RDS for MySQL Multi-AZ DB instance provides automatic failover to a standby replica in a different AZ in case of primary database failure, ensuring database availability without application code changes. Provisioning an internet gateway in each AZ is not directly related to achieving high availability for the application itself; it's a networking component for internet access. Migrating to Amazon DynamoDB would require application code changes due to the different database model. AWS DataSync is for data transfer, not for real-time database synchronization for high availability.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed