You have deployed your real-time inference web service on Azure Kubernetes Service (AKS)
You need to ensure that only consumers after proper authentication can access the service.
In this particular case, which is not a correct way to set the authentication mode?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: C.
Option A is incorrect because by default, Key authentication is enabled when deploying on AKS.
There is no need to explicitly enable it.
Option B is incorrect becauseToken authentication is disabled by default when deploying to AKS.
In order to use it, it must be enabled by setting oken_auth_enabled=True.
Option C is CORRECT because by default, Token authentication is disabled by default when deploying to AKS.
It cannot be used without enabling while creating or updating the deployment.
Option D is incorrect because Token authentication is disabled by default when deploying to AKS.
In order to use it, you have to use token_auth_enabled.
auth_enabled must be disabled in this case.
Reference:
In this scenario, the correct way to set up authentication for the real-time inference web service on Azure Kubernetes Service (AKS) is to use token-based authentication. This will ensure that only consumers with valid tokens can access the service.
Option A, "Authentication mode: Key," is not a correct way to set up authentication in this scenario. Key-based authentication requires a pre-shared key between the client and the server, which is not suitable for a web service that needs to be accessed by multiple clients.
Option B, "Authentication mode: Token; set token_auth_enabled = True," is a correct way to set up authentication. Token-based authentication uses tokens that are issued to authorized clients and can be used to authenticate subsequent requests. Setting "token_auth_enabled" to True indicates that the web service requires token-based authentication.
Option C, "Authentication mode: Token," is a correct way to set up authentication. This is the same as option B without the explicit setting of "token_auth_enabled" to True.
Option D, "Authentication mode: Token; set auth_enabled=False," is not a correct way to set up authentication. Setting "auth_enabled" to False disables authentication, which is not suitable for a web service that requires authentication.
In summary, the correct way to set up authentication for the real-time inference web service on AKS is to use token-based authentication, either by explicitly setting "token_auth_enabled" to True or by simply using "Authentication mode: Token."