Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKAD Exam - Topic 1 Question 42 Discussion

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

Refer to Exhibit.

Task:

Create a Deployment named expose in the existing ckad00014 namespace running 6 replicas of a Pod. Specify a single container using the ifccncf/nginx: 1.13.7 image

Add an environment variable named NGINX_PORT with the value 8001 to the container then expose port 8001

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Gail
3 months ago
Exposing port 8001? Seems a bit unconventional, but okay.
upvoted 0 times
...
Nada
3 months ago
Don't forget to set the NGINX_PORT env variable to 8001!
upvoted 0 times
...
Adelle
4 months ago
Wait, why are we using that specific image version? Seems outdated.
upvoted 0 times
...
Shawna
4 months ago
Totally agree, NGINX is a solid choice for this!
upvoted 0 times
...
Charlena
4 months ago
Just set up a Deployment named expose with 6 replicas.
upvoted 0 times
...
Davida
4 months ago
I remember we need to use `--env` to set the environment variable, but I’m not clear on how to expose the port correctly in the deployment.
upvoted 0 times
...
Donette
4 months ago
I’m a bit confused about the replicas part. Do we just add `--replicas=6` to the command? I hope I’m recalling that correctly.
upvoted 0 times
...
Douglass
5 months ago
This question feels familiar; I practiced something similar where we had to expose a service. I think we need to specify the port in the deployment YAML.
upvoted 0 times
...
Gayla
5 months ago
I think I remember that we need to use the `kubectl create deployment` command for this, but I'm not entirely sure about the syntax for adding the environment variable.
upvoted 0 times
...
Sang
5 months ago
Wait, do I need to create the namespace first? I want to make sure I have the right setup before I start writing the YAML.
upvoted 0 times
...
Layla
5 months ago
No problem, I've done this kind of thing before. I'll just run through it step-by-step and I'm confident I can get it done.
upvoted 0 times
...
Gerardo
5 months ago
Hmm, I'm a bit unsure about the exact syntax for the Deployment and environment variable. I'll need to double-check the documentation to make sure I get it right.
upvoted 0 times
...
Cecily
5 months ago
Okay, this looks straightforward. I'll start by creating the Deployment with 6 replicas, then add the environment variable and expose the port.
upvoted 0 times
...
Francesco
6 months ago
I've got a good feeling about this one. The App Launchpad provides both pre-packaged and custom application catalogs, and allows service providers to pre-configure sizing templates. I think option C is the correct answer.
upvoted 0 times
...
Kenda
6 months ago
Okay, I've got this. The correct answers are C and E - implementing S3 default encryption and S3 bucket policies to deny unencrypted uploads. Those are the two most direct ways to ensure that any objects uploaded to the S3 bucket are encrypted. The other choices don't seem to directly address the encryption requirement.
upvoted 0 times
...
Zona
10 months ago
I bet the person who wrote this question has a thing for the number 8001. Maybe they're a huge fan of Star Trek?
upvoted 0 times
...
Nikita
11 months ago
Hmm, I wonder if the exam is testing my attention to detail. I better double-check that image name!
upvoted 0 times
Carmen
9 months ago
User3: It's always good to pay attention to the specifics, especially in exams.
upvoted 0 times
...
Shawna
9 months ago
User2: Thanks for the reminder, I'll be extra careful with that detail.
upvoted 0 times
...
Domitila
9 months ago
User1: Make sure to double-check the image name before creating the Deployment.
upvoted 0 times
...
...
Terina
11 months ago
Wait, did they really misspell the image name as 'ifccncf/nginx'? I hope that's not a trick question...
upvoted 0 times
Hoa
9 months ago
Agreed, let's proceed with the deployment and see if it works despite the typo.
upvoted 0 times
...
Elouise
10 months ago
I think we should still follow the instructions and use 'ifccncf/nginx:1.13.7' as specified.
upvoted 0 times
...
Keena
10 months ago
Yeah, it does look like a typo. Hopefully it doesn't affect the solution.
upvoted 0 times
...
Brett
11 months ago
I noticed that too! It seems like a typo in the image name.
upvoted 0 times
...
...
Staci
11 months ago
Ah, the classic 'create a Deployment' question. I got this! Time to put my Kubernetes skills to the test.
upvoted 0 times
...
Lovetta
11 months ago
And don't forget to expose port 8001. That's important for the solution.
upvoted 0 times
...
Sherron
11 months ago
This seems straightforward enough. I just need to create a Deployment with 6 replicas, use the correct image, and add the environment variable NGINX_PORT with the value 8001.
upvoted 0 times
Raymon
10 months ago
User 2: Don't forget to expose port 8001 after adding the environment variable.
upvoted 0 times
...
Justine
11 months ago
User 1: Make sure to specify the correct image when creating the Deployment.
upvoted 0 times
...
...
Charolette
11 months ago
Yes, we need to use the ifccncf/nginx:1.13.7 image and add an environment variable named NGINX_PORT with the value 8001.
upvoted 0 times
...
Lovetta
11 months ago
I think the question is asking us to create a Deployment with 6 replicas of a Pod.
upvoted 0 times
...

Save Cancel