DP-200 Exam QuestionsBrowse all questions from this exam

DP-200 Exam - Question 133


DRAG DROP -

You manage the Microsoft Azure Databricks environment for a company. You must be able to access a private Azure Blob Storage account. Data must be available to all Azure Databricks workspaces. You need to provide the data access.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Select and Place:

Exam DP-200 Question 133
Show Answer
Correct Answer:
Exam DP-200 Question 133

Step 1: Create a secret scope -

Step 2: Add secrets to the scope

Note: dbutils.secrets.get(scope = "", key = "") gets the key that has been stored as a secret in a secret scope.

Step 3: Mount the Azure Blob Storage container

You can mount a Blob Storage container or a folder inside a container through Databricks File System - DBFS. The mount is a pointer to a Blob Storage container, so the data is never synced locally.

Note: To mount a Blob Storage container or a folder inside a container, use the following command:

Python -

dbutils.fs.mount(

source = "wasbs://@.blob.core.windows.net", mount_point = "/mnt/", extra_configs = {"":dbutils.secrets.get(scope = "", key = "")}) where: dbutils.secrets.get(scope = "", key = "") gets the key that has been stored as a secret in a secret scope.

References:

https://docs.databricks.com/spark/latest/data-sources/azure/azure-storage.html

Discussion

2 comments
Sign in to comment
hoangton
Jun 13, 2021

It is correct answer! Mount storage account at the last step https://docs.microsoft.com/en-us/azure/databricks/scenarios/store-secrets-azure-key-vault

emski
Jun 23, 2021

I think it should be: USE BLOB STORAGE KEY CREATE A SECRET SCOPE MOUNT THE AZURE BLOB STORAGE CONTAINER

Rosh4yuh
Jul 27, 2021

It should be a storage account key. given answer is correct