Score: 5%

Task
Monitor the logs of pod bar and:
* Extract log lines corresponding to error file-not-found
* Write them to /opt/KUTR00101/bar
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
CR
Cristal
12 months ago
Looks good to me, but I’d test it first before running in production.
AL
Alverta
1 year ago
This is a classic mistake, always double-check your grep patterns!
CA
Carolann
1 year ago
Surprised they didn't mention the need for proper permissions on /opt/KUTR00101/bar.
RO
Rodney
1 year ago
Totally agree, it should be 'file-not-found' instead of 'unable-to-access-website'.
AB
Abraham
1 year ago
That command won't catch 'file-not-found' errors.
WE
Wei
1 year ago
I think the command should be `grep 'file-not-found'`, but I’m not completely confident. I hope I don't mix it up with the other error messages we studied.
NO
Novella
1 year ago
I practiced something similar where we had to filter logs, but I feel like I might confuse the error message. Was it 'file-not-found' or something else?
JE
Jeannetta
1 year ago
I think I remember that we need to use `kubectl logs` to get the logs, but I'm not sure about the exact error message to grep for.
FE
Felicitas
1 year ago
I definitely recall writing logs to a specific path, but I can't remember if we need to use `>` or `>>` for appending.
AL
Alonzo
1 year ago
Based on my experience designing flows, I think the best approach is to use the data pill to bring in the necessary record data. Option D seems like the right choice here.
LA
Lavelle
1 year ago
Wait, I'm confused. Isn't the patient's name one of the most important things that has to be on the label? I'm not sure about this one, I'll have to re-read the question carefully.