Complete the code to create an Azure SQL database with geo-replication enabled.
az sql db create --resource-group myResourceGroup --server myServer --name myDatabase --service-objective [1]The service objective GP_Gen5_2 enables geo-replication with General Purpose tier.
Complete the command to create a readable secondary database in a different region for geo-replication.
az sql db replica create --name myDatabaseSecondary --resource-group myResourceGroup --server myServerSecondary --partner-server [1] --read-only-routing-url https://myserversecondary.database.windows.netThe partner-server is the primary server name, here myServer, to link the secondary replica.
Fix the error in the command to enable geo-backup retention for 14 days.
az sql db backup [1] --resource-group myResourceGroup --server myServer --database myDatabase --retention-days 14
The correct command is az sql db backup policy to manage backup retention policies.
Fill both blanks to configure geo-replication failover group with automatic failover policy and grace period.
az sql failover-group create --name myFailoverGroup --resource-group myResourceGroup --server myServerPrimary --partner-server myServerSecondary --failover-policy [1] --grace-period [2]
Automatic failover policy with a 1 hour grace period is a common best practice for geo-replication failover groups.
Fill all three blanks to create a geo-replication link, set backup retention to 7 days, and enable zone redundancy.
az sql db replica create --name myReplica --resource-group myResourceGroup --server myServerSecondary --partner-server [1] --backup-retention [2] --zone-redundant [3]
Use the primary server as partner-server, set backup retention to 7 days, and enable zone redundancy with true.