nerdexam
Linux_FoundationLinux_Foundation

CKS · Question #61

CKS Question #61: Real Exam Question with Answer & Explanation

Sign in or unlock CKS to reveal the answer and full explanation for question #61. The question stem and answer options stay visible for context.

Submitted by skyler.x· May 5, 2026Minimize Microservice Vulnerabilities

Question

You must connect to the correct host (e.g., via `ssh cks000031`). You are required to implement NetworkPolicies controlling the traffic flow of existing Deployments across namespaces. Task: 1. First, create a NetworkPolicy named `deny-policy` in the `prod` namespace to block all ingress traffic. The `prod` namespace is labeled `env:prod`. 2. Next, create a NetworkPolicy named `allow-from-prod` in the `data` namespace to allow ingress traffic only from Pods in the `prod` namespace. The `data` namespace is labeled `env:data`. Do not modify or delete any namespaces or Pods. Only create the required NetworkPolicies.

Unlock CKS to see the answer

You've previewed enough free CKS questions. Unlock CKS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Kubernetes NetworkPolicies#Ingress Control#Namespace Isolation#Traffic Segmentation
Full CKS PracticeBrowse All CKS Questions