0
0
Kubernetesdevops~5 mins

Feature flags in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a feature flag in Kubernetes?
A feature flag is a way to turn features on or off in your application without changing the code. In Kubernetes, it helps control new features safely by toggling them using configuration.
Click to reveal answer
beginner
How can ConfigMaps be used for feature flags in Kubernetes?
ConfigMaps store configuration data as key-value pairs. You can use them to hold feature flag values and mount them into pods so your app reads the flags and enables or disables features accordingly.
Click to reveal answer
beginner
What is the benefit of using feature flags in Kubernetes deployments?
Feature flags let you release new features gradually, test them in production, and quickly disable them if problems occur, all without redeploying your app.
Click to reveal answer
intermediate
Which Kubernetes resource is commonly used to manage feature flags dynamically?
ConfigMaps are commonly used because they can be updated without restarting pods, allowing feature flags to change dynamically.
Click to reveal answer
intermediate
How does a pod access feature flags stored in a ConfigMap?
A pod can mount the ConfigMap as a volume or use environment variables from the ConfigMap. The application inside the pod reads these values to decide which features to enable.
Click to reveal answer
What Kubernetes object is best suited to store feature flag settings?
AService
BPod
CDeployment
DConfigMap
How can feature flags be updated without redeploying an application in Kubernetes?
ABy restarting the pod manually
BBy updating the ConfigMap and letting pods reload it
CBy changing the container image
DBy deleting the deployment
What is a key advantage of using feature flags in production?
AEnable or disable features instantly without code changes
BIncrease pod memory automatically
CScale the number of pods
DChange container images
Which method can a pod use to access feature flags from a ConfigMap?
AAccess Deployment specs
BUse a Service to fetch flags
CMount ConfigMap as a volume or use environment variables
DRead from a Secret
Why is it useful to use feature flags during gradual rollouts?
ATo control which users see new features safely
BTo increase CPU limits
CTo change pod labels
DTo update container images
Explain how feature flags work in Kubernetes and why they are useful.
Think about how you can turn features on or off without changing code.
You got /3 concepts.
    Describe the steps to implement a feature flag using a ConfigMap in Kubernetes.
    Focus on ConfigMap creation, pod access, and dynamic updates.
    You got /4 concepts.