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

Posted by Shaun on Apr 22, 2024 at 01:06 PM

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).

Suggested Answer: A

Get Premium CKA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
TW
Twila 11 months ago
I think you might need to filter the results more specifically.
CH
Chauncey 11 months ago
This seems straightforward, but what if there are multiple pods with high CPU?
CR
Crista 12 months ago
Wait, is the pod label really `cpu-user`? Thought it was `cpu-utilizer`.
VA
Val 12 months ago
Totally agree, that's the way to go!
GE
Geoffrey 1 year ago
Just use `kubectl top` to check CPU usage!
TO
Torie 1 year 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.
AL
Alysa 1 year 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?
GA
Gaston 1 year 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`.
AS
Ashton 1 year 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?
AN
An 1 year 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.
LA
Larae 1 year 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!
RE
Reita 1 year 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.
CL
Claribel 1 year 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.
DE
Delfina 1 year 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.
GR
Gracia 1 year 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.
LE
Leslie 1 year 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!
HU
Huey 2 years ago
Thanks, I'll remember that for the exam.
MA
Maile 2 years ago
Then we can use echo command to append the pod name to the file.
KA
Katina 2 years ago
I believe we need to use kubectl top to get the CPU usage.
HU
Huey 3 years ago
Yeah, I'm not sure about the solution.
KA
Katina 3 years ago
I think this question is tricky.
VA
Vallie 3 years ago
We need to write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt
JU
Julene 3 years ago
After finding the pods, what do we do next?
PE
Penney 3 years ago
We can use the command 'kubectl top -l name=cpu-user -A'
AL
Alfreda 3 years ago
How do we find pods running high CPU workloads?
0/2000 characters

Save Cancel