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.

Aug 20, 2024 - 10:25
Updated: 
101.3k

OpenShift in IT Infrastructure · Interview preparation

OpenShift Interview Questions for Developer Workflows

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?

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 recordInvented invoice valueQuestion it answers
Source revisionc18Which application change was selected?
Build resultBuild succeeded and produced image BWas a replacement artifact produced?
Promotion recordProduction still references image AWas image B selected for production?
Running identityProduction reports image AWhich 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 interviewerAnswer cueUseful evidence
Source push produced no buildVerify trigger configuration and deliveryWebhook receipt and Build record
Build succeeded but version stayed oldTrace approval and workload image referencePromotion record and running identity
New configuration appears unusedIdentify consumption and reload behaviorProcess configuration source and lifecycle
Application starts but Route failsCheck readiness, Service and route pathRelevant 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

A source build depends on a suitable builder image, scripts, dependencies and application conventions, so compatibility needs to be checked.

BuildConfig describes a build process and its settings, while a Build records an individual execution and its resulting state.

An image stream tracks references and metadata for related images, while a container registry stores and serves the actual image content.

Source, build, image promotion and deployment transitions depend on configured triggers and approvals, which must be examined for the specific workflow.

The source revision alone omits builder and dependency inputs, while the resulting image identity connects the artifact to the deployed workload.

Existing environment-variable values are not automatically refreshed, so review the consumption method and the application lifecycle required for that change.

A generic success response can omit the business behavior that changed, so define a representative request and its expected result.

These are original developer-workflow practice questions and fictional records, without claims of access to a particular employer question bank.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Anjali

I am passionate about technology, invention and big challenging tasks on my to- do list. In terms of the work I am doing also at Bunnyshell, I am most passionate about the technologies that we are using., I'm devoted to delivering content that not only informs but also inspires. Whether you need in- depth analysis pieces, educational attendants, or study- provoking opinion pieces, I draft content that resonates with tech suckers and professionals likewise.