ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 134 - DCA discussion

Report
Export

The Kubernetes yaml shown below describes a networkPolicy.

Will the networkPolicy BLOCK this trafftc?

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

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

: The networkPolicy willblockthe traffic from a pod bearing the tier: backend label, to a pod bearing the tier: frontend label.The networkPolicy specifies that only pods with the tier: frontend label can access the pods with the app: guestbook-api and tier: backend labels on port 801.Any other traffic to the backend pods will be denied by default2. Therefore, a request issued from a pod bearing the tier: backend label, to a pod bearing the tier: frontend label will be blocked by the networkPolicy.Reference:Connect a Frontend to a Backend Using Services),Network Policies)

asked 08/11/2024
gayathri devi
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first