exam questions

Exam DP-700 All Questions

View all questions & answers for the DP-700 exam

Exam DP-700 topic 1 question 41 discussion

Actual exam question from Microsoft's DP-700
Question #: 41
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 the name of a linked service.

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
LasAnsias
3 days, 11 hours ago
Selected Answer: B
No, this solution does not meet the goal. The notebookutils.credentials.getSecret method requires the key vault URL and the name of the secret, not the name of a linked service.
upvoted 1 times
...
12a2ecc
5 days, 20 hours ago
Selected Answer: B
I don't believe the proposed solution works as all forms of getSecret() requires 'secret name', even with 'linked service name' specified: mssparkutils.credentials.getSecret('azure key vault name','secret name','linked service name') https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/microsoft-spark-utilities?pivots=programming-language-python
upvoted 1 times
...
abdulbasit170
1 week, 1 day ago
Selected Answer: B
B. No -> This solution does not meet the goal because the notebookutils.credentials.getSecret() method in Microsoft Fabric expects two specific parameters: 1) The name of the linked service (not the Key Vault URL) 2) The name of the secret (not the linked service name) Correct usage -> notebookutils.credentials.getSecret("MyKeyVaultLinkedService", "AppClientSecret")
upvoted 1 times
...
5e89616
1 week, 4 days ago
Selected Answer: A
In my understating (A) is the correct answer: notebookutils.credentials.getSecret("<KeyVault URL>", "<Linked Service Name>") is used to retrieve secrets (such as client IDs and secrets) from Azure Key Vault using a linked service.
upvoted 3 times
zxc01
4 days, 22 hours ago
No, you need put secret name as second value if you use Key Vault URL method, you need put Azure Key Vault name if you want to use linked service. notebookutils.credentials.getSecret('https://<name>.vault.azure.net/', 'secret name')
upvoted 1 times
...
12a2ecc
5 days, 3 hours ago
I believe KY URL and Secret are always required params, while LinkedServiceName is optional
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