What command streams logs from a specific build named jhost in real time?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

What command streams logs from a specific build named jhost in real time?

Explanation:
Streaming logs from a specific build in real time relies on following the log output of that Build resource. The oc logs command fetches the logs for a resource, and the -f option makes it continuous, printing new lines as the build progresses. By targeting the Build resource type with the exact build name (the one named jhost-1), you get a live feed of that build’s log output. The other options don’t provide a live log stream for an existing build: starting a build triggers a new one; setting triggers changes how builds are started or triggered; deleting resources removes them.

Streaming logs from a specific build in real time relies on following the log output of that Build resource. The oc logs command fetches the logs for a resource, and the -f option makes it continuous, printing new lines as the build progresses. By targeting the Build resource type with the exact build name (the one named jhost-1), you get a live feed of that build’s log output.

The other options don’t provide a live log stream for an existing build: starting a build triggers a new one; setting triggers changes how builds are started or triggered; deleting resources removes them.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy