U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 3 Question 94 Discussion

SIMULATIONCreate a deployment as follows:Name: nginx-randomExposed via a service nginx-randomEnsure that the service and pod are accessible via their respective DNS recordsThe container(s) within any pod(s) running as a part of this deployment should use the nginx ImageNext, use the utility nslookup to look up the DNS records of the service and pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.
A) See the solution below

Linux Foundation CKA Exam - Topic 3 Question 94 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 94
Topic #: 3
[All CKA Questions]

SIMULATION

Create a deployment as follows:

Name: nginx-random

Exposed via a service nginx-random

Ensure that the service and pod are accessible via their respective DNS records

The container(s) within any pod(s) running as a part of this deployment should use the nginx Image

Next, use the utility nslookup to look up the DNS records of the service and pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.

Show Suggested Answer Hide Answer
Suggested Answer: A

Solution:


Contribute your Thoughts:

0/2000 characters
Marvel
1 month ago
Not sure if the nginx image is the best choice for all scenarios, though.
upvoted 0 times
...
Tarra
1 month ago
Yup, that's how you ensure DNS records are checked properly!
upvoted 0 times
...
Iluminada
2 months ago
Wait, do we really need to write the output to those specific paths?
upvoted 0 times
...
Katie
2 months ago
Totally agree, nginx is super reliable for this!
upvoted 0 times
...
Graciela
2 months ago
Sounds straightforward, just need to set up the deployment and service.
upvoted 0 times
...
Pearlene
2 months ago
Wait, we're supposed to use nginx? I was planning on deploying a clown car instead.
upvoted 0 times
...
Jolanda
2 months ago
Hmm, the DNS record part could be tricky. I'll need to double-check my work on that.
upvoted 0 times
...
Bev
3 months ago
Piece of cake! I've done similar deployments before, so this should be a breeze.
upvoted 0 times
...
Barney
3 months ago
The requirement to use the nslookup utility is a nice touch. I'll make sure to capture the output as specified.
upvoted 0 times
...
Maile
3 months ago
This question is straightforward. I'm confident I can complete this task.
upvoted 0 times
...
Scarlet
3 months ago
I believe I have to use `nslookup` for both the service and pod, but I can't recall if I need to specify any flags or options when running the command.
upvoted 0 times
...
Carla
3 months ago
I'm a bit confused about the DNS records part. Do I need to check the service and pod names exactly as they are defined in the deployment?
upvoted 0 times
...
Meaghan
4 months ago
I practiced a similar question last week, and I think I need to use `kubectl expose` to create the service after the deployment.
upvoted 0 times
...
Annmarie
4 months ago
I think I remember how to create a deployment with the nginx image, but I'm not entirely sure about the exact syntax for the service.
upvoted 0 times
...
Marjory
4 months ago
Alright, let's do this. I'll start by creating the deployment and service, then use nslookup to verify the DNS records. Gotta make sure I get those file paths right though.
upvoted 0 times
...
Ariel
4 months ago
This seems like a good opportunity to demonstrate my Kubernetes skills. I'll make sure to double-check my work to ensure the deployment, service, and DNS records are all set up properly.
upvoted 0 times
...
Bette
5 months ago
Okay, I think I've got a plan. First I'll create the deployment and service, then use nslookup to check the DNS records and write the output to the specified files. Shouldn't be too difficult as long as I remember the right commands.
upvoted 0 times
...
Mignon
5 months ago
Hmm, I'm a bit unsure about how to set up the DNS records for the service and pod. I'll need to review my notes on Kubernetes DNS to make sure I do that part correctly.
upvoted 0 times
...
Dexter
5 months ago
This looks like a pretty straightforward deployment question. I'll start by creating the nginx-random deployment and service, making sure the container uses the nginx image.
upvoted 0 times
...

Save Cancel