DP-203: Data Engineering on Microsoft Azure Exam - Azure Blob Storage Python Script Upload

Arrange Steps to Upload Python Script to Azure Blob Storage

Question

You need to upload a Python script to an Azure Blob storage account.

Below given are the steps (not necessarily in the right sequence) you need to follow to upload the script.Arrange these steps in the right sequence.

a.

Create WordCount_Spark.py python file b.

Create a folder named spark.

c.

Under the folder Spark, make a subfolder named as the script.

d.

In Blob storage, create a container named adftutorial if it doesn't exist.

e.

Upload the created WordCount_Spark.py python file to the subfolder script.

f.

Replacewith the name of the Azure storage account where the file is to upload.

Finally, save the file.

The correct sequence of steps is:

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer: D

The below figure describes the steps involved in uploading the python script to the Blob Storage Account:

Option A is incorrect.

The option does not state the right sequence of the steps.

Option B is incorrect.

The given sequence of steps is not correct.

Option C is incorrect.

The given sequence is incorrect.

Option D is correct.

The given sequence of steps is correct.

Option E is incorrect.

The given sequence is not the correct one.

Reference:

To know more about transforming data in the cloud, please visit the below-given link:

The correct sequence of steps to upload a Python script to an Azure Blob storage account is:

E. b-a-c-d-e-f.

Here's the detailed explanation of each step:

b. Create a folder named Spark. Create a folder named "Spark" to store the script.

a. Create WordCount_Spark.py python file Create a Python script named "WordCount_Spark.py" that you want to upload to Azure Blob storage.

c. Under the folder Spark, make a subfolder named as the script. Create a subfolder named "script" under the "Spark" folder. This subfolder will hold the Python script file that you want to upload.

d. In Blob storage, create a container named adftutorial if it doesn't exist. Create a container named "adftutorial" in the Blob storage account if it doesn't already exist. This container will hold the "Spark" folder with the Python script file.

e. Upload the created WordCount_Spark.py python file to the subfolder script. Upload the "WordCount_Spark.py" file to the "script" subfolder under the "Spark" folder.

f. Replace <AzureStorageAccountName> with the name of the Azure storage account where the file is to upload. Finally, save the file. Replace "<AzureStorageAccountName>" with the name of the Azure storage account where you want to upload the file. Finally, save the Python script file.

Therefore, the correct sequence of steps is E. b-a-c-d-e-f.