
Answer-first summary for fast verification
Answer: Yes
The solution meets the goal because setting `auth_enabled=True` for an AciWebservice instance enables key-based authentication by default. This is confirmed by the Microsoft documentation and community consensus, where the highest upvoted comments (e.g., azurecert2021 with 4 upvotes, nmuenter with 3 upvotes) clarify that `auth_enabled` is specifically for key-based authentication, while `token_auth_enabled` is for token-based authentication. Although some comments (e.g., phdykd) argue that additional steps like Azure Key Vault are needed, the question only requires enabling key-based authentication, which is achieved with `auth_enabled=True`. The community vote (80% for A) and detailed reasoning support this as the correct answer.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You train and register a machine learning model that you plan to deploy as a real-time web service. The service must require key-based authentication for applications to use the model.
You implement the following solution:
auth_enabled property to True.Does this solution meet the goal?
A
Yes
B
No
No comments yet.