exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 72 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 72
Topic #: 1
[All Associate Cloud Engineer Questions]

You deployed a new application inside your Google Kubernetes Engine cluster using the YAML file specified below.

You check the status of the deployed pods and notice that one of them is still in PENDING status:

You want to find out why the pod is stuck in pending status. What should you do?

  • A. Review details of the myapp-service Service object and check for error messages.
  • B. Review details of the myapp-deployment Deployment object and check for error messages.
  • C. Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages.
  • D. View logs of the container in myapp-deployment-58ddbbb995-lp86m pod and check for warning messages.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
spudleymcdudley
Highly Voted 3 years, 8 months ago
It's C - https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/#debugging-pods
upvoted 31 times
...
someoneinthecloud
Highly Voted 3 years, 7 months ago
Answer is C - You can't view logs of a pod that isn't deployed, so D is incorrect. C allows you to check the pod deployment messages and look for errors
upvoted 24 times
sidharthwader
2 years, 8 months ago
What u said is incorrect you can view pod's log even in pending state. kubectl logs <pon-name> -n <namespace>
upvoted 3 times
...
...
Captain1212
Most Recent 6 months ago
Selected Answer: C
C is correct, as its help you to check the error
upvoted 2 times
...
Selected Answer: C
Answer C. Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages. To find out why a pod is stuck in pending status, you can review the details of the pod and check for any warning messages. Answer C is the correct answer because it suggests reviewing the details of the specific pod that is stuck in pending status. You can use the kubectl describe pod <pod-name> command to view detailed information about the pod, including any warning messages that might indicate why the pod is not scheduled.
upvoted 3 times
...
AKSHAT09jain
1 year, 1 month ago
D : we first check logs
upvoted 1 times
...
Zoze
1 year, 3 months ago
Selected Answer: C
I vote C; because if we imagine that we will go to a main menu that display the errors of the all deployment object as hole, we will surely navigate thin to the pod menu ! so the C option will direct take us to the second menu.
upvoted 1 times
...
Charumathi
1 year, 5 months ago
C is correct, Debugging Pods The first step in debugging a Pod is taking a look at it. Check the current state of the Pod and recent events with the following command: kubectl describe pods ${POD_NAME}
upvoted 1 times
...
Letahrgicbeagle
1 year, 5 months ago
Selected Answer: C
Definitely
upvoted 1 times
...
Dheeraj1986
1 year, 6 months ago
Selected Answer: B
I guess it's B. its deployment that creates the pod and it has the information why it is not able to create. it shows the information if you describe the deployment ( kubectl describe deployment )
upvoted 1 times
...
abirroy
1 year, 7 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
RanjithK
1 year, 8 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
AzureDP900
1 year, 8 months ago
C is right
upvoted 1 times
...
haroldbenites
1 year, 9 months ago
Go for C
upvoted 1 times
...
sharmaishu
2 years ago
C is the correct answer: The first step in debugging a Pod is taking a look at it. Check the current state of the Pod and recent events with the following command: kubectl describe pods ${POD_NAME} https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/
upvoted 1 times
...
sharmaishu
2 years ago
C is the correct answer. If a Pod is stuck in Pending it means that it can not be scheduled onto a node. Generally this is because there are insufficient resources of one type or another that prevent scheduling. Look at the output of the kubectl describe ... command above. There should be messages from the scheduler about why it can not schedule your Pod. https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/
upvoted 2 times
...
vishnukumartr
2 years, 3 months ago
C. Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages.
upvoted 1 times
...
shawnkkk
2 years, 3 months ago
C. Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages.
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago