nerdexam
Linux_Foundation

CKAD · Question #2

CKAD Question #2: Real Exam Question with Answer & Explanation

Sign in or unlock CKAD to reveal the answer and full explanation for question #2. The question stem and answer options stay visible for context.

Submitted by andreas_gr· May 4, 2026Application Environment, Configuration and Security

Question

You are tasked to create a secret and consume the secret in a pod using environment variables as follow:
  • Create a secret named another-secret with a key/value pair; key1/value4
  • Start an nginx pod named nginx-secret using container image nginx, and add an environment variable exposing the value of the secret key key 1, using COOL_VARIABLE as the name for the environment variable inside the pod

Exhibits

CKAD question #2 exhibit 1
CKAD question #2 exhibit 2

Unlock CKAD to see the answer

You've previewed enough free CKAD questions. Unlock CKAD for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Kubernetes Secrets#Pod Configuration#Environment Variables
Full CKAD Practice