BlackFriday 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
30 days 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
1 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
1 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
2 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
2 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
2 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
2 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
25 days ago
Actually, the correct answer is option D.
upvoted 0 times
...
Denise
1 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
1 months ago
I'm pretty sure it's option C.
upvoted 0 times
...
Gary
1 months ago
No, I believe it's option B.
upvoted 0 times
...
Nobuko
1 months ago
I think the correct answer is option A.
upvoted 0 times
...
Mirta
1 months ago
I think the correct answer is option D.
upvoted 0 times
...
...

Save Cancel