AZ-204 Implement Azure security Practice Question
Which TWO actions should you take to secure an Azure Kubernetes Service (AKS) cluster that runs a critical workload? (Choose two.)
⚠ Common exam trap
A common mix-up: candidates confuse network-level security (like Azure Firewall) with pod-level security (like network policies), or they mistakenly think that enabling SSH access is a valid troubleshooting method in AKS, ignoring the principle of least privilege and the availability of secure alternatives like `kubectl exec` or Azure Bastion.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enable Azure AD integration with Kubernetes RBAC
Integrating Azure AD with Kubernetes RBAC provides centralized identity management and fine-grained access control for the AKS cluster. This allows you to authenticate users via Azure AD and authorize their actions using Kubernetes RBAC roles, ensuring that only authenticated and authorized users can perform operations on the cluster, which is critical for securing a production workload.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Store secrets as Kubernetes secrets without encryption
Why it's wrong here
Storing secrets as unencrypted Kubernetes secrets is a significant security vulnerability because Kubernetes secrets are only base64 encoded by default, not encrypted at rest in etcd. This means that anyone with access to the etcd database or the cluster API can easily decode and view sensitive information, such as database credentials or API keys. For true security, secrets should be encrypted at rest using a Key Management System (KMS) like Azure Key Vault via a Secrets Store CSI driver.
- ✗
Enable SSH access to all nodes for troubleshooting
Why it's wrong here
Enabling broad SSH access to all worker nodes significantly expands the attack surface of an Azure Kubernetes Service (AKS) cluster. Each open SSH port represents a potential entry point for attackers if credentials are compromised or weak, making the cluster more susceptible to unauthorized access and malicious activity. Best practice dictates restricting direct node access, often leveraging Azure Bastion or Just-In-Time (JIT) access for audited and temporary troubleshooting.
- ✓
Enable Azure AD integration with Kubernetes RBAC
Why this is correct
Enabling Azure Active Directory (Azure AD) integration with Kubernetes Role-Based Access Control (RBAC) is a fundamental security measure for AKS, providing robust identity-based access control. This integration allows organizations to leverage their existing Azure AD identities and groups to define granular permissions within the Kubernetes cluster. It centralizes authentication and authorization, ensuring that only authorized users and service principals can perform specific actions, thereby enforcing the principle of least privilege.
- ✗
Deploy Azure Firewall in the cluster VNet
Why it's wrong here
Deploying Azure Firewall in the cluster's Virtual Network (VNet) primarily provides perimeter security for inbound and outbound traffic at the VNet level, inspecting traffic between the VNet and external networks or other VNets. While beneficial for overall network security, it does not directly secure internal pod-to-pod communication or access to the Kubernetes API server within the cluster itself. Azure Firewall is not designed for micro-segmentation within the cluster, which is a critical aspect of securing containerized workloads.
- ✓
Use network policies to restrict pod-to-pod communication
Why this is correct
Using Kubernetes Network Policies is a crucial action to secure an AKS cluster by enabling micro-segmentation and restricting pod-to-pod communication. These policies define rules for how pods are allowed to communicate with each other and with external network endpoints, based on labels and namespaces. By limiting network access to only what is necessary, network policies significantly reduce the blast radius of a compromised pod and prevent unauthorized lateral movement within the cluster.
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.