Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam CKA topic 1 question 14 discussion

Actual exam question from CNCF's CKA
Question #: 14
Topic #: 1
[All CKA Questions]


Task -
From the pod label name=overloaded-cpu, 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:


Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Highly Voted 1 year, 5 months ago
Why would they add "(which already exists)"? It just confuses matters. In other questions they do not add this qualification. Makes me wonder if that file is empty? Maybe first # cat /opt/KUTR00401/KUTR00401.txt to make sure it's empty. If it's not, # echo "name-of-top-cpu-pod" >> /opt/KUTR00401/KUTR00401.txt Instead of # echo "name-of-top-cpu-pod" > /opt/KUTR00401/KUTR00401.txt Or am I overthinking here?
upvoted 6 times
1 year, 5 months ago
I got the same feeling here :D
upvoted 2 times
Highly Voted 1 year, 1 month ago
kubectl top pod -l name=overloaded-cpu --sort-by=cpu
upvoted 5 times
Most Recent 2 days, 18 hours ago
kubectl top pod -l name=overloaded-cpu --sort-by=cpu | awk 'NR==2 {print $1}' > /opt/KUTR00401/KUTR00401.txt
upvoted 1 times
3 months ago
Frankly speaking, why bother typing the pod name with this single liner: # Dry-run k top po -l name=overloaded-cpu --sort-by=cpu -A --no-headers | head -n 1 | awk '{print $2}' # Exec k top po -l name=overloaded-cpu --sort-by=cpu -A --no-headers | head -n 1 | awk '{print $2}' >> /opt/KUTR00401/KURT00401.txt
upvoted 1 times
1 year ago
default or all namespaces ?
upvoted 1 times
1 year, 5 months ago
I think the answer should be: overloaded-cpu-98b9se
upvoted 2 times
Community vote distribution
A (35%)
C (25%)
B (20%)
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.

Loading ...
ex Want to SAVE BIG on Certification Exam Prep?
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in