Refer to Exhibit.

Task:
Update the Pod ckad00018-newpod in the ckad00018 namespace to use a NetworkPolicy allowing the Pod to send and receive traffic only to and from the pods web and db

Suggested Answer: A
Get Premium CKAD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
24 comments · newest first
NI
Nilsa
12 months ago
I think it’s important to test the policy after applying it!
LU
Lura
1 year ago
The syntax in the solution looks correct for the task.
DO
Dorsey
1 year ago
Wait, can NetworkPolicies really limit traffic like that? Sounds too good to be true.
DA
Daniel
1 year ago
Totally agree, they help restrict unwanted traffic.
MA
Mari
1 year ago
Just a reminder, NetworkPolicies are crucial for pod security!
AL
Almeta
1 year ago
I feel like I’ve seen a question like this before, but I’m a bit confused about the syntax for the YAML. I hope I can recall it under pressure!
LE
Leonor
1 year ago
I think I need to double-check how to reference the specific pods in the namespace. I hope I don't mix up the labels!
LO
Loise
1 year ago
This seems similar to that practice question where we had to restrict traffic between different services. I think we need to define ingress and egress rules.
RO
Rodolfo
1 year ago
I remember we practiced NetworkPolicies, but I'm not entirely sure how to specify the pod selectors correctly for this task.
SE
Selma
1 year ago
Hmm, I'm a bit confused about the differences between the options. I'll need to carefully read through each one to understand the nuances.
RO
Ronald
1 year ago
Hmm, I'm not totally sure about this. I know the daily scrum is important, but I can't quite remember the exact goal. I'll have to think this through carefully.
LA
Lavonda
1 year ago
Alright, time to put on my network security hat and make sure that ckad00018-newpod pod is as isolated as a monk in a monastery.
BE
Bea
1 year ago
This is a piece of cake! Just a quick application of the network policy, and I'll have that pod locked down tighter than a clam's backside.
HO
Howard
1 year ago
Piece of cake! Just update the pod with the NetworkPolicy and you're all set.
VI
Vivienne
1 year ago
Yeah, it's a simple task. Just make sure to restrict traffic to web and db pods only.
IN
India
1 year ago
Easy peasy! Just apply the network policy and you're good to go.
TH
Therese
2 years ago
Hmm, I wonder if the web and db pods are in the same namespace as the ckad00018-newpod pod. Gotta double-check that before implementing the network policy.
FR
Freida
2 years ago
The solution looks straightforward. I'll apply the network policy to the ckad00018-newpod pod in the ckad00018 namespace to restrict traffic to the web and db pods.
EL
Elouise
1 year ago
Once we apply the network policy, the communication between the pods should be restricted as intended.
HA
Harrison
1 year ago
I think we just need to follow the steps provided in the solution to set up the network policy correctly.
CH
Cherrie
1 year ago
I agree, the solution seems clear. Let's implement the network policy for the specified pods.
YA
Yasuko
2 years ago
That's a good idea. Let's give it a try.
JA
Jarod
2 years ago
I agree, but I think I can figure it out by reviewing the NetworkPolicy documentation.
YA
Yasuko
2 years ago
This question seems challenging.