Search GimmeJob

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

How would you design a focused test strategy for container images when a dependency is reachable only intermittently?

Answer

Build the smallest useful model of the behavior by treating configuration and infrastructure as versioned product behavior with observable dependencies. Focus on container images when a dependency is reachable only intermittently. 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

A container's startup script fetched a config file from an internal service that was occasionally unreachable due to network policy propagation delays, causing random crash-loops right after deploys. The strategy was a startup test harness that randomly blocks the dependency for the first few seconds of container boot and asserts the container retries with backoff instead of exiting.

#infrastructure#devops#container-images

Sources

Docker documentationDocker · Containers, images, networks and reproducible environmentsGit referenceGit Project · Version control concepts and commands