Cyber Monday 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
2 months ago
I think we can use 'echo' command to write the pod name to the file.
upvoted 0 times
...
Kris
2 months 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
2 months ago
I believe the solution involves using 'kubectl top' command.
upvoted 0 times
...
Derick
3 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
3 months ago
I agree, it requires understanding of kubectl commands.
upvoted 0 times
...
Hassie
3 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
1 months ago
Once we have that information, we can write the pod name to the specified file.
upvoted 0 times
...
Adolph
2 months ago
True, let's use the kubectl command to find the pod consuming the most CPU.
upvoted 0 times
...
Amos
2 months ago
Haha, that would be nice. But we should probably focus on the task at hand.
upvoted 0 times
...
Carmela
2 months ago
I wish I could mine cryptocurrency on my work computer!
upvoted 0 times
...
...
Kris
3 months ago
I think this question is tricky.
upvoted 0 times
...
Stevie
3 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
2 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
3 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
3 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
3 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
3 months ago
Use 'kubectl top -l name=cpu-user -A' to find the pod with high CPU usage.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77