exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 58 discussion

Actual exam question from Microsoft's DP-100
Question #: 58
Topic #: 2
[All DP-100 Questions]

You use an Azure Machine Learning workspace.
You have a trained model that must be deployed as a web service. Users must authenticate by using Azure Active Directory.
What should you do?

  • A. Deploy the model to Azure Kubernetes Service (AKS). During deployment, set the token_auth_enabled parameter of the target configuration object to true
  • B. Deploy the model to Azure Container Instances. During deployment, set the auth_enabled parameter of the target configuration object to true
  • C. Deploy the model to Azure Container Instances. During deployment, set the token_auth_enabled parameter of the target configuration object to true
  • D. Deploy the model to Azure Kubernetes Service (AKS). During deployment, set the auth.enabled parameter of the target configuration object to true
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
madrid99
Highly Voted 1 year, 11 months ago
Selected Answer: A
https://learn.microsoft.com/en-us/azure/machine-learning/v1/how-to-authenticate-web-service So there's a token_auth_enabled parmeter
upvoted 7 times
...
evangelist
Most Recent 5 months ago
Selected Answer: A
Explanation: Azure Kubernetes Service (AKS): AKS provides enterprise-grade security, governance, and increased scalability. It is ideal for production deployments. token_auth_enabled parameter: This parameter, when set to true, enables token-based authentication using Azure Active Directory for the deployed web service. The other options do not correctly combine the deployment target and configuration parameters for enabling Azure Active Directory authentication: B and C (Azure Container Instances): While you can deploy models to Azure Container Instances (ACI), they do not support the token_auth_enabled parameter for Azure AD authentication. D (auth.enabled parameter): This is not a recognized parameter for setting up Azure AD authentication in the deployment configuration. Thus, the correct deployment strategy involves using AKS and setting token_auth_enabled to true during the deployment process
upvoted 3 times
...
daviskv74
1 year ago
GPT says D is correct
upvoted 1 times
...
Nadine_nm
1 year, 2 months ago
the 2 parameters exists in the documentation, there is a slight difference in their definitions : token_auth_enabled = Whether or not to enable Token auth for this Webservice. If this is enabled, users can access this Webservice by fetching access token using their Azure Active Directory credentials auth_enabled = Whether or not to enable key auth for this Webservice. Defaults to True. since we are using Azure Active Directory, answer A is correct
upvoted 3 times
...
Mal42
1 year, 2 months ago
On exam 18 Aug 2023
upvoted 3 times
...
Mikku123
1 year, 3 months ago
Its identity based for AAD , not credential based SAS(token). so "D" is the correct answer!
upvoted 2 times
...
phydev
1 year, 3 months ago
On exam 20 July 2023.
upvoted 1 times
...
ajay0011
1 year, 7 months ago
I think D is correct. # Define workspace and model details workspace = Workspace.from_config() model = Model(workspace, 'model_name') aks_service_name = 'my-aks-service' deployment_config = AksWebservice.deploy_configuration( cpu_cores=1, memory_gb=1, auth_enabled=True # Enable Azure Active Directory authentication) env = Environment.from_conda_specification(name='env_name', file_path='./conda_dependencies.yml') auth = InteractiveLoginAuthentication() aks_service = Model.deploy( workspace=workspace, name=aks_service_name, models=[model], inference_config=inference_config, deployment_config=deployment_config, environment=env, auth=auth, overwrite=True)
upvoted 2 times
...
JTWang
2 years ago
I can't find token_auth_enabled parameter. In ref i got parameter "auth_mode". https://learn.microsoft.com/en-us/azure/machine-learning/how-to-authenticate-online-endpoint You can set the authentication type when you create an online endpoint. Set the auth_mode to key or aml_token depending on which one you want to use. The default value is key.
upvoted 3 times
silva_831
2 years ago
I didn't find token_auth-enabled as well according to attached link.
upvoted 1 times
...
...
klowqw
2 years, 2 months ago
correct
upvoted 3 times
manualrg
1 year, 9 months ago
Correct is A: From (v1 SDK) https://learn.microsoft.com/en-us/azure/machine-learning/v1/how-to-authenticate-web-service # Create the config aks_config = AksWebservice.deploy_configuration() # Enable token auth and disable (key) auth on the webservice aks_config = AksWebservice.deploy_configuration(token_auth_enabled=True, auth_enabled=False)
upvoted 2 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