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

Docker DCA Exam - Topic 5 Question 108 Discussion

Posted by Maryanne on Mar 08, 2025 at 11:58 AM

The Kubernetes yaml shown below describes a networkPolicy.

Will the networkPolicy BLOCK this trafftc?

Solution. a request issued from a pod bearing the tier: api label, to a pod bearing the tier: backend label

Get Premium DCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
34 comments · newest first
QU
Quiana 10 months ago
Seems like it should allow the traffic.
VE
Velda 11 months ago
Wait, are you sure about that?
WI
William 11 months ago
Definitely blocks it!
FE
Felton 11 months ago
I think it won't block it.
SO
Solange 11 months ago
Yes, it will block the traffic.
CA
Carey 12 months ago
From what I recall, if the policy doesn't explicitly allow traffic from the api tier to the backend tier, it should block it. But I could be wrong.
LI
Lisha 12 months ago
I'm a bit confused about how the labels interact in this case. Does the policy block traffic only if both labels are present?
IO
Iola 12 months ago
I remember a similar question where we had to determine if a policy allowed or blocked traffic based on labels. I think it was about ingress rules.
EI
Eileen 1 year ago
I think the network policy is meant to restrict traffic, but I'm not entirely sure if it applies to all labels or just specific ones.
AV
Avery 1 year ago
Okay, let me walk through this step-by-step. The policy is allowing ingress traffic from pods with the 'tier: api' label to pods with the 'tier: backend' label. So the answer is no, it will not block that traffic.
AV
Avery 1 year ago
I've got a good feeling about this one. The policy is clearly allowing the traffic from the 'api' tier to the 'backend' tier, so the answer should be no, it won't block that traffic.
ME
Melodie 1 year ago
Wait, I'm a bit confused. The policy is allowing that traffic, not blocking it, right? I'll need to double-check the Kubernetes documentation to make sure I understand this correctly.
KA
Katina 1 year ago
Okay, let me see here. The policy is allowing ingress traffic from pods with the 'tier: api' label to pods with the 'tier: backend' label. I think the answer is yes, it will block that traffic.
SH
Shayne 1 year ago
Hmm, this looks like a tricky one. I'll need to carefully review the Kubernetes YAML and think through the network policy rules.
CH
Chaya 2 years ago
Haha, the Kubernetes folks sure love to make things complicated, don't they? I'm going with B) No, just to keep things simple.
SY
Sylvia 1 year ago
↳ replying to Chaya
User1: Let's go with B) No then.
BE
Bette 1 year ago
↳ replying to Chaya
User3: I'm leaning towards B) No as well.
LE
Leslie 1 year ago
↳ replying to Chaya
User2: I agree, but I think the answer is B) No.
CA
Carmen 1 year ago
↳ replying to Chaya
User1: Yeah, Kubernetes yaml can be a bit overwhelming.
SH
Sharika 2 years ago
Wait, what? This question is making my head spin. I need to take a break and get some coffee before I tackle this one.
LI
Linwood 2 years ago
I think the answer is B) No. The networkPolicy doesn't seem to have any rules that would block traffic from the 'api' pods to the 'backend' pods.
DA
Daren 1 year ago
↳ replying to Linwood
User 3: So, we all think it won't block the traffic then?
MA
Marge 2 years ago
↳ replying to Linwood
User 2: Yeah, I agree. There doesn't seem to be any rules blocking that traffic.
GU
Gussie 2 years ago
↳ replying to Linwood
User 1: I think the answer is B) No.
CL
Claribel 2 years ago
Hmm, I see your point. Maybe I misunderstood the yaml configuration.
YV
Yvette 2 years ago
I agree with Audria, the networkPolicy seems to be configured to block the traffic.
AU
Audria 2 years ago
But the solution mentions that it will block traffic between pods with specific labels.
DE
Dell 2 years ago
Hmm, this looks like a trick question. The networkPolicy description doesn't specify the direction of the traffic, so I'm not sure if it will block the traffic or not.
KR
Kristel 2 years ago
↳ replying to Dell
I think it might block the traffic because it specifies the source and destination pods.
AN
Antione 2 years ago
↳ replying to Dell
I agree, it's not clear from the description. It could go either way.
PH
Phuong 2 years ago
↳ replying to Dell
B) No
EL
Elin 2 years ago
↳ replying to Dell
A) Yes
CL
Claribel 2 years ago
I disagree, I believe the networkPolicy will not block the traffic.
AU
Audria 2 years ago
I think the networkPolicy will block the traffic.
0/2000 characters

Save Cancel