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 KCNA topic 1 question 97 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 97
Topic #: 1
[All KCNA Questions]

Which of the following will view the snapshot of previously terminated ruby container logs from Pod web-1?

  • A. kubectl logs -p -c ruby web-1
  • B. kubectl logs -c ruby web-1
  • C. kubectl logs -p ruby web-1
  • D. kubectl logs -p -c web-1 ruby
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
pulsefire
2 months, 2 weeks ago
Selected Answer: A
-p previous -c container
upvoted 1 times
...
dimoz
4 months, 2 weeks ago
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs: -- Return snapshot of previous terminated ruby container logs from pod web-1 kubectl logs -p -c ruby web-1
upvoted 1 times
...
ncsiki
4 months, 2 weeks ago
Return snapshot of previous terminated ruby container logs from pod web-1 kubectl logs -p -c ruby web-1 https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_logs/
upvoted 1 times
...
PinkAndBlack
4 months, 3 weeks ago
The correct syntax should be the following: kubectl logs web-1 -c ruby Check https://kubernetes.io/docs/reference/kubectl/quick-reference/#interacting-with-running-pods
upvoted 1 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 ...