0
0
Azurecloud~20 mins

AKS networking (kubenet, Azure CNI) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AKS Networking Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Pod IP Address Allocation in AKS

In Azure Kubernetes Service (AKS), you can choose between two networking models: kubenet and Azure CNI. Which statement correctly describes how pod IP addresses are allocated in these two models?

ABoth kubenet and Azure CNI assign pod IPs from the same subnet as the nodes without isolation.
BIn kubenet, pods get IPs from a private subnet managed by AKS; in Azure CNI, pods get IPs directly from the Azure virtual network subnet.
CIn kubenet, pods get IPs directly from the Azure virtual network subnet; in Azure CNI, pods get IPs from a private subnet managed by AKS.
DNeither kubenet nor Azure CNI assign IPs to pods; pods share the node IP address.
Attempts:
2 left
💡 Hint

Think about whether pods get IPs from the Azure network or from a separate range.

Architecture
intermediate
2:00remaining
Choosing Networking Model for High Pod Density

You plan to deploy an AKS cluster with a very high number of pods per node. Which networking model is better suited for this scenario and why?

AAzure CNI, because it supports unlimited pods per node without IP address exhaustion.
BAzure CNI, because it assigns IPs from a private subnet, reducing IP usage.
CKubenet, because it uses NAT and allows more pods per node without needing many IP addresses.
DKubenet, because it assigns IPs directly from the Azure subnet, avoiding IP conflicts.
Attempts:
2 left
💡 Hint

Consider how IP address usage affects pod density in each model.

security
advanced
2:00remaining
Network Policy Enforcement Differences

Which AKS networking model supports Azure Network Policies natively for controlling pod traffic?

AAzure CNI supports Azure Network Policies natively; kubenet does not support them directly.
BKubenet supports Azure Network Policies natively; Azure CNI requires additional configuration.
CBoth kubenet and Azure CNI support Azure Network Policies natively without extra setup.
DNeither kubenet nor Azure CNI support Azure Network Policies; only Calico does.
Attempts:
2 left
💡 Hint

Think about which model integrates better with Azure's native network security features.

service_behavior
advanced
2:00remaining
Pod-to-Pod Communication Across Nodes

In an AKS cluster using kubenet networking, how is pod-to-pod communication across different nodes handled?

APods use a VPN tunnel established between nodes for communication.
BPods communicate directly using their Azure VNet IPs without NAT or routing rules.
CPods cannot communicate across nodes in kubenet; only within the same node.
DPods communicate using node IPs with NAT translating pod IPs, requiring routing rules on nodes.
Attempts:
2 left
💡 Hint

Consider how kubenet uses NAT and routing for pod traffic.

Best Practice
expert
3:00remaining
Scaling AKS Cluster with Azure CNI and IP Address Limits

You have an AKS cluster using Azure CNI networking. You want to scale the cluster to 100 nodes, each running 30 pods. What is the best practice to avoid IP address exhaustion in the Azure virtual network subnet?

AIncrease the subnet size to accommodate at least 3000 IP addresses, considering node and pod IPs.
BUse kubenet instead of Azure CNI to avoid IP address exhaustion issues.
CAssign static IP addresses to pods to manage IP usage manually.
DReduce the number of pods per node to 5 to limit IP consumption.
Attempts:
2 left
💡 Hint

Think about how Azure CNI assigns IPs and what subnet size is needed.