Search GimmeJob

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

How would you approach service discovery and DNS during a rolling deployment?

Answer

Start by treating configuration and infrastructure as versioned product behavior with observable dependencies. Focus on service discovery and DNS during a rolling deployment. 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 service discovery and DNS
  • checks configuration as code
  • covers rollout and rollback
  • measurable evidence and residual-risk statement

Practical example

During a rolling deployment, stale DNS caching on some clients kept routing traffic to pods that had already been terminated, causing a spike in connection errors. The approach was lowering the DNS TTL ahead of the deployment window and validating that clients actually honored it, rather than assuming a shorter TTL alone would fix the problem.

#infrastructure#devops#service-discovery-and-dns

Sources

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