
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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.)
A
Provision an internet gateway in each Availability Zone in use.
B
Migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance.
C
Migrate the database to Amazon DynamoDB, and enable DynamoDB auto scaling.
D
Use AWS DataSync to synchronize the database data across multiple EC2 instances.
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:
Correct Answers: B and E
B. Migrate the database to an Amazon RDS for MySQL Multi-AZ DB instance - This provides high availability for the database layer. RDS Multi-AZ creates a synchronous standby replica in a different Availability Zone, providing automatic failover in case of primary database failure.
E. Create an Application Load Balancer to distribute traffic to an Auto Scaling group of EC2 instances that are distributed across two Availability Zones - This provides high availability for the application layer. The ALB distributes traffic across multiple EC2 instances in different Availability Zones, and Auto Scaling ensures that the desired number of instances is maintained.
Why the other options are incorrect:
A. Provision an internet gateway in each Availability Zone in use - Internet Gateways are VPC-level resources, not Availability Zone-specific. A single Internet Gateway serves the entire VPC and is already highly available by design.
C. Migrate the database to Amazon DynamoDB, and enable DynamoDB auto scaling - While DynamoDB is highly available, migrating from MySQL to DynamoDB would require application code changes (changing from SQL to NoSQL), which violates the constraint that the company cannot modify the application code.
D. Use AWS DataSync to synchronize the database data across multiple EC2 instances - AWS DataSync is for data transfer and migration, not for real-time database synchronization. It doesn't provide automatic failover or high availability features like RDS Multi-AZ.
Key Architecture Principles: