Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKAD Topic 1 Question 51 Discussion

Actual exam question for Linux Foundation's CKAD exam
Question #: 51
Topic #: 1
[All CKAD Questions]

Refer to Exhibit.

Context

You are tasked to create a secret and consume the secret in a pod using environment variables as follow:

Task

* 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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Angelyn
2 months ago
I agree. We have to expose the value of the secret key key1 using COOL_VARIABLE as the environment variable name inside the pod.
upvoted 0 times
...
Wilda
2 months ago
Yes, we need to create a secret named another-secret with key1/value4 and use it in an nginx pod named nginx-secret.
upvoted 0 times
...
Marisha
3 months ago
I'm just happy they didn't ask us to use Kubernetes to launch a nuclear missile. That would be a real challenge!
upvoted 0 times
...
Willie
3 months ago
Haha, I bet the person who wrote this question is a secret agent in disguise. 'Another-secret'? Come on, that's straight out of a spy movie!
upvoted 0 times
...
Angelyn
3 months ago
I think the question is asking us to create a secret and use it in a pod with environment variables.
upvoted 0 times
...
Jaclyn
3 months ago
I agree with Mabel, option D is the way to go. Exposing the secret value as an environment variable is a good security practice.
upvoted 0 times
...
Mabel
3 months ago
The correct answer is option D. The task clearly states to create a secret named 'another-secret' with the key/value pair 'key1/value4' and then use that secret as an environment variable in the nginx pod. Option D fulfills all the requirements.
upvoted 0 times
Francoise
2 months ago
Actually, the correct answer is option D.
upvoted 0 times
...
Denise
2 months ago
Yes, I agree. Option D creates the secret with the correct key/value pair and uses it as an environment variable in the nginx pod.
upvoted 0 times
...
Haydee
2 months ago
I'm pretty sure it's option C.
upvoted 0 times
...
Gary
2 months ago
No, I believe it's option B.
upvoted 0 times
...
Nobuko
3 months ago
I think the correct answer is option A.
upvoted 0 times
...
Mirta
3 months ago
I think the correct answer is option D.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77