exam questions

Exam DP-700 All Questions

View all questions & answers for the DP-700 exam

Exam DP-700 topic 1 question 39 discussion

Actual exam question from Microsoft's DP-700
Question #: 39
Topic #: 1
[All DP-700 Questions]

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?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zxc01
5 days, 15 hours ago
Selected Answer: A
Answer should be Yes. We normally use Key Vault name and linked service, but we still can use Key Vault URL. notebookutils.credentials.getSecret('https://<name>.vault.azure.net/', 'secret name') ref link: https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities
upvoted 2 times
...
abdulbasit170
1 week, 2 days ago
Selected Answer: B
The method notebookutils.credentials.getSecret() in Microsoft Fabric does not accept a Key Vault URL. Instead, it requires the name of a linked service (which securely points to the Key Vault) and the name of the secret.
upvoted 1 times
12a2ecc
5 days, 20 hours ago
Do not think this is correct, should be (A) notebookutils.credentials.getSecret('https://<name>.vault.azure.net/', 'secret name') https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities#get-secret-using-user-credentials
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago