A company runs a LAMP stack web application with an on-premises MySQL database. It plans to move the database to Azure. The solution must meet these requirements:
- The application must keep using MySQL without significant code changes.
- The team must not manage virtual servers or software patches.
- Administrators must be able to restore the database to any point in time within the last 30 days.
Which solution meets all the requirements?
Why
Azure Database for MySQL is a managed PaaS implementation of MySQL. The application can keep using MySQL, and the team does not need to manage virtual servers or patches. Automatic backups support point-in-time restore for up to 35 days, but the default is only seven days. A 30-day retention period therefore meets the restore requirement.
- Not correct: Azure Database for MySQL with the default backup retention. The service meets the MySQL and management requirements. However, the default point-in-time restore period is seven days, which does not cover the last 30 days.
- Correct: Azure Database for MySQL with backup retention set to 30 days. This is a PaaS implementation of MySQL, so the application keeps using MySQL. Azure manages the virtual servers and patches. Point-in-time restore is available for up to 35 days, so a 30-day retention meets the restore requirement.
- Not correct: Azure Database for PostgreSQL with backup retention set to 30 days. Azure Database for PostgreSQL runs PostgreSQL, not MySQL. Moving the database to it does not let the application keep using MySQL.
- Not correct: MySQL Community Edition on an Azure virtual machine. This runs MySQL on a virtual machine rather than on the PaaS service. The source describes freedom from managing virtual servers and software patches as a benefit of Azure Database for MySQL, the managed service.