nerdexam
Linux_Foundation

CKS · Question #16

a. Retrieve the content of the existing secret named default-token-xxxxx in the testing namespace. Store the value of the token in the token.txt. b. Create a new secret named test-db-secret in the DB

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

Submitted by amina.ke· May 4, 2026Cluster Hardening

Question

a. Retrieve the content of the existing secret named default-token-xxxxx in the testing namespace. Store the value of the token in the token.txt. b. Create a new secret named test-db-secret in the DB namespace with the following content: username: mysql password: password@123 Create the Pod name test-db-pod of image nginx in the namespace db that can access test-db-secret via a volume at path /etc/mysql-credentials

Unlock CKS to see the answer

You've previewed enough free CKS questions. Unlock CKS 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#Secret Volume Mounts#kubectl CLI
Full CKS Practice