You manage an AKS cluster from an Azure AD–joined machine. Developers packaged an application named MyApp into a container image and provided a Kubernetes YAML manifest. To deploy that manifest, you install the Azure CLI on the machine and run kubectl apply -f myapp.yaml. Will this deploy the application as intended?
Choose an answer
Tap an option to check your answer.
Correct answer: Yes.
Why this is the answer
Yes, this will deploy the application as intended. When you install the Azure CLI on an Azure AD-joined machine and are logged in with an account that has appropriate permissions to the AKS cluster, the kubectl command-line tool automatically uses the Azure CLI's authentication context to connect to the AKS cluster. This eliminates the need for manual kubeconfig setup. The kubectl apply -f myapp.yaml command then uses this authenticated connection to deploy the resources defined in the YAML manifest to the cluster.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed