Which command links a secret to the builder service account?

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

Which command links a secret to the builder service account?

Explanation:
Linking a secret to a service account is how you grant pods running under that account access to the secret’s data. In OpenShift, the builder service account is used by build pods, so attaching a secret to the builder SA allows those builds to use credentials stored in the secret (for example, to pull from a private image registry). The command shown uses the correct pattern: oc secrets link <serviceaccount> <secret-name>. By applying it to the builder service account and the secret, you enable the build process to access the secret as needed. The other commands do unrelated tasks—watching build logs, deleting resources, or changing build triggers—so they don’t accomplish linking a secret to a service account.

Linking a secret to a service account is how you grant pods running under that account access to the secret’s data. In OpenShift, the builder service account is used by build pods, so attaching a secret to the builder SA allows those builds to use credentials stored in the secret (for example, to pull from a private image registry).

The command shown uses the correct pattern: oc secrets link . By applying it to the builder service account and the secret, you enable the build process to access the secret as needed. The other commands do unrelated tasks—watching build logs, deleting resources, or changing build triggers—so they don’t accomplish linking a secret to a service account.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy