Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
InfrastructureLeadOccasionalAutomation

What would you automate for container images after configuration drift is discovered, and what would you leave manual?

Answer

Before automating, begin by treating configuration and infrastructure as versioned product behavior with observable dependencies. Focus on container images after configuration drift is discovered. Use declared configuration, health signals and known-good environment baselines as the oracle. Cover startup, connectivity, permissions, capacity, rollout and rollback. Keep data and dependencies controlled enough to reproduce failures. Release only when the environment is reproducible and failure behavior is diagnosable before user impact.

Strong answer includes

  • explicit risk and test oracle for container images
  • checks configuration as code
  • covers rollout and rollback
  • measurable evidence and residual-risk statement

Practical example

After discovering that a production image had a manually patched environment variable that didn't exist in the image's Dockerfile or manifest, the team automated a nightly job that diffs the running configuration against the declared source of truth and alerts on drift. Deciding whether a detected drift was an intentional emergency fix or a genuine mistake was left to a human reviewing the alert.

#infrastructure#devops#container-images

Sources

Docker documentationDocker · Containers, images, networks and reproducible environmentsGit referenceGit Project · Version control concepts and commandsConfigure liveness, readiness and startup probesKubernetes · Service health, traffic readiness, recovery and probe failure modes