
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 company needs to run a critical application on AWS. The company needs to use Amazon EC2 for the application's database. The database must be highly available and must fail over automatically if a disruptive event occurs.
Which solution will meet these requirements?
A
Launch two EC2 instances, each in a different Availability Zone in the same AWS Region. Install the database on both EC2 instances. Configure the EC2 instances as a cluster. Set up database replication.
B
Launch an EC2 instance in an Availability Zone. Install the database on the EC2 instance. Use an Amazon Machine Image (AMI) to back up the data. Use AWS CloudFormation to automate provisioning of the EC2 instance if a disruptive event occurs.
C
Launch two EC2 instances, each in a different AWS Region. Install the database on both EC2 instances. Set up database replication. Fail over the database to a second Region.
D
Launch an EC2 instance in an Availability Zone. Install the database on the EC2 instance. Use an Amazon Machine Image (AMI) to back up the data. Use EC2 automatic recovery to recover the instance if a disruptive event occurs.
Explanation:
Option A is the correct answer because it provides:
Why other options are incorrect:
Option B: Uses only a single EC2 instance with AMI backups and CloudFormation automation. This doesn't provide automatic failover - it requires manual intervention or automated provisioning which takes time and doesn't maintain continuous availability.
Option C: Uses different AWS Regions, which is overkill for high availability within a single region. Multi-region deployments are for disaster recovery (DR) scenarios, not for high availability within a region. Also, cross-region failover is typically more complex and may not be automatic.
Option D: Uses only a single EC2 instance with AMI backups and EC2 automatic recovery. EC2 automatic recovery only works for instance-level issues (like hardware failure) within the same AZ, not for AZ-level failures. It doesn't provide true high availability or automatic failover to another AZ.
Key AWS Concepts:
For critical applications requiring high availability with automatic failover, a multi-AZ architecture with clustering and replication is the recommended approach on AWS.