nerdexam
Microsoft

DP-100 · Question #232

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 h

The correct answer is B. No. The answer is No - the solution does not meet the goal. Setting token_auth_enabled=True enables Azure Active Directory (Azure AD) token-based authentication, which is a different authentication mechanism than key-based authentication. The requirement explicitly states that applic

Train and deploy models

Question

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 AksWebservice 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?

Options

  • AYes
  • BNo

How the community answered

(62 responses)
  • A
    15% (9)
  • B
    85% (53)

Explanation

The answer is No - the solution does not meet the goal. Setting token_auth_enabled=True enables Azure Active Directory (Azure AD) token-based authentication, which is a different authentication mechanism than key-based authentication. The requirement explicitly states that applications must use key-based authentication. Furthermore, auth_enabled and token_auth_enabled are mutually exclusive - you cannot enable both simultaneously. Token-based auth requires callers to obtain a short-lived JWT token from Azure AD, which is more complex than using a static service key. The correct configuration for key-based authentication is auth_enabled=True (not token_auth_enabled=True).

Topics

#Model Deployment#Azure Kubernetes Service (AKS)#Web Service Authentication#Key-based Authentication

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice