18 OpenShift · oc CLI questions from the MLOps & Integration bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.create a Route that exposes the api Service externally
B.open a remote shell into the running Pod api-1
C.create an app from source using S2I with the python builder image
D.authenticate the oc client to an OpenShift API server
Answer + AI explanation with Pro
2. Which command will authenticate the oc client to an OpenShift API server?
Junior
A.oc login --token=… --server=…
B.oc rsh api-1
C.oc get routes
D.oc expose svc/api
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.oc login --token=… --server=… — list the Routes (public URLs) in the current project
B.oc login --token=… --server=… — create a Route that exposes the api Service externally
C.oc login --token=… --server=… — create an app from source using S2I with the python builder image
D.oc login --token=… --server=… — authenticate the oc client to an OpenShift API server
Answer + AI explanation with Pro
4. What does oc project ml-prod do?
Junior
A.list the Routes (public URLs) in the current project
B.create a Route that exposes the api Service externally
C.open a remote shell into the running Pod api-1
D.switch the current context to the ml-prod project
Answer + AI explanation with Pro
5. Which command will switch the current context to the ml-prod project?
Junior
A.oc new-app python:3.11~https://repo.git
B.oc rsh api-1
C.oc get routes
D.oc project ml-prod
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.oc project ml-prod — list the Routes (public URLs) in the current project
B.oc project ml-prod — create an app from source using S2I with the python builder image
C.oc project ml-prod — switch the current context to the ml-prod project
D.oc project ml-prod — open a remote shell into the running Pod api-1
Answer + AI explanation with Pro
7. What does oc get routes do?
Junior
A.authenticate the oc client to an OpenShift API server
B.list the Routes (public URLs) in the current project
C.switch the current context to the ml-prod project
D.create a Route that exposes the api Service externally
Answer + AI explanation with Pro
8. Which command will list the Routes (public URLs) in the current project?
Junior
A.oc rsh api-1
B.oc expose svc/api
C.oc get routes
D.oc new-app python:3.11~https://repo.git
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.oc get routes — open a remote shell into the running Pod api-1
B.oc get routes — create an app from source using S2I with the python builder image
C.oc get routes — list the Routes (public URLs) in the current project
D.oc get routes — create a Route that exposes the api Service externally
Answer + AI explanation with Pro
10. What does oc new-app python:3.11~https://repo.git do?
Mid
A.create a Route that exposes the api Service externally
B.create an app from source using S2I with the python builder image
C.authenticate the oc client to an OpenShift API server
D.open a remote shell into the running Pod api-1
Answer + AI explanation with Pro
11. Which command will create an app from source using S2I with the python builder image?
Mid
A.oc rsh api-1
B.oc get routes
C.oc new-app python:3.11~https://repo.git
D.oc project ml-prod
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.oc new-app python:3.11~https://repo.git — open a remote shell into the running Pod api-1
B.oc new-app python:3.11~https://repo.git — create a Route that exposes the api Service externally
C.oc new-app python:3.11~https://repo.git — list the Routes (public URLs) in the current project
D.oc new-app python:3.11~https://repo.git — create an app from source using S2I with the python builder image
Answer + AI explanation with Pro
13. What does oc expose svc/api do?
Mid
A.authenticate the oc client to an OpenShift API server
B.open a remote shell into the running Pod api-1
C.create an app from source using S2I with the python builder image
D.create a Route that exposes the api Service externally
Answer + AI explanation with Pro
14. Which command will create a Route that exposes the api Service externally?
Mid
A.oc new-app python:3.11~https://repo.git
B.oc project ml-prod
C.oc expose svc/api
D.oc get routes
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.oc expose svc/api — authenticate the oc client to an OpenShift API server
B.oc expose svc/api — create an app from source using S2I with the python builder image
C.oc expose svc/api — create a Route that exposes the api Service externally
D.oc expose svc/api — list the Routes (public URLs) in the current project
Answer + AI explanation with Pro
16. What does oc rsh api-1 do?
Mid
A.open a remote shell into the running Pod api-1
B.list the Routes (public URLs) in the current project
C.create an app from source using S2I with the python builder image
D.switch the current context to the ml-prod project
Answer + AI explanation with Pro
17. Which command will open a remote shell into the running Pod api-1?
Mid
A.oc expose svc/api
B.oc get routes
C.oc new-app python:3.11~https://repo.git
D.oc rsh api-1
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.oc rsh api-1 — authenticate the oc client to an OpenShift API server
B.oc rsh api-1 — open a remote shell into the running Pod api-1
C.oc rsh api-1 — create a Route that exposes the api Service externally
D.oc rsh api-1 — switch the current context to the ml-prod project
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every OpenShift · oc CLI question come with Pro.