What is the difference between a feature flag and an experiment, and how are they related?

Quick Overview

Asks you to explain how a feature flag differs from an experiment and how the two work together when shipping product changes. It tests whether you understand controlled rollouts, randomized assignment and what it takes to measure a feature's causal impact.

What is the difference between a feature flag and an experiment, and how are they related?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: easy

Interview Round: Other

What is the difference between a feature flag and an experiment, and how are they related? ```hint A rollout is not a test Ask whether ramping a feature from 5% to 100% of users tells you if the feature worked, and what the rollout would need to add before it could. ``` ### What a Strong Answer Covers - What a feature flag is and what it is used for, such as gradual rollout, kill switches and separating deploy from release - What an experiment requires: a hypothesis, random assignment, metrics and statistical analysis - How experiments are usually built on flags, and why a flag can exist without an experiment - Why a targeted flag or a gradual rollout does not measure impact by itself ### Follow-up Questions - Your team ramped a feature from 5% to 100% over two weeks and now wants to know its impact. What can you learn from that data, and what would you do differently next time? - How would you make flag-based assignment sticky and consistent across sessions, devices and services? - Where should exposure be logged for an experiment that runs on a flag, and why? - How do you keep old flags from piling up in the codebase?

Overview: Asks you to explain how a feature flag differs from an experiment and how the two work together when shipping product changes. It tests whether you understand controlled rollouts, randomized assignment and what it takes to measure a feature's causal impact.

General logo
General
Nov 24, 2026
easyData ScientistOtherAnalytics & Experimentation
0
0

What is the difference between a feature flag and an experiment, and how are they related?

What a Strong Answer Covers Guidance

  • What a feature flag is and what it is used for, such as gradual rollout, kill switches and separating deploy from release
  • What an experiment requires: a hypothesis, random assignment, metrics and statistical analysis
  • How experiments are usually built on flags, and why a flag can exist without an experiment
  • Why a targeted flag or a gradual rollout does not measure impact by itself

Follow-up Questions Guidance

  • Your team ramped a feature from 5% to 100% over two weeks and now wants to know its impact. What can you learn from that data, and what would you do differently next time?
  • How would you make flag-based assignment sticky and consistent across sessions, devices and services?
  • Where should exposure be logged for an experiment that runs on a flag, and why?
  • How do you keep old flags from piling up in the codebase?