OpenShift Interview Questions for Developer Workflows
Developer-focused OpenShift interview answers should trace a change from its source revision to the artifact and running application. Explain BuildConfig, Source-to-Image, image streams and deployment triggers through their actual responsibilities. A completed build is one delivery step, and a source push starts later steps only when the workflow is configured to do so.
Topic: OpenShift in IT Infrastructure · Interview preparation
Quick answer: Developer-focused OpenShift interview answers should trace a change from its source revision to the artifact and running application. Explain BuildConfig, Source-to-Image, image streams and deployment triggers through their actual responsibilities. A completed build is one delivery step, and a source push starts later steps only when the workflow is configured to do so. These original questions use a fictional invoice application with an unpromoted image. Product details follow OpenShift Container Platform 4.22 documentation; confirm the project's installed tools and supported delivery workflow.
Key takeaways
- Record source revision, builder input and resulting image identity.
- Separate BuildConfig settings from an individual Build execution.
- Explain configured triggers instead of promising automatic deployment.
- Keep build-time values separate from runtime configuration and secrets.
- Test the intended user behavior after artifact promotion.
Table of Contents
- What does Source-to-Image do?
- How does BuildConfig differ from a Build?
- Is an image stream a container registry?
- Does pushing source code always deploy a new application?
- Which values belong in a build, a ConfigMap or a Secret?
- What should a developer verify after the image is promoted?
- How would you answer the unpromoted invoice case?
- References
What does Source-to-Image do?
Source-to-Image combines application source with a builder image and its build scripts to produce an application container image. The OpenShift build strategy guide describes this process and its inputs. It does not make every language, dependency or application automatically compatible with every builder.
Interview question: what must be known to reproduce an invoice image? Identify the source revision, builder image identity, dependency inputs and relevant build settings. A branch name alone can change over time, so it is weak evidence of exactly what was built.
For the fictional invoice service, commit c17 produces image A, while commit c18 produces image B. These are invented short labels for discussion, not actual digests or measured builds. Keep the source-to-artifact relationship clear before discussing deployment.
How does BuildConfig differ from a Build?
A BuildConfig describes the intended build process and its relevant inputs, strategy, output and triggers. A Build is an execution with its own status and result. The BuildConfig guide explains how those configuration fields contribute to image production.
Question: a build fails while retrieving a dependency; should the developer restart the application? The failure happened before a replacement artifact was produced. Inspect the failed build stage, dependency source and permitted credentials before changing a running application.
Also distinguish source builds from other strategies. An answer that mentions S2I should identify the Source strategy and builder behavior. A different team's container build or pipeline may use another supported mechanism, so ask how their delivery system constructs and promotes artifacts.
| Delivery record | Invented invoice value | Question it answers |
|---|---|---|
| Source revision | c18 | Which application change was selected? |
| Build result | Build succeeded and produced image B | Was a replacement artifact produced? |
| Promotion record | Production still references image A | Was image B selected for production? |
| Running identity | Production reports image A | Which artifact is actually running? |
Is an image stream a container registry?
An image stream tracks image references and related metadata; it does not store the actual image layers. The image stream guide describes how tags can identify related images and notify configured consumers of changes.
A registry stores and serves the image content. A mutable tag is a convenient name, while a digest identifies particular content. In an interview, use both the human-readable release label and the immutable image identity when explaining promotion evidence.
Question: the invoice image stream points to image B, but production runs image A; is that impossible? No. The workload might reference a different image, await approval, or lack the relevant trigger. Trace the actual workload reference and configured delivery process instead of assuming every tag change causes a rollout.
Does pushing source code always deploy a new application?
A source push can cause a build when the relevant webhook or other trigger is configured and succeeds. A resulting image change can cause a deployment only under the applicable configured mechanism. Neither transition follows from Git alone.
The deployment guide distinguishes workload configuration and rollout behavior. If an older estate uses DeploymentConfig, identify it explicitly; its behavior should not be mixed with Kubernetes Deployment semantics.
In the invoice case, the team deliberately requires approval before production promotion. Image B exists, but image A remains the approved running version. The correct answer is to inspect the approval and promotion record. Rebuilding image B would not address that decision. Ask who owns approval and what evidence is needed to move the release forward.
Which values belong in a build, a ConfigMap or a Secret?
Build inputs influence the produced image. Runtime configuration influences how the deployed process behaves. A ConfigMap can supply non-confidential settings, while a Secret supports sensitive values under appropriate controls. These categories need an explicit design for the application.
The ConfigMap guide explains why an environment-variable value in an existing process does not update automatically. The Secret guidance warns that Base64 encoding does not provide confidentiality, and workload creation privileges can expose sensitive values indirectly.
Question: why avoid putting a production credential into a build-time environment value? It can be exposed through build output, resulting artifacts or other process behavior, depending on the build. Use the team's supported credential mechanism and review where the value can appear. Keep actual secrets out of interview samples and shared logs.
| Problem supplied by interviewer | Answer cue | Useful evidence |
|---|---|---|
| Source push produced no build | Verify trigger configuration and delivery | Webhook receipt and Build record |
| Build succeeded but version stayed old | Trace approval and workload image reference | Promotion record and running identity |
| New configuration appears unused | Identify consumption and reload behavior | Process configuration source and lifecycle |
| Application starts but Route fails | Check readiness, Service and route path | Relevant conditions and sanitized request outcome |
What should a developer verify after the image is promoted?
Check that the intended workload revision uses the expected image and configuration, that the required instances become available, and that a representative application request has the expected result. The probe guide explains why Running and Ready are different observations.
External access adds another path. The Route guide documents how a Route targets a Service and handles TLS according to its mode. A successful container startup does not establish DNS resolution, correct Service forwarding or the intended certificate behavior.
For invoice, the release acceptance request might read a supplied invoice fixture and confirm the expected formatting, without using customer data. Ask the application owner what behavior would reveal an incompatible change. A generic HTTP success can miss a release that returns the wrong result.
How would you answer the unpromoted invoice case?
Summarize the evidence in order: c18 produced image B; production's approval still selects image A; the running workload also reports A. The observed old version agrees with the current promotion decision. There is no evidence that rebuilding or restarting would be the correct response.
Ask whether image B has passed the agreed acceptance checks and who can approve promotion. If approval is complete but the workload remains on A, examine the transition from the promotion record to the workload reference. That changed fact moves the investigation to a different stage.
In an interview, explain which records you would retain without exposing source credentials or production data. A concise change-to-runtime account demonstrates developer delivery skills more clearly than naming every build tool in the platform catalog.
Related reading: OpenShift rollout interview practice; Services and storage interview questions; OpenShift certification practice.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0