nerdexam
Microsoft

AZ-400 · Question #80

Drag and Drop Question You plan to use Azure Kubernetes Service (AKS) to host containers deployed from images hosted in a Docker Trusted Registry. You need to recommend a solution for provisioning and

The correct answer is az ad sp create-for-rbac; az aks create; az role assignment create. The correct sequence begins with 'az ad sp create-for-rbac' to create a custom service principal, which provides the identity AKS will use. Next, 'az aks create' provisions the RBAC-enabled AKS cluster using the service principal credentials (via --service-principal and --client-

Submitted by tom_us· Mar 6, 2026Design and Implement Infrastructure Solutions / Implement Container-Based Applications in Azure

Question

Drag and Drop Question You plan to use Azure Kubernetes Service (AKS) to host containers deployed from images hosted in a Docker Trusted Registry. You need to recommend a solution for provisioning and connecting to AKS. The solution must ensure that AKS is RBAC-enaWed and uses a custom service principal. Which three commands should you recommend be run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the coned order. Answer:

Exhibits

AZ-400 question #80 exhibit 1
AZ-400 question #80 exhibit 2

Answer Area

Drag items

az role assignment createaz aks get-credentialsaz aks createaz ad sp create-for-rbackubectl create

Correct arrangement

  • az ad sp create-for-rbac
  • az aks create
  • az role assignment create

Explanation

The correct sequence begins with 'az ad sp create-for-rbac' to create a custom service principal, which provides the identity AKS will use. Next, 'az aks create' provisions the RBAC-enabled AKS cluster using the service principal credentials (via --service-principal and --client-secret flags, with --enable-rbac). Finally, 'az role assignment create' grants the service principal the necessary permissions (e.g., AcrPull role) to pull images from the Docker Trusted Registry, completing the secure integration.

Topics

#Azure Kubernetes Service (AKS)#RBAC#Service Principal#Container Registry Integration

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice