Environment Variables — Certified Kubernetes App Developer (CKAD) Practice Questions
Environment variables are the primary mechanism for passing runtime configuration into a container in Kubernetes, and the CKAD exam tests several ways to define them. Candidates must know how to set literal values directly in the container spec, as well as how to source values from ConfigMaps and Secrets using valueFrom with configMapKeyRef or secretKeyRef. The exam also covers injecting all keys from a ConfigMap or Secret as environment variables at once using envFrom. Because many applications read their configuration entirely from the environment, this topic appears in a wide range of exam tasks involving database connections, feature flags, and service endpoints.
Free questions on environment variables
How do you specify environment variables in a Pod manifest?
Free question · medium · full answer + explanation
More environment variables questions in the full bank
- How do you use ConfigMap data as environment variables for ALL keys in the ConfigMap? Unlock answer & explanation →
- A pod uses a ConfigMap for application configuration. If you accidentally delete the ConfigMap, what happens to running pods? Unlock answer & explanation →
- What is the relationship between ConfigMaps and environment variables? Unlock answer & explanation →