A developer is doing some testing on an application using the Amazon Aurora database.
During the testing activities, the developer accidentally executes a DELETE statement without a WHERE clause.
They wish to undo this action.
What is the optimal solution to revert the database to the correct state with minimal effort?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: A.
Option A is CORRECT because Amazon Aurora backtracking ability enables one to revert an Amazon Aurora cluster to a specific point in time without restoring data from a backup.
Option B incorrect because restoring an Amazon Aurora cluster using the point in time feature launches a new cluster and restores it from backup data.
Restoring from backup is a very time-consuming process that can take hours to complete.
Further, this solution has costs associated with the additional Amazon Aurora cluster.
Option C is incorrect because restoring from a snapshot does not restore data to a specific desired point in time.
Additionally, restoring from a snapshot launches a new cluster, thus incurring additional costs.
Since the restore happens from backup data, it can take hours to complete.
Therefore, this is not the optimal solution.
Option D is incorrect because it is not possible to perform a restore from a read replica.
Reference:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Managing.Backtrack.htmlThe optimal solution to revert the Amazon Aurora database to the correct state with minimal effort after an accidental DELETE statement without a WHERE clause is to use Amazon Aurora Backtracking feature.
Amazon Aurora is a MySQL and PostgreSQL-compatible relational database engine offered by AWS as a managed service. Aurora Backtrack is a feature that allows users to "rewind" a database cluster to its state at a specific point in time, without the need for restoring from backups. Backtracking does not require additional storage or backups and is a quick way to recover from mistakes.
The other options listed are as follows:
B. Use Amazon Aurora "Restore to point in time" feature: This feature allows you to restore your database to any point in time within your backup retention period, but it requires creating a new instance from a specified backup, which can be time-consuming.
C. Restore the Amazon Aurora database from a snapshot: This method involves creating a new database instance from a backup snapshot of the database. This process can take longer compared to using Aurora Backtrack since the entire database is being restored.
D. Restore the Amazon Aurora from a read replica: This method involves promoting a read replica to become the primary instance. However, if the replica was replicating the same incorrect data, promoting it will not resolve the issue.
Therefore, Amazon Aurora Backtrack is the optimal solution to quickly undo the accidental DELETE statement with minimal effort.