Complete the code to create a managed Azure SQL Database instance.
az sql db create --resource-group myResourceGroup --server myServer --name myDatabase --service-objective [1]The Standard service objective is a common choice for managed Azure SQL Databases, balancing cost and performance.
Complete the code to enable automatic backups for the managed database.
az sql db update --resource-group myResourceGroup --server myServer --name myDatabase --backup-retention-days [1]Setting backup-retention-days to 30 enables automatic backups retained for 30 days, which is a common best practice.
Fix the error in the command to scale the managed database to a higher performance tier.
az sql db update --resource-group myResourceGroup --server myServer --name myDatabase --service-objective [1]The P1 tier is a Premium tier for higher performance. 'S3' is Standard but lower than Premium. 'Basic' and 'Free' are lower tiers.
Fill both blanks to configure geo-replication for disaster recovery.
az sql db replica create --resource-group myResourceGroup --server myServer --name myDatabase --partner-server [1] --partner-resource-group [2]
Geo-replication requires specifying the partner server name and the resource group where that server exists. Here, mySecondaryServer and secondaryResourceGroup are correct.
Fill all three blanks to create a managed database with geo-replication and a long backup retention.
az sql db create --resource-group [1] --server [2] --name [3] --backup-retention-days 35 --zone-redundant true
To create a managed database with geo-replication and backups, specify the production resource group, server, and database name correctly.