Interview Prep/CI/CD/Testing and Quality Gates

What are smoke tests and sanity tests in a deployment pipeline?

IntermediateConceptTesting and Quality Gates
Answer

Smoke tests are a minimal set of checks right after deploy to confirm the application is up and its critical paths work (health endpoint returns 200, login works, a basic read and write succeeds). Sanity tests are a narrow check that a specific fix or feature behaves as intended. Failing smoke tests should trigger an automatic rollback.

curl -fsS --retry 10 --retry-delay 3 --retry-connrefused https://api.example.com/healthz
All CI/CD questions Roadmap: CI/CD fundamentals

More on Testing and Quality Gates