Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Perform a database restore by using native tools

A worked example

Single answer

You manage an Azure SQL Managed Instance. A colleague manually backed up a database to a .bak file in a blob container in a storage account in your Azure subscription. You will restore it by using the Restore Database wizard in SSMS.

Requirements:

  • No storage container is registered on the instance yet.
  • You do not have a shared access signature (SAS) token, and the wizard must create one for you.
  • You must restore the manually created .bak file.

In Select a Backup File Location, what should you do?

Choose one answer
Why

Select Add to browse your subscription and have the wizard generate a SAS. After choosing the subscription, storage account and container, enter an expiration date and select Create Credential. Entering a container URL and an existing SAS also registers a credential, but requires you to supply the SAS. The location dialog takes a container URL, and you select the backup file after providing the container location.

  • Not correct: Select a preregistered container from the Azure storage container list. This option works only for containers that are already registered. None is registered on the instance yet.
  • Correct: Select Add, sign in, pick the container, and select Create Credential. Add lets you browse the containers in your subscription. After you enter an expiration date and select Create Credential, a SAS with the correct permissions is created for you.
  • Not correct: Enter the full backup-file URL in the Azure storage container field. This field expects the container URL. When you enter a new container URL directly, you must also supply a SAS.
  • Not correct: Enter the storage container URL and a shared access signature token. This method registers a credential using a SAS that you supply. It does not meet the requirement for the wizard to generate the SAS.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free