Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 1 Question 58 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 58
Topic #: 1
[All CKA Questions]

Score: 5%

Task

From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt (which already exists).

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Twila
4 months ago
I think you might need to filter the results more specifically.
upvoted 0 times
...
Chauncey
4 months ago
This seems straightforward, but what if there are multiple pods with high CPU?
upvoted 0 times
...
Crista
4 months ago
Wait, is the pod label really `cpu-user`? Thought it was `cpu-utilizer`.
upvoted 0 times
...
Val
4 months ago
Totally agree, that's the way to go!
upvoted 0 times
...
Geoffrey
5 months ago
Just use `kubectl top` to check CPU usage!
upvoted 0 times
...
Torie
5 months ago
I think the command to write to the file is right, but I’m not sure if we need to include the pod name dynamically or just echo a static name.
upvoted 0 times
...
Alysa
5 months ago
I feel like I practiced something similar, but I can't recall if we needed to sort the output to find the highest CPU pod. Should we use `sort` or something?
upvoted 0 times
...
Gaston
5 months ago
I remember a practice question where we had to filter pods by labels. I think we should use `-l name=cpu-utilizer` instead of `cpu-user`.
upvoted 0 times
...
Ashton
5 months ago
I think we need to use `kubectl top` to check the CPU usage, but I'm not sure if the label is correct. Was it `cpu-utilizer` or something else?
upvoted 0 times
...
An
5 months ago
This seems straightforward enough. I'll just run `kubectl top pods -l name=cpu-utilizer` to get the CPU usage for the relevant pods, find the one with the highest usage, and then use `echo` to write the name to the file. Should be a quick and easy one to knock out.
upvoted 0 times
...
Larae
5 months ago
Okay, I think I've got a plan for this. First, I'll use `kubectl top pods -l name=cpu-utilizer` to get the CPU usage for all the relevant pods. Then I'll sort that output to find the pod with the highest usage, and finally I'll write the name of that pod to the file using `echo`. Hopefully that'll do the trick!
upvoted 0 times
...
Reita
5 months ago
Hmm, I'm a bit confused by this one. I know we need to find the pod with the highest CPU usage, but I'm not sure how to do that exactly. I'll probably start by trying `kubectl get pods -l name=cpu-utilizer` to list the pods, then try to figure out how to get the CPU usage for each one.
upvoted 0 times
...
Claribel
5 months ago
This looks like a straightforward task to find the pod with the highest CPU usage and write its name to a file. I'll start by using the `kubectl top` command to get the CPU usage for all pods with the `name=cpu-utilizer` label, then I'll pipe that output to `grep` to find the pod with the highest usage and write its name to the file.
upvoted 0 times
...
Delfina
6 months ago
Okay, let's see. The question is asking about the minimum number of compute nodes, so I'll need to think about the minimum requirements for running this engine. I'll go with my best guess.
upvoted 0 times
...
Gracia
6 months ago
Got it, that makes sense. The $3,000 cash is considered "boot" and reduces the basis of the new van. I'm feeling pretty confident about this one now.
upvoted 0 times
...
Leslie
6 months ago
Hmm, I'm a little unsure about this one. There are a lot of options, and I'm not sure I fully grasp the nuances of DRM implementation. I'll need to carefully read through each choice and try to identify the top three risks. Wish me luck!
upvoted 0 times
...
Huey
2 years ago
Thanks, I'll remember that for the exam.
upvoted 0 times
...
Maile
2 years ago
Then we can use echo command to append the pod name to the file.
upvoted 0 times
...
Katina
2 years ago
I believe we need to use kubectl top to get the CPU usage.
upvoted 0 times
...
Huey
2 years ago
Yeah, I'm not sure about the solution.
upvoted 0 times
...
Katina
2 years ago
I think this question is tricky.
upvoted 0 times
...
Vallie
2 years ago
We need to write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt
upvoted 0 times
...
Julene
2 years ago
After finding the pods, what do we do next?
upvoted 0 times
...
Penney
2 years ago
We can use the command 'kubectl top -l name=cpu-user -A'
upvoted 0 times
...
Alfreda
2 years ago
How do we find pods running high CPU workloads?
upvoted 0 times
...

Save Cancel