Amazon EKS Custom Subnet for Pods Configuration
Short answer
C Use the Amazon VPC CNI plugin for Kubernetes and define custom subnets in the VPC cluster for the pods to use.
Question
Key Takeaways
The core concept is that the Amazon VPC CNI plugin assigns VPC IP addresses directly to pods, allowing them to behave like native EC2 instances within specific subnets.
This question addresses how to configure Amazon EKS pods to use custom VPC subnets while ensuring secure intra-VPC communication. The correct solution leverages the Amazon VPC CNI plugin for Kubernetes.
Common mistake: Learners often confuse network policies with infrastructure configuration or mistake Transit Gateway's role in pod-level subnet management, leading them to choose options A or D incorrectly.
Expert Analysis
Why the Answer Is Correct
The Amazon VPC CNI plugin for Kubernetes is the default networking plugin for EKS clusters. It allows pods to receive their own IP addresses from a specified VPC subnet, enabling direct communication between pods and other AWS resources as if they were EC2 instances. By defining custom subnets in the cluster configuration using this plugin, you satisfy the requirement for pods to reside in specific subnets and communicate securely within the VPC.
Why the Other Options Are Wrong
Option A is incorrect because AWS Transit Gateway manages connectivity between multiple VPCs and on-premises networks, not pod-level subnet assignments within an EKS cluster. Option B is incorrect because Direct Connect provides network connectivity between on-premises and AWS, but does not configure internal pod subnetting or security within the VPC. Option D is incorrect because Kubernetes Network Policies control traffic flow (allow/deny rules), while anti-affinity rules control pod scheduling placement; neither mechanism assigns VPC IPs or defines which subnets pods use.
Community Comment Notes
Community consensus strongly supports option C. As user 'officedepotadmin' noted, the plugin "allows Kubernetes pods to receive IP addresses from a VPC's subnet." User 'Sarayounisaldossary' highlighted that it provides "native integration of Kubernetes networking into AWS VPC," confirming pods act like EC2 instances. User 'LeonSauveterre' correctly distinguished that Transit Gateway handles inter-network connectivity rather than pod-level subnet configurations.
Official Reference
https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ips.html
This link opens the official vendor documentation in a new tab.
Exam Strategy
When asked about pod networking in EKS, always consider the VPC CNI plugin first if the requirement involves IP addressing or subnet placement. Remember that Network Policies control traffic, not topology.
Frequently Asked Questions
Why can't we use Kubernetes Network Policies to assign subnets?
Does the VPC CNI plugin support IPv6 for pods?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 5 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 5
-
officedepotadmin 👍 6 Answered CThe Amazon VPC Container Network Interface (CNI) plugin is the default network plugin for Amazon EKS. It allows Kubernetes pods to receive IP addresses from a VPC's subnet and enables pods to communicate securely within the VPC as if they were native VPC resources.
-
mooondooo 👍 3 Answered CProbably C https://repost.aws/knowledge-center/eks-custom-subnet-for-pod
-
LeonSauveterre 👍 1 Answered CA - AWS Transit Gateway is used to manage connectivity between multiple VPCs, on-premises networks, or other AWS services. It does not manage pod-level subnet configurations in Amazon EKS. B - This can't address the specific requirement to configure custom subnets for pods within the VPC. C - This is the recommended approach. D - Pod anti-affinity rules are used for scheduling constraints, not for subnet allocation or secure communication within the VPC.
-
Sarayounisaldossary 👍 1 Answered CThe Amazon VPC CNI plugin is a Kubernetes networking plugin for EKS. where it provides: a unique VPC IP address for each pod and native integration of Kubernetes networking into AWS VPC - Pods can communicate like any EC2 instance on the same subnet.
-
dhewa 👍 2 Answered CC all the way.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →