exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pulsefire
4 months ago
Selected Answer: A
-p previous -c container
upvoted 3 times
...
dimoz
6 months, 1 week 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
6 months, 1 week 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
6 months, 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago