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]

SIMULATION -


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:

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
dirkdirkdirk
Highly Voted 1 year, 1 month 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
mchahed
1 year, 1 month ago
I got the same feeling here :D
upvoted 2 times
...
...
donid323
Most Recent 9 months, 2 weeks ago
default or all namespaces ?
upvoted 1 times
...
Bensaid
10 months, 2 weeks ago
kubectl top pod -l name=overloaded-cpu --sort-by=cpu
upvoted 4 times
...
Chinensis
1 year, 2 months ago
I think the answer should be: overloaded-cpu-98b9se
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
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.

SaveCancel
Loading ...