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 12 discussion

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


Task -
Monitor the logs of pod foo and:
✑ Extract log lines corresponding to error file-not-found
✑ Write them to /opt/KUTR00101/foo

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 9 months, 1 week ago
kubectlt logs foo | grep error file-not-found > path/to/output
upvoted 6 times
8 months, 3 weeks ago
Need to add " " or it wont take whole string. kubectl logs foo | grep -i "error file-not-found" > path/to/output
upvoted 6 times
Most Recent 2 days, 18 hours ago
kubectl logs -f foo | grep "file-not-found" > /opt/KUTR00101/foo
upvoted 1 times
5 months, 2 weeks ago
kubectl logs foo | grep -i "error file-not-found" > /opt/KUTR00101/foo
upvoted 4 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