AZ-104 practice question 5 of 35

You have an Azure subscription. You plan to deploy an Azure Kubernetes Service (AKS) cluster to support an app named App1. On-premises clients connect to App1 by using the IP address of the pod. For the AKS cluster, you need to choose a network type that will support App1. What should you choose?

Full set: 569 questions

Domain Implement and manage virtual networking

Answer options
A: kubenet
B: Azure Container Networking Interface (CNI) Correct answer
C: Hybrid Connection endpoints
D: Azure Private Link
Correct Answer:
B. Azure Container Networking Interface (CNI)
Explanation

The requirement is for on-premises clients to connect to an application by using the pod's IP address directly. This is only possible if the pods have IP addresses that are routable from the on-premises network. The Azure Container Networking Interface (CNI) network plugin achieves this by assigning each pod an IP address directly from the Azure virtual network's subnet. These VNet-routable IPs make the pods first-class citizens on the network, allowing them to be directly accessed from connected on-premises environments via ExpressRoute or a VPN Gateway. The kubenet model, in contrast, uses a separate, non-routable address space for pods and relies on Network Address Translation (NAT), which prevents direct connectivity to pod IPs from outside the cluster.

Why Incorrect

A. kubenet: Pods are assigned IP addresses from a logically separate address space that is not routable on the Azure VNet, preventing direct access from on-premises.
C. Hybrid Connection endpoints: This is a feature of Azure App Service and Azure Functions used to connect to on-premises resources, not a networking model for an AKS cluster.
D. Azure Private Link: This provides private endpoint connectivity to a specific service, but it is not the fundamental network model for the cluster that assigns routable IPs to individual pods.

References

1. Microsoft Documentation | Concepts - Networking in Azure Kubernetes Services (AKS), section "Compare network models". The documentation states for Azure CNI: "Every pod gets an IP address from the subnet and can be accessed directly." For kubenet, it notes: "Pods receive an IP address from a logically different address space... Network Address Translation (NAT) is then configured..." This directly confirms that only Azure CNI supports direct pod IP access.

2. Microsoft Documentation | Configure Azure CNI networking in Azure Kubernetes Service (AKS), section "Overview". This document explicitly states, "With Azure CNI, every pod gets an IP address from the subnet and can be accessed directly. These IP addresses must be unique across your network space..." This reinforces that Azure CNI is designed for scenarios requiring direct pod reachability.

3. Microsoft Documentation | Azure App Service Hybrid Connections, section "How it works". This source clarifies that Hybrid Connections are a feature of Azure App Service, not a networking option for AKS clusters.

4. Microsoft Documentation | What is Azure Private Link?, section "Key benefits". This document describes Private Link as a technology for creating private endpoints to PaaS services, which is distinct from the underlying CNI plugin that governs pod IP allocation within the cluster itself.

Question breakdown

Tests
Configure AKS networking
Difficulty
Easy

Key idea: Azure CNI gives each pod an IP address from the VNet subnet, so the pod is directly routable from connected networks such as on-premises.

How to reach the answer

  1. Clue: on-premises clients connect using the pod's IP address, so pod IPs must be routable outside the cluster.
  2. kubenet places pods on a separate overlay range and NATs their traffic behind the node IP, so pods are not directly reachable.
  3. Azure CNI assigns pods real VNet addresses that can be reached over VPN or ExpressRoute.
  4. Hybrid Connections and Private Link are not AKS network plugins, which eliminates them.

Each option

  • AIncorrect. kubenet hides pod IPs behind NAT on the node, so on-premises clients cannot reach pods directly.
  • BCorrect. Azure CNI gives pods VNet-routable IPs that on-premises clients can reach directly.
  • CIncorrect. Hybrid Connections is an App Service/Functions feature for reaching on-premises endpoints, not an AKS network model.
  • DIncorrect. Private Link exposes a service through a private endpoint; it does not provide direct pod IP addressing or act as a cluster network type.

Common trap: kubenet is the simpler default and saves IP space, so candidates pick it without noticing it NATs pod traffic.

In practice: Choosing between kubenet, Azure CNI, and CNI Overlay is a design-time decision that affects IP planning. It matters most when legacy clients or firewalls need to reach pod IPs directly.

Remember: If anything outside the cluster must reach pod IPs directly, choose Azure CNI (VNet-assigned pod IPs).

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free AZ-104 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other AZ-104 practice questions

Scroll to Top