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

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

Context

A default-deny NetworkPolicy avoids to accidentally expose a Pod in a namespace that doesn't have any other NetworkPolicy defined.

Task

Create a new default-deny NetworkPolicy named defaultdeny in the namespace testing for all traffic of type Egress.

The new NetworkPolicy must deny all Egress traffic in the namespace testing.

Apply the newly created default-deny NetworkPolicy to all Pods running in namespace testing.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Amira
5 months ago
That makes sense, denying all Egress traffic ensures no accidental exposure of Pods.
upvoted 0 times
...
Sabra
6 months ago
I think we need to create a new policy named defaultdeny and apply it to all Pods in the testing namespace.
upvoted 0 times
...
Jesse
6 months ago
Do you have any idea how to create a default-deny NetworkPolicy for all Egress traffic?
upvoted 0 times
...
Amira
6 months ago
I know what you mean, NetworkPolicy configurations can be tricky.
upvoted 0 times
...
Jesse
6 months ago
I feel a bit nervous about this exam question on NetworkPolicy.
upvoted 0 times
...

Save Cancel