exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 11 discussion

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

HOTSPOT -
You use Azure Machine Learning to train and register a model.
You must deploy the model into production as a real-time web service to an inference cluster named service-compute that the IT department has created in the
Azure Machine Learning workspace.
Client applications consuming the deployed web service must be authenticated based on their Azure Active Directory service principal.
You need to write a script that uses the Azure Machine Learning SDK to deploy the model. The necessary modules have been imported.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: AksCompute -
Example:
aks_target = AksCompute(ws,"myaks")
# If deploying to a cluster configured for dev/test, ensure that it was created with enough
# cores and memory to handle this deployment configuration. Note that memory is also used by
# things such as dependencies and AML components.
deployment_config = AksWebservice.deploy_configuration(cpu_cores = 1, memory_gb = 1) service = Model.deploy(ws, "myservice", [model], inference_config, deployment_config, aks_target)

Box 2: AksWebservice -

Box 3: token_auth_enabled=Yes -
Whether or not token auth is enabled for the Webservice.
Note: A Service principal defined in Azure Active Directory (Azure AD) can act as a principal on which authentication and authorization policies can be enforced in
Azure Databricks.
The Azure Active Directory Authentication Library (ADAL) can be used to programmatically get an Azure AD access token for a user.
Incorrect Answers:
auth_enabled (bool): Whether or not to enable key auth for this Webservice. Defaults to True.
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-azure-kubernetes-service https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/service-prin-aad-token

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
ljljljlj
Highly Voted 3 years, 3 months ago
On exam 2021/7/10
upvoted 11 times
...
azurecert2021
Highly Voted 3 years, 4 months ago
given answer is correct token_auth_enabled bool default value: None Whether or not to enable Token auth for this Webservice. If this is enabled, users can access this Webservice by fetching an access token using their Azure Active Directory credentials. Defaults to False. https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.webservice.akswebservice?view=azure-ml-py Service principal: You create a service principal account in Azure Active Directory, and use it to authenticate or get a token. A service principal is used when you need an automated process to authenticate to the service without requiring user interaction. For example, a continuous integration and deployment script that trains and tests a model every time the training code changes. https://docs.microsoft.com/en-us/azure/machine-learning/how-to-setup-authentication
upvoted 10 times
...
evangelist
Most Recent 4 months, 3 weeks ago
amlcompute=>training Akscompute=>real time computing and scalable batchcompute=>non real time
upvoted 1 times
...
james2033
1 year ago
Constructor azureml.core.compute.aks.AksCompute(workspace, name) https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.compute.aks.akscompute?view=azure-ml-py#constructor azureml.core.webservice.aks.AksWebservice.deploy_configuration(...) https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.webservice.aks.akswebservice?view=azure-ml-py#azureml-core-webservice-aks-akswebservice-deploy-configuration
upvoted 1 times
...
pancman
2 years, 6 months ago
Given answer is correct. The third one might be confusing for some people but here is what Microsoft documentation says: token_auth_enabled: Whether or not to enable Token auth for this Webservice. If this is enabled, users can access this Webservice by fetching an access token using their Azure Active Directory credentials. Defaults to False.
upvoted 6 times
...
kkkk_jjjj
2 years, 7 months ago
on exam 18/03/2022
upvoted 3 times
...
AjoseO
2 years, 8 months ago
On Exam: 03 March 2022
upvoted 1 times
...
[Removed]
2 years, 8 months ago
On 20Feb2022
upvoted 1 times
...
Tsardoz
2 years, 9 months ago
cpu_cores = 1, memory_gb=1 does not sound like AKS to me
upvoted 2 times
...
AI247
2 years, 12 months ago
on exam 05Nov 2021
upvoted 2 times
...
JoshuaXu
2 years, 12 months ago
on 6 Nov 2021
upvoted 2 times
...
hargur
3 years ago
on 19Oct2021
upvoted 1 times
...
snsnsnsn
3 years, 2 months ago
on 2/9/21
upvoted 2 times
...
SaulG
3 years, 4 months ago
Answer is correct!
upvoted 5 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