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 Exam CKAD Topic 10 Question 36 Discussion

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

Refer to Exhibit.

Set Configuration Context:

[student@node-1] $ | kubectl

Config use-context k8s

Task

You have rolled out a new pod to your infrastructure and now you need to allow it to communicate with the web and storage pods but nothing else. Given the running pod kdsn00201 -newpod edit it to use a network policy that will allow it to send and receive traffic only to and from the web and storage pods.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Dewitt
1 months ago
Ah, the joys of Kubernetes networking. I'm glad they're testing this, as it's a critical skill for working with Kubernetes in the real world. Time to put my network policy knowledge to the test!
upvoted 0 times
Larae
9 days ago
Don't forget to enable the NetworkPolicy feature on your Kubernetes cluster before applying the network policy.
upvoted 0 times
...
Sylvie
21 days ago
Creating a network policy yaml file with the correct rules will help restrict traffic to specific pods.
upvoted 0 times
...
Maryln
26 days ago
I agree, understanding network policies in Kubernetes is essential for managing communication between pods.
upvoted 0 times
...
...
Juan
1 months ago
Haha, I bet the exam writers had fun coming up with this one. Gotta love the subtle humor in the 'kdsn00201-newpod' pod name. Anyway, I'm confident I can nail this network policy question.
upvoted 0 times
...
Dorothy
2 months ago
So, we should define the rules in the network policy yaml file and apply it to the cluster to restrict the pod's communication.
upvoted 0 times
...
Jerry
2 months ago
Hmm, I think I got this. The key is to create a network policy that allows the new pod to communicate with the web and storage pods, but nothing else. I'll make sure to double-check the label matching in the policy.
upvoted 0 times
Becky
6 days ago
Remember to enable the NetworkPolicy feature on your Kubernetes cluster if it's not available by default.
upvoted 0 times
...
Willard
20 days ago
User 2: Yes, make sure the labels in the policy match the labels of the web and storage pods correctly.
upvoted 0 times
...
Lauran
22 days ago
Apply the network policy to the cluster using the kubectl apply command.
upvoted 0 times
...
Tonette
23 days ago
Check the label matching in the policy to ensure it only communicates with the web and storage pods.
upvoted 0 times
...
Ronnie
28 days ago
Make sure to create a network policy that specifies the allowed traffic for the new pod.
upvoted 0 times
...
Belen
1 months ago
User 1: I understand, we need to create a network policy for the new pod to communicate only with web and storage pods.
upvoted 0 times
...
...
Eva
2 months ago
Wow, this is a great question! The network policy concept is really important to understand for securing Kubernetes environments. I like how the question provides the necessary context and images to guide the answer.
upvoted 0 times
...
Latosha
2 months ago
Yes, we need to create a network policy that allows traffic only to and from the web and storage pods.
upvoted 0 times
...
Dorothy
2 months ago
I think the question is about setting up a network policy for a new pod to communicate only with specific pods.
upvoted 0 times
...

Save Cancel