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]

SIMULATION -


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:



Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
GiorgioGss
Highly Voted 6 months, 1 week ago
kubectlt logs foo | grep error file-not-found > path/to/output
upvoted 5 times
mj98
5 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 4 times
...
...
fc146fc
Most Recent 2 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%)
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 ...