Advanced Topic 40 of 50 DevOps & Tooling
Feature Flags
Toggling features at runtime without redeploying.
How it works
A feature flag is a condition in code that turns behavior on or off at runtime without a new deployment. Flags can be simple booleans or rules targeting users, percentages, regions or plans, evaluated by a service such as LaunchDarkly, Unleash or a config file. They separate deploying code from releasing it, enabling gradual rollouts, A/B experiments, kill switches for risky features and testing in production with internal users. Flags fall into release, experiment, operational and permission types, each with a different lifespan.
Where it is used
Teams use them to ship incomplete work safely behind a flag, roll out to one percent of users first and disable a failing feature instantly.
Common pitfall
Old flags left in code create dead branches and combinations nobody tests, and flag service outages can break evaluation. Give each flag an owner and expiry, define safe defaults and remove flags after rollout.
Where it fits in the course
Feature Flags is topic 40 of 50 in DevOps & Tooling, rated Advanced. It follows GitOps. The next topic is Trunk-Based Development.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the DevOps & Tooling quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the DevOps & Tooling quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Feature Flags?
Where do people use Feature Flags?
What is the most common mistake with Feature Flags?
What should I learn before this topic?
How can I practice it?
Is Feature Flags hard to learn?
How long does it take to learn Feature Flags?
Which topics are related to Feature Flags?
What should I study after Feature Flags?
Related topics
- GitOps (DevOps & Tooling)
- Trunk-Based Development (DevOps & Tooling)
- Secrets Management (DevOps & Tooling)
- Monorepos (DevOps & Tooling)
- Feature Engineering (AI & Machine Learning)
- Feature Detection (Graphics, Vision & Media)