0
0
Microservicessystem_design~5 mins

Feature flags in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a feature flag in software development?
A feature flag is a toggle that allows developers to turn features on or off without deploying new code. It helps control feature rollout and testing in production.
Click to reveal answer
intermediate
How do feature flags help in microservices architecture?
Feature flags enable independent control of features in different microservices, allowing gradual rollout, A/B testing, and quick rollback without redeploying services.
Click to reveal answer
intermediate
What are common types of feature flags?
Common types include:<br>1. Release flags - control new features rollout.<br>2. Experiment flags - for A/B testing.<br>3. Ops flags - for operational control like disabling features during outages.
Click to reveal answer
advanced
What is a key challenge when using feature flags in distributed systems?
Ensuring consistent flag state across all microservices and avoiding stale or conflicting flag values is a key challenge in distributed systems.
Click to reveal answer
beginner
Why should feature flags be removed after use?
Old feature flags add complexity and technical debt. Removing them keeps code clean and reduces risk of unexpected behavior.
Click to reveal answer
What is the main purpose of a feature flag?
ATo manage database connections
BTo store user data securely
CTo monitor system performance
DTo toggle features on or off without redeploying code
Which type of feature flag is used for A/B testing?
ARelease flag
BOps flag
CExperiment flag
DSecurity flag
What is a common risk of not removing old feature flags?
AIncreased technical debt
BReduced code complexity
CImproved system performance
DBetter feature rollout
In microservices, what is a challenge when using feature flags?
AEnsuring consistent flag state across services
BWriting SQL queries
CManaging user authentication
DScaling database storage
Which feature flag type helps disable features during outages?
ARelease flag
BOps flag
CExperiment flag
DSecurity flag
Explain how feature flags improve deployment and testing in a microservices environment.
Think about how toggling features helps avoid full redeployments.
You got /5 concepts.
    Describe best practices for managing feature flags to avoid technical debt.
    Consider how old flags affect code quality.
    You got /5 concepts.