Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 20 of 85
Free Preview · 85 of 282 · questions 1–85 of 282 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The correct kubectl command to display logs in real time from a Kubernetes pod is by using the -f or --follow flag with kubectl logs.
The -f or --follow flag is used to stream the logs in real time. If you want to specify a particular container within a pod, you can use the -c flag:
The -f or --follow flag is used to stream logs in real time.