CKS · Question #35
CKS Question #35: Real Exam Question with Answer & Explanation
Sign in or unlock CKS to reveal the answer and full explanation for question #35. The question stem and answer options stay visible for context.
Question
Retrieve the content of the existing secret named adam in the safe namespace. Store the username field in a file named /home/cert-masters/username.txt, and the password field in a file named /home/cert-masters/password.txt. 1. You must create both files; they don't exist yet. 2. Do not use/modify the created files in the following steps, create new temporary files if needed. Create a new secret named newsecret in the safe namespace, with the following content: Username: dbadmin Password: moresecurepas Finally, create a new Pod that has access to the secret newsecret via a volume: Namespace: safe Pod name: mysecret-pod Container name: db-container Image: redis Volume name: secret-vol Mount path: /etc/mysecret
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.