Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 94


You create a Deployment with 2 replicas in a Google Kubernetes Engine cluster that has a single preemptible node pool. After a few minutes, you use kubectl to examine the status of your Pod and observe that one of them is still in Pending status:

What is the most likely cause?

Show Answer
Correct Answer: BD

In a Google Kubernetes Engine cluster with a preemptible node pool, preemption can cause nodes to be terminated unexpectedly. This may lead to pods being marked as pending while they are being rescheduled onto new nodes. Given the scenario where one pod is running and the other is pending, it is most likely that the pending pod was originally scheduled on a node that has been preempted. This would result in it being in the pending state while the cluster reschedules it. Therefore, the most likely cause is that the pending pod was originally scheduled on a preempted node, and it is currently being rescheduled.

Discussion

17 comments
Sign in to comment
ESP_SAPOption: B
Aug 18, 2020

Correct Answer is (B): Reasons for a Pod Status Pending: Troubleshooting Reason #1: Not enough CPU Troubleshooting Reason #2: Not enough memory Troubleshooting Reason #3: Not enough CPU and memory https://managedkube.com/kubernetes/k8sbot/troubleshooting/pending/pod/2019/02/22/pending-pod.html

SSPC
Aug 20, 2020

I agree with you. The correct answer is B

[Removed]
Sep 20, 2020

D gives you the reason why the resource could not be available a it was preempted

tavva_prudhvi
Apr 2, 2021

If it was preempted, then it has to be restarted right? then it will show its failing not pending, check the articles mentioned by ESP_SAP

ashtonez
Mar 9, 2023

No, it will show as pending initially while realocating

Finger41
Jun 2, 2021

Its in a deployment, the pod will be recreated. There is insufficient resources in the node, not because its preemptible but because there is no memory/cpu......

Linus11
Apr 25, 2021

The real crux of this question is the mention about "Pre-emptible Node pool". That need to take into consider while determining the answer. If we choose B, then the importance of "Pre-emptible node pool" is not there. Whether the node pool is pre-emptible or not, resource scarcity can lead to pending pods. When we consider the mention of "Pre-emptible Node Poll" , then the answer is obviously D. if a pre-meptible Node get pre-empted there will be a delay in cluster to sync it. Answer is D.

Finger41
Jun 2, 2021

This is to throw you off, when there is insufficient resources for a Pod to stand up, then the status will equal pending : https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/#:~:text=If%20a%20Pod%20is%20stuck,be%20scheduled%20onto%20a%20node.&text=You%20don't%20have%20enough,new%20nodes%20to%20your%20cluster.

alexgrig
Sep 24, 2021

Questions says "Single Node" at that case the second pod can't be in running state.

MidhunJose
Jan 21, 2022

It says a single node pool, not a single node. Meaning there can be multiple nodes, right?

brvinod
Feb 11, 2022

A node can have multiple pods. So that is not a problem.

brvinod
Feb 11, 2022

Pre-emptible would have been an issue if the cluster had more than one node. The question clearly states that it is a single node cluster. That means if that single VM was pre-empted, neither of the pods should have been running. Since one pod is running, that means that (the only) VM is running. So, the reason the second pod is still pending because the VM is not having enough resources to run both the pods. Hence B.

mplibunao
Jun 8, 2022

Actually the question stated "single preemptible node pool" and not "single node" so it's possible that there are multiple nodes and one of the node on which the pod was scheduled on was preempted

cloudenthu01Option: D
Jun 25, 2020

D is correct as the node on which pod was scheduled to run was preempted & now this pod is scheduled to run on different preemtible node from the node-pool

myuniquename
Sep 23, 2021

Incorrect. There is a single preemtible instance, if it was preempted then both pods would show as 'Pending'. B is correct.

obeythefist
Mar 17, 2022

> There is a single preemtible instance Where does it say that? It doesn't. Don't make things up. There's a single pre-emptible node pool. A single pool is not the same as a single node.

ashtonez
Mar 9, 2023

No, because one of the pods may run on another node that its still up

respawnOption: B
Aug 30, 2023

D is a decoy meant to confuse you, answer is B

Captain1212Option: B
Sep 3, 2023

B , seems more correct as it dont have enough resources

gsmasadOption: D
Nov 1, 2023

When we consider the mention of "Pre-emptible Node Poll" , then the answer is obviously D.

geeroylenkinsOption: D
Jul 19, 2023

I'm going D ....

jayjani66Option: D
Jul 21, 2023

option D: The pending Pod was originally scheduled on a node that has been preempted between the creation of the Deployment and your verification of the Pods' status. It is currently being rescheduled on a new node.

abhiishereOption: D
Oct 10, 2023

I will pick option D

wongwongOption: B
Nov 2, 2023

answer is B

BAofBKOption: B
Nov 6, 2023

I go with B

yash_1199Option: B
Dec 28, 2023

B is correct

Cynthia2023Option: B
Dec 31, 2023

I would go with B. While D is possible, this scenario is less likely compared to the resource constraint issue, especially if the Pending status is observed consistently over a few minutes. Preemption would usually lead to a quicker rescheduling unless there are resource constraints.

jareinerOption: D
Feb 6, 2024

The term 'preemptible node pool' is in the question. D is the answer.

moumouOption: D
Feb 21, 2024

D good choice

blackBeard33Option: B
Feb 28, 2024

I would go for B

tmwfOption: B
Feb 29, 2024

B is more correct. Maybe Troubleshooting Reason Not enough CPU or Memory or both of them.

BuenaCloudDEOption: D
Jul 14, 2024

I think so because main word of the question is preemptible pool nodes it can initialize some latency during creating node to find compliance machine.