Microsoft Azure Security Engineer Associate AZ-500 Practice Question
You need to harden an existing Azure Kubernetes Service (AKS) cluster that developers currently access by using the default local admin credentials in a kubeconfig file. Management states: all kubectl logons must use Microsoft Entra ID, authorization should rely on built-in Azure roles instead of Kubernetes RoleBindings, and the local admin account must be disabled. Which Azure CLI command meets every requirement?
Execute az aks update --enable-aad --enable-azure-rbac --disable-local-accounts against the cluster.
Enable the cluster's OIDC issuer and configure workload identity federation for the developer application.
Generate a kubeconfig file that authenticates with the node-pool managed identity and distribute it to developers.
Create a cluster-wide RoleBinding that assigns the developers to the system:masters group.
Running az aks update with the flags --enable-aad, --enable-azure-rbac and --disable-local-accounts enables AKS-managed Microsoft Entra authentication, switches authorization to Azure RBAC for Kubernetes, and disables local admin credentials. Local accounts can be re-enabled later, but while disabled they cannot be used, satisfying all three security requirements. The other options either leave local accounts enabled, depend on Kubernetes RoleBindings, or configure unrelated workload identity features.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure RBAC, and how does it differ from Kubernetes RoleBindings?
Open an interactive chat with Bash
How does Microsoft Entra ID improve security when integrated with AKS?
Open an interactive chat with Bash
Why is it important to disable local admin accounts in AKS?
Open an interactive chat with Bash
Microsoft Azure Security Engineer Associate AZ-500
Secure compute, storage, and databases
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .