exam questions

Exam CKA All Questions

View all questions & answers for the CKA exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GiorgioGss
Highly Voted 1 year, 2 months ago
kubectlt logs foo | grep error file-not-found > path/to/output
upvoted 7 times
mj98
1 year, 1 month ago
Need to add " " or it wont take whole string. kubectl logs foo | grep -i "error file-not-found" > path/to/output
upvoted 9 times
...
...
Archanakaviya
Most Recent 2 months, 3 weeks ago
kubectl logs foo | grep 'file-not-found' > /opt/KUTR00101/foo
upvoted 1 times
...
[Removed]
5 months ago
kubectl logs -f foo | grep "file-not-found" > /opt/KUTR00101/foo
upvoted 1 times
...
fc146fc
10 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago