exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 16 discussion

Actual exam question from Microsoft's DP-100
Question #: 16
Topic #: 4
[All DP-100 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 train and register a machine learning model.
You plan to deploy the model as a real-time web service. Applications must use key-based authentication to use the model.
You need to deploy the web service.
Solution:
Create an AciWebservice instance.
Set the value of the auth_enabled property to False.
Set the value of the token_auth_enabled property to True.
Deploy the model to the service.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Instead use only auth_enabled = TRUE
Note: Key-based authentication.
Web services deployed on AKS have key-based auth enabled by default. ACI-deployed services have key-based auth disabled by default, but you can enable it by setting auth_enabled = TRUE when creating the ACI web service. The following is an example of creating an ACI deployment configuration with key-based auth enabled. deployment_config <- aci_webservice_deployment_config(cpu_cores = 1, memory_gb = 1, auth_enabled = TRUE)
Reference:
https://azure.github.io/azureml-sdk-for-r/articles/deploying-models.html

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
james2033
8 months ago
Web services deployed on AKS have key-based auth enabled by default. ACI-deployed services have key-based auth disabled by default, but you can enable it by setting auth_enabled = TRUE when creating the ACI web service. The following is an example of creating an ACI deployment configuration with key-based auth enabled. https://azure.github.io/azureml-sdk-for-r/articles/deploying-models.html#key-based-authentication But missing step generate auth_key --> no meet requirement --> choose B. No.
upvoted 1 times
...
phdykd
1 year, 3 months ago
B. No. The solution does not meet the goal as it specifies setting the auth_enabled property to False, which means that there will be no authentication for accessing the web service. Additionally, the token_auth_enabled property is set to True, but it requires a token for authentication, which is contradictory to the previous property. To meet the goal of key-based authentication, the auth_enabled property should be set to True and the token_auth_enabled property should be set to False. Additionally, other configurations related to key-based authentication such as primary_key or secondary_key should be specified.
upvoted 1 times
...
michaelmorar
1 year, 6 months ago
Selected Answer: B
Falsch - token and key-based are different authentication methods.
upvoted 1 times
...
[Removed]
2 years, 3 months ago
On 20Feb2022
upvoted 1 times
...
hargur
2 years, 8 months ago
on 19Oct2021
upvoted 3 times
...
Kapil1803
2 years, 11 months ago
The answer is correct. Refer Key-Based vs Token-Based https://docs.microsoft.com/en-us/azure/machine-learning/how-to-authenticate-web-service
upvoted 4 times
...
SnowCheetah
2 years, 11 months ago
The answer is FALSE https://azure.github.io/azureml-sdk-for-r/articles/deploying-models.html in aks there can be set authentication two way key ==> auth_enabled = TRUE token ==> token_auth_enabled = TRUE problem specified with must authenticated by key-based
upvoted 4 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 ...