QuestionQ30

VerifiedImplement and manage an analytics solution

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

You have a Fabric workspace named Workspace1. The workspace contains a notebook named Notebook1 that does the following:

  • Loads stage data into the target tables in a lakehouse
  • Triggers semantic model refreshes

You plan to extend Notebook1 so it will use the Fabric API to monitor 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 the name of a linked service.

Does this meet the goal?

Explanation

notebookutils.credentials.putSecret() stores secrets to a linked service; it does not retrieve them. Retrieving secrets from Key Vault requires getSecret(), not putSecret(). The proposed solution uses the wrong method direction for the stated goal.

Community Discussion

No comments yet. Be the first to start the discussion!