DP-100 practice question 8 of 35

You train and register an Azure Machine Learning model You plan to deploy the model to an online endpoint You need to ensure that applications will…

Full set: 506 questions

Domain Deploy and operationalize machine learning solutions

You train and register an Azure Machine Learning model You plan to deploy the model to an online endpoint You need to ensure that applications will be able to use the authentication method with a non- expiring artifact to access the model. Solution: Create a managed online endpoint and set the value of its auth.mode parameter to aml.token. Deploy the model to the online endpoint. Does the solution meet the goal?
Answer options
A: Yes
B: No Correct answer
Correct Answer:
B. No
Explanation

The solution is incorrect because it proposes using amltoken authentication. Azure Machine Learning tokens (amltoken) are time-bound security artifacts that expire, requiring clients to periodically request a new token. The goal explicitly requires a non-expiring artifact. The appropriate authentication method for this requirement is key-based authentication (authmode = 'key'), which provides static primary and secondary keys that do not expire unless they are manually regenerated by the user. Since the proposed solution uses an authentication method with an expiring artifact, it does not meet the stated goal.

Why Incorrect

A. Yes: This is incorrect. The amltoken authentication method uses tokens that expire, which directly contradicts the requirement for a non-expiring artifact for application access.

References

1. Microsoft. (2023). Authenticate clients for online endpoints. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/azure/machine-learning/how-to-authenticate-online-endpoint.

Section: Authenticate with keys: This section states

"Authentication with a key is common for existing clients and is a simple approach... Keys don't expire

but they can be regenerated." This confirms that keys are non-expiring artifacts.

Section: Authenticate with tokens: This section explicitly states

"Azure Machine Learning tokens (amltoken) and Azure Active Directory tokens (aadtoken) both have an expiration." This confirms that amltoken is an expiring artifact

making it unsuitable for the stated goal.

Scroll to Top