Implementing Data Engineering Solutions Using Microsoft Fabric — Question 31

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure key vault named KeyVault1 that contains secrets.

You have a Fabric workspace named Workspace1. Workspace contains a notebook named Notebook1 that performs the following tasks:

• Loads stage data to the target tables in a lakehouse
• Triggers the refresh of a semantic model

You plan to add functionality to Notebook1 that will use the Fabric API to monitor the semantic model refreshes.

You need to retrieve the registered application ID and secret from KeyVault1 to generate the authentication token.

Solution: You use the following code segment:

Use notebookutils.credentials.putSecret and specify the key vault URL and key vault secret.

Does this meet the goal?

Answer options

Correct answer: B

Explanation

The proposed solution does not meet the goal because notebookutils.credentials.putSecret is used to store a secret, not to retrieve it. To access the registered application ID and secret, you would need to use a different method or function that is designed for retrieving secrets from an Azure Key Vault, such as KeyVault's API or Azure SDK functions.