Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKA Topic 6 Question 40 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 40
Topic #: 6
[All CKA Questions]

List pod logs named ''frontend'' and search for the pattern ''started'' and write it to a file ''/opt/error-logs''

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Yan
2 days ago
Is it just me, or does 'frontend' sound like the name of a superhero sidekick? 'The Mighty Frontend, defender of logs and vanquisher of 'started' patterns!'
upvoted 0 times
...
Justine
9 days ago
Finally, a question that doesn't require me to memorize a thousand different command options. I can totally do this in my sleep!
upvoted 0 times
...
Bulah
10 days ago
It's kubectl logs frontend | grep -i ''started'' > /opt/error-logs.
upvoted 0 times
...
Tamala
12 days ago
What's the command again?
upvoted 0 times
...
Tyisha
13 days ago
Nice, this is exactly what I needed to troubleshoot my frontend issues. I'm sure this will help me identify any startup problems.
upvoted 0 times
...
Gwen
19 days ago
This is a straightforward command to get the logs for the 'frontend' pod and search for the 'started' pattern, then write the output to the '/opt/error-logs' file. Easy peasy!
upvoted 0 times
Rex
5 days ago
Got it, so I just need to run 'kubectl logs frontend | grep -i 'started' > /opt/error-logs'
upvoted 0 times
...
...
Bulah
24 days ago
I agree, but I remember the command to do that.
upvoted 0 times
...
Tamala
26 days ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77