0
0
AWScloud~20 mins

EKS networking with VPC CNI in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
EKS VPC CNI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does the VPC CNI plugin assign IP addresses to pods in EKS?

In Amazon EKS using the VPC CNI plugin, how are IP addresses assigned to pods?

APods use NAT to translate their IP addresses to the node's IP address for external communication.
BPods share the node's IP address and use port mapping to communicate externally.
CPods receive IP addresses from the Kubernetes cluster CIDR, separate from the VPC subnet.
DPods receive IP addresses directly from the VPC subnet, making them part of the VPC network.
Attempts:
2 left
💡 Hint

Think about how pods integrate with the VPC network for direct connectivity.

Architecture
intermediate
2:00remaining
Choosing subnets for EKS nodes with VPC CNI

You are designing an EKS cluster with the VPC CNI plugin enabled. Which subnet type should you select for your worker nodes to ensure pods get IP addresses correctly?

APublic subnets with auto-assign public IP enabled.
BAny subnet type, as subnet choice does not affect pod IP assignment.
CPrivate subnets with NAT gateway for internet access.
DIsolated subnets without any route to the internet.
Attempts:
2 left
💡 Hint

Consider where pods get their IPs and how nodes communicate externally.

Configuration
advanced
2:00remaining
Effect of setting AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG to true

What is the effect of setting the environment variable AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG to true in the VPC CNI plugin configuration?

AIt enables automatic scaling of the number of ENIs attached to nodes.
BIt enables the plugin to allocate IP addresses from multiple custom subnets instead of the default ones.
CIt forces the plugin to assign IP addresses only from the primary subnet of the VPC.
DIt disables the VPC CNI plugin and uses the default Kubernetes networking instead.
Attempts:
2 left
💡 Hint

Think about customizing IP address allocation sources.

security
advanced
2:00remaining
Security group requirements for EKS nodes using VPC CNI

Which security group rule is essential for EKS worker nodes to allow pod networking when using the VPC CNI plugin?

AAllow all traffic between nodes within the security group.
BAllow inbound TCP traffic on port 443 from the internet.
CAllow outbound UDP traffic on port 53 to the internet.
DAllow inbound ICMP traffic from any source.
Attempts:
2 left
💡 Hint

Consider how pods communicate across nodes inside the cluster.

service_behavior
expert
2:00remaining
Impact of ENI and IP address limits on pod density per node

Given an EC2 instance type with a maximum of 4 ENIs and 15 IP addresses per ENI, what is the maximum number of pods that can be scheduled on a single node using the VPC CNI plugin?

A56 pods, because one IP per ENI is reserved for the node itself.
B60 pods, because each ENI provides 15 IPs and 4 ENIs are allowed.
C56 pods, because two IPs per ENI are reserved for AWS networking.
D64 pods, because the plugin can assign IPs beyond ENI limits.
Attempts:
2 left
💡 Hint

Remember that the node uses one IP per ENI, reducing available pod IPs.