BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKA Topic 5 Question 69 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 69
Topic #: 5
[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:

Madelyn
28 days ago
I think we can use 'echo' command to write the pod name to the file.
upvoted 0 times
...
Kris
30 days ago
Yes, we need to find pods with high CPU usage and write the name of the pod to a file.
upvoted 0 times
...
Luisa
1 months ago
I believe the solution involves using 'kubectl top' command.
upvoted 0 times
...
Derick
2 months ago
Wait, we have to write the pod name to a file? I was just going to print it to the console. I hope the file has the proper permissions, or this is going to be a real headache.
upvoted 0 times
...
Madelyn
2 months ago
I agree, it requires understanding of kubectl commands.
upvoted 0 times
...
Hassie
2 months ago
This is a piece of cake! I bet the high CPU pod is running a cryptocurrency mining operation. *wink wink*
upvoted 0 times
Tammara
9 days ago
Once we have that information, we can write the pod name to the specified file.
upvoted 0 times
...
Adolph
12 days ago
True, let's use the kubectl command to find the pod consuming the most CPU.
upvoted 0 times
...
Amos
17 days ago
Haha, that would be nice. But we should probably focus on the task at hand.
upvoted 0 times
...
Carmela
1 months ago
I wish I could mine cryptocurrency on my work computer!
upvoted 0 times
...
...
Kris
2 months ago
I think this question is tricky.
upvoted 0 times
...
Stevie
2 months ago
The solution looks good, but I'm wondering if we need to handle any edge cases, like if there are no pods with the 'name=cpu-utilizer' label or if the target file doesn't exist.
upvoted 0 times
Ellsworth
1 months ago
We can also add a check to see if the target file /opt/KUTR00401/KUTR00401.txt exists before writing to it.
upvoted 0 times
...
Brendan
2 months ago
We should add some error handling to check if there are no pods with the 'name=cpu-utilizer' label.
upvoted 0 times
...
...
Glendora
2 months ago
This question seems straightforward. The key is to use the 'kubectl top' command to find the pod with the highest CPU usage from the pods with the 'name=cpu-utilizer' label, and then write the name of that pod to the specified file.
upvoted 0 times
Fannie
1 months ago
After finding the pod, use 'echo 'pod name' >> /opt/KUT00401/KUT00401.txt' to write the name to the file.
upvoted 0 times
...
Yaeko
2 months ago
Use 'kubectl top -l name=cpu-user -A' to find the pod with high CPU usage.
upvoted 0 times
...
...

Save Cancel