88.6k views
0 votes
An application uses a PostgreSQL database running on a single Amazon EC2 instance. A Cloud Practitioner has been asked to increase the availability of the database so there is automatic recovery in the case of a failure. Which tasks can the Cloud Practitioner take to meet this requirement? a. Set the DeleteOnTermination value to false for the EBS root volume. b. Configure EC2 Auto Recovery to move the instance to another Region. c. Configure an Elastic Load Balancer in front of the EC2 instance. d. Migrate the database to Amazon RDS and enable the Multi-AZ feature.

User Petemoloy
by
7.3k points

1 Answer

3 votes

Final answer:

To increase the availability of the PostgreSQL database on Amazon EC2, the Cloud Practitioner can migrate to Amazon RDS with Multi-AZ, configure an Elastic Load Balancer, and use EC2 Auto Recovery.

Step-by-step explanation:

To increase the availability of the PostgreSQL database running on a single Amazon EC2 instance, the Cloud Practitioner can take the following tasks:

Migrate the database to Amazon RDS and enable the Multi-AZ feature: By migrating the database to Amazon RDS, it will automatically create a standby instance in another Availability Zone (AZ) that stays in sync with the primary instance. In case of a failure, the Multi-AZ feature will automatically failover to the standby instance, providing automatic recovery.

Configure an Elastic Load Balancer in front of the EC2 instance: By configuring an Elastic Load Balancer (ELB), traffic can be distributed across multiple instances. In case of a failure, the traffic can be redirected to a healthy instance, minimizing downtime and providing automatic recovery.

Configure EC2 Auto Recovery to move the instance to another Region: EC2 Auto Recovery can automatically detect and recover from instance failures by stopping the impaired instance and launching a new instance in the same or different Availability Zone within the same Region. This ensures automatic recovery and high availability.

User Jeffy Lazar
by
8.1k points