Interview Prep/CI/CD/Deployment Strategies and GitOps

Feature flags vs canary: when would you use each?

IntermediateScenarioDeployment Strategies and GitOps
Answer

Situation read → Decouple deploy from release.

What I'd do →

  1. Deploy code dark behind a flag (OpenFeature with LaunchDarkly, Unleash or Flagsmith).
  2. Enable gradually by user segment, with a kill switch.
  3. Use canary to validate the binary/infrastructure and flags to validate the feature.

Why → Flags allow instant disable without a redeploy.

Interview tip → Clean up stale flags or they become tech debt.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps