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 service discovery and DNS under constrained CPU and memory?

Answer

Build the smallest useful model of the behavior by treating configuration and infrastructure as versioned product behavior with observable dependencies. Focus on service discovery and DNS under constrained CPU and memory. 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

Under CPU throttling, a sidecar DNS resolver started queuing lookups and timing out client requests that used to succeed, because it never got scheduled enough CPU time to keep up. The strategy combined a load test that throttles the resolver's CPU quota with an assertion on lookup latency percentiles, catching the degradation before it reached production.

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

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