- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Data

Restoring an Amazon RDS Instance Using Snapshots
A critical part of database management is being able to recover your data after corruption or accidental deletion has occurred. In this hands-on lab, we'll use the point-in-time restore capability of RDS automated snapshots to restore a database and bring a site back up. **NOTE**: This lab may take up to 15 minutes to fully start due to the number of resources that need to be provisioned.

Lab Info
Table of Contents
-
Challenge
Create an RDS Snapshot
Create a manual snapshot of the existing RDS database in this environment.
- In the RDS console, choose the running instance.
- Take a snapshot with the name wordpress-
.
-
Challenge
Log in to the Bastion Host and Delete Database Data
- Log in to the lab instance via SSH using the credentials for the lab.
- Install the MySQL command line.
- Connect to the MySQL instance using the RDS endpoint with the user wpuser and the password Password1.
- Switch to the WordPress database.
- Delete the wp_posts table.
-
Challenge
Restore an RDS Database from a Snapshot
- In the RDS console, navigate to snapshots.
- Restore the database wordpress-database using the snapshot you created and name the recovered database instance *wordpress-recovery" and use availability zone us-east-1b.
- Launch the database instance.
-
Challenge
Rename Database Instances
- In the RDS console, modify the wordpress-database instance, and change the DB instance identifier from "wordpress-database" to "wordpress-corrupt".
- Click Continue.
- Select Apply Immediately.
- Click Modify DB Instance.
- Modify the "wordpress-recovery" database instance to "wordpress-database".
- Visit the website and observe that the site has been restored.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.