Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Network Engineer All Questions

View all questions & answers for the Professional Cloud Network Engineer exam

Exam Professional Cloud Network Engineer topic 1 question 65 discussion

Actual exam question from Google's Professional Cloud Network Engineer
Question #: 65
Topic #: 1
[All Professional Cloud Network Engineer Questions]

You need to define an address plan for a future new GKE cluster in your VPC. This will be a VPC native cluster, and the default Pod IP range allocation will be used. You must pre-provision all the needed VPC subnets and their respective IP address ranges before cluster creation. The cluster will initially have a single node, but it will be scaled to a maximum of three nodes if necessary. You want to allocate the minimum number of Pod IP addresses.
Which subnet mask should you use for the Pod IP address range?

  • A. /21
  • B. /22
  • C. /23
  • D. /25
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
groovygorilla
Highly Voted 3 years, 10 months ago
I think it's B. "This will be a VPC native cluster, and the *default* Pod IP range allocation will be used." From https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr#overview "With the *default* maximum of 110 Pods per node, Kubernetes assigns a /24 CIDR block (256 addresses) to each of the nodes." That is, /24 for one node. We have 3 nodes, so we need /22.
upvoted 32 times
...
lukedj87
Highly Voted 4 years ago
TL;DR: correct answer /22 Max nodes will be three. Each node can have a max of 254 pods. 254 * 3 -> 762 pods Both a /25 and /23 wouldn't be enough --> those would respectively account for 128 and 512 pods /21 would be too large -> that would be enough for 2048 pods /22 is the right one, accounting for 1024 PODs
upvoted 13 times
desertlotus1211
9 months ago
Wrong!
upvoted 1 times
...
lollo883
3 years, 2 months ago
In GKE the maximum number of pods per node is hard limited to 110. So in this question we have to extimate 330 pods. Anyway, GKE has an ultraconservative policy on IP addresses number, so for every pod 2 Ip addresses are reserved (even if only one is actually assigned). So we have 330 pods , we double this number 330*2 = 660 and we get the minimum number of ip addresses we need. So 512 aren't enough and we go with 1024. To reserve 1024 ip addresses (2^10) we need to use a /22 subnet
upvoted 17 times
AzureDP900
1 year, 12 months ago
Thank you for detailed explanation, I agree with you! B is right
upvoted 3 times
...
...
...
mohan999
Most Recent 2 weeks, 6 days ago
I think it should be /21, considering each node can have 256 pods and the address block always contains at least twice as many addresses as the maximum number of Pods per node as per documentation. 256(max pods per node)*3 nodes=768 pods 768(total max pods)*2=1536(twice the total pods) addresses And /21 range satisfies this.
upvoted 1 times
mohan999
2 weeks, 6 days ago
If a default 110 pods per node is considered, then /22 should be enough
upvoted 1 times
...
...
desertlotus1211
9 months ago
Answer is C: /23 3 nodes with max of 110 pods = 330 pods. the real answer is /24 for a total of 510 IPs.. /25 gives you 254 IPs... Since /24 is not a option the next best is /23
upvoted 1 times
desertlotus1211
9 months ago
/23 for a total of 510 IPs and /24 for a total of 254 IPs ...sorry about that
upvoted 1 times
...
...
Gurminderjit
11 months, 2 weeks ago
It’s B
upvoted 1 times
...
crg63
1 year, 1 month ago
Selected Answer: B
/22 allows 4 nodes, since each node needs /24 allocated for Pods (110 pods per node)
upvoted 3 times
...
PranavP96
1 year, 6 months ago
Answer is B see the table attached for 4 nodes and 330 pods( 440 is max size )
upvoted 1 times
desertlotus1211
1 year, 6 months ago
there is no table :)
upvoted 2 times
desertlotus1211
1 year, 6 months ago
Where is the table :)
upvoted 1 times
...
...
kapara
1 year, 3 months ago
this is not the answer. the answer is: max pods in node is 110, double it in 3 is 330. the best practice is always double so 660 --> its btw 512-1024 so the answer is /22.
upvoted 1 times
desertlotus1211
9 months ago
why? where is the BP for this?
upvoted 1 times
...
...
...
Komal697
1 year, 7 months ago
Selected Answer: D
Option D (/25) is the correct answer because it allows for the minimum number of Pod IP addresses while still providing enough IP addresses for the maximum of three nodes in the cluster. A /25 subnet mask provides 128 IP addresses, which is enough for a single node cluster (with one IP address used for the node) and for a three node cluster (with one IP address used for each node). Option A (/21) provides more IP addresses than necessary and could result in IP address wastage. Option B (/22) and Option C (/23) also provide more IP addresses than necessary for a single node cluster and may lead to IP address wastage. So, the best option is to use a /25 subnet mask to allocate the minimum number of Pod IP addresses while still providing enough IP addresses for the maximum of three nodes in the cluster.
upvoted 1 times
...
MMEB
2 years, 1 month ago
The corre tra answer is B. /24 is the default CIDR block assigned to each worker node, with maximum 110 PODs for node. For 3 node, we need 3 x /24 = /22
upvoted 1 times
...
kumarp6
2 years, 10 months ago
Answer is : B
upvoted 1 times
...
kumarp6
2 years, 10 months ago
Answer is : B
upvoted 1 times
...
kumarp6
2 years, 10 months ago
it's B https://cloud.google.com/kubernetes-engine/docs/concepts/alias-ips#defaults_limits
upvoted 1 times
...
JesusMariaJose
3 years ago
Selected Answer: B
B https://cloud.google.com/kubernetes-engine/docs/concepts/alias-ips#defaults_limits
upvoted 3 times
...
Morgan91
3 years, 1 month ago
https://cloud.google.com/kubernetes-engine/docs/concepts/alias-ips#cluster_sizing_secondary_range_pods
upvoted 2 times
...
vamgcp
3 years, 1 month ago
Correction to my below reply - Each node will have max of 2^8 =256 , so for 3 nodes it will be 254*3 = 762. If you chose /23 then 2^(32-23) = 2^9 = 512 which is less than 762 so incorrect option .if you do the same thing for /22 you get 2048 which is more than 762 hence option B /22 is correct
upvoted 1 times
...
vamgcp
3 years, 1 month ago
Each node will have max of 2^8 =254 , so for 3 nodes it will be 254*3 = 762. If you chose /23 then 2^(32-23) = 2^9 = 512 which is less than 762 so incorrect option .if you do same thing for /212 you get 2048 which is more than 762 hence option B /21 is correct
upvoted 1 times
...
PeppaPig
3 years, 2 months ago
B is the answer. When the "default" Pod IP range allocation is used, GKE assigns /24 CIDR block for pods on each node, which means the minimum secondary IP range of the subnet is /24, and that allows for max 1 node in your cluster. To expand to 3 Nodes, /22 range is required.
upvoted 1 times
PeppaPig
3 years, 2 months ago
Calculate the maximum number of nodes, N, that the subnet's secondary IP address range for Pods can support: N = 2(M - S) where: M is the size of the netmask of each node's alias IP address range for Pods, calculated in the first step S is the size of the subnet mask of the subnet's secondary IP address range https://cloud.google.com/kubernetes-engine/docs/concepts/alias-ips#cluster_sizing_secondary_range_pods
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...