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 CKS Exam - Topic 1 Question 14 Discussion

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

Create a network policy named restrict-np to restrict to pod nginx-test running in namespace testing.

Only allow the following Pods to connect to Pod nginx-test:-

1. pods in the namespace default

2. pods with label version:v1 in any namespace.

Make sure to apply the network policy.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Tyra
5 months ago
I thought network policies only worked within the same namespace?
upvoted 0 times
...
Lenora
5 months ago
This is a classic use case for network policies!
upvoted 0 times
...
Lettie
5 months ago
Wait, can we really restrict by labels across namespaces?
upvoted 0 times
...
Annabelle
5 months ago
Agree, but what about pods in other namespaces?
upvoted 0 times
...
Georgiann
5 months ago
Sounds straightforward, just need to set the right selectors.
upvoted 0 times
...
Raymon
5 months ago
I believe we have to specify the pod selector for nginx-test and then set the ingress rules correctly. I hope I remember the syntax right!
upvoted 0 times
...
Loren
5 months ago
I’m a bit confused about how to apply the network policy after creating it. Do we just use `kubectl apply` with the YAML file?
upvoted 0 times
...
Iesha
5 months ago
This question feels similar to the practice we did on network policies last week. I think we need to use ingress rules to allow traffic from the specified pods.
upvoted 0 times
...
Veronika
5 months ago
I think I remember that we need to define the pod selector and namespace selector in the network policy, but I'm not entirely sure how to structure it.
upvoted 0 times
...
Flo
6 months ago
This seems like a straightforward question about the foundations of delivering great customer service. I'll carefully read through the options and choose the one that best fits the description in the prompt.
upvoted 0 times
...
Gladys
6 months ago
Hmm, I'm not sure about this. I'll have to review the regulations around transfers to high-risk countries.
upvoted 0 times
...
Paris
6 months ago
Ah, I see. Terminating and relaunching the instance could also be a good approach, as that would give us a fresh start. I'll have to weigh the pros and cons of each option.
upvoted 0 times
...
Queen
6 months ago
I'm not totally sure about this one. I know revenue bonds are different from general obligation bonds, but I'm not confident I fully understand the implications for repayment. I'll make an educated guess, but I may need to review this topic again before the exam.
upvoted 0 times
...

Save Cancel