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.getSecret and specify the key vault URL and key vault secret. Does this meet the goal?
Select one answer.
Marked answer: B
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose A4
I would say A, since key vault secret i think is related to the secret name instead of the secret value
Chose B1
the getsecret's input should be secret name, not the URL
Chose B2
No, because notebookutils.credentials.getSecret(...) is a Fabric workspace credential store, but credentials are at Azure Key Value, which is different item.