You must be able to expose an application with a Service and Route, and to write a NetworkPolicy that allows only specified pods on a given port while denying the rest. The critical detail is matching the correct podSelector and namespaceSelector labels so the policy actually selects the intended pods.
Start practicing
Networking And Network Policies — choose a session length
Free · No account required
Domain overview
This domain covers OpenShift Container Platform 4. 14 networking: ClusterIP and NodePort Services, Routes (edge, re-encrypt, passthrough), Ingress, DNS via the cluster DNS Operator, and NetworkPolicy objects enforced by OVN-Kubernetes. You are tested by diagnosing broken name resolution or connectivity and by writing YAML that permits only the intended pod-to-pod traffic.
Exam objectives
Creating and editing Services, Routes, and Ingress with oc expose and oc create route
Configuring NetworkPolicy ingress and egress rules with podSelector, namespaceSelector, and ipBlock
Diagnosing cluster DNS resolution using oc exec, dig, and the dns-default pods
Choosing edge, re-encrypt, or passthrough Route termination and supplying the required certificates
Writing a NetworkPolicy that selects the wrong namespace: namespaceSelector matches namespace labels, not namespace names, unless you use kubernetes.io/metadata.name.
Assuming a NetworkPolicy denies traffic by default: with no policy selecting a pod, all ingress and egress is allowed.
Forgetting that passthrough Routes cannot use the default router certificate and require the backend to terminate TLS itself.
Click any question to see the full explanation and answer options, or start a focused practice session above.
A cluster administrator notices that a NetworkPolicy applied to the database namespace is dropping traffic from the frontend namespace. The policy uses namespaceSelector. Which label must be present on the frontend namespace for traffic to be successfully allowed?
2An application pod in OpenShift needs to determine its own IP address and the cluster DNS servers dynamically. Where does CoreDNS look or how are pods configured to resolve cluster DNS?
3An administrator wants to expose a Deployment via a NodePort service. What is the default port range allocated for NodePort services in OpenShift if not explicitly configured otherwise?
4An administrator needs to check the internal DNS resolution of a service named 'backend' within the 'production' namespace from a debug pod. Which DNS name is fully qualified and valid within the cluster?
5An administrator created a Route but external clients receive a 503 Service Unavailable error when attempting to access it. Upon checking the endpoints of the Service referenced by the Route, the administrator discovers there are zero endpoints listed. What is the most likely cause?
6An administrator wants to view the public URL assigned to an existing Route named 'webapp'. Which oc command is best suited to extract only the host URL value?
7An administrator needs to modify the default Ingress controller configuration to change its replica count and adjust the router deployment parameters. Which resource should the administrator edit?
8An administrator configures a LoadBalancer service on an OpenShift cluster running on a cloud provider. However, the EXTERNAL-IP remains in a <pending> state indefinitely. What is the most likely reason?
9An administrator needs to create a passthrough Route that preserves client certificates and forwards encrypted traffic directly to the backend pod. Which spec configuration is required?
10An administrator wants to configure a NetworkPolicy that allows incoming traffic only from pods with the label 'role=frontend' residing in any namespace, provided those namespaces have the label 'environment=production'. How should the namespaceSelector and podSelector be combined?
11An administrator wants to test network connectivity from a pod named 'app-pod-1' to a service port on 'backend-service' using TCP. Which tool is commonly available and ideal for testing TCP port connectivity inside a container?
12An administrator creates a NetworkPolicy that restricts egress traffic from a namespace. However, DNS resolution for external services immediately stops working. What is the cause of this behavior?
13An administrator needs to configure a custom default certificate for all routes created in the cluster without specifying a certificate on every individual Route object. Where should this wildcard certificate be configured?
14An administrator needs to list all Services across all namespaces in the OpenShift cluster. Which command should be used?
15An OpenShift administrator needs to inspect how OVN-Kubernetes handles network flows and packet drops on a specific node. Which debugging utility installed in the OVN node container is most effective for viewing OpenFlow rules?
16An administrator notices that client source IP addresses are lost when traffic hits a Service of type NodePort, appearing instead as a node IP. Which field in the Service specification should be changed to 'Local' to preserve client source IPs?
17An administrator needs to create a Route that handles multiple subdomains or redirects insecure HTTP traffic to HTTPS automatically. Where is the insecure traffic redirect configured?
18A developer deploys a headless service (ClusterIP set to None) in OpenShift. What is the primary characteristic of a headless service?
19An administrator configures an EgressFirewall in a namespace to deny all external traffic except for a specific CIDR block. In what order are the rules in an EgressFirewall evaluated?
20An administrator needs to expose an existing deployment using a quick command without writing a YAML manifest. Which command exposes port 8080 of a deployment named 'my-app' as a Service?
21An administrator needs to test DNS resolution from inside a running pod. Which command run inside a container uses the standard Linux DNS lookup utility?
22An administrator troubleshoots a failing NetworkPolicy and wants to verify if the OpenShift SDN or OVN-Kubernetes controller has successfully applied the rules. Where are the controller operator logs examined?
23An administrator needs to delete a Service named 'old-service' in the 'test' namespace. Which command accomplishes this?
24An administrator needs to configure a Route that handles encrypted communication both from the client to the router AND from the router to the backend pod. Which termination type is required?
25An administrator wants to check the status of all cluster operators, specifically verifying that the Network and DNS operators are healthy. Which command should be run?
26An administrator observes that pods in a specific namespace are unable to resolve external domain names (e.g., www.redhat.com) while internal service resolution works perfectly. What is the most likely cause of this issue in CoreDNS configuration?
27Which TWO of the following are valid Service types supported natively in OpenShift? (Choose TWO)
28Which THREE of the following components are part of the standard OpenShift Ingress architecture? (Choose THREE)
29Which TWO options describe characteristics of OVN-Kubernetes compared to the legacy OpenShift SDN? (Choose TWO)
30Which THREE troubleshooting steps should an administrator take when a newly created Route fails to resolve or connect? (Choose THREE)
31Which TWO tools or protocols can an administrator use to verify internal cluster DNS resolution from a pod? (Choose TWO)
32Which TWO commands are used to check the health and status of the cluster networking operator? (Choose TWO)
33Which THREE actions can be performed using the IngressController custom resource? (Choose THREE)
34Which THREE network-related objects are namespaced in OpenShift? (Choose THREE)
35Which TWO statements are true regarding OpenShift Services of type LoadBalancer? (Choose TWO)
36Which TWO methods can an administrator use to troubleshoot why a pod cannot connect to a remote Service? (Choose TWO)
37Which THREE conditions must be met for a NetworkPolicy to successfully allow traffic from another pod? (Choose THREE)
38An administrator needs to expose an internal application running on port 8080 via an OpenShift Route using edge termination. Which object configuration correctly defines this Route?
39A developer reports that pods in the namespace 'project-a' cannot resolve services located in the namespace 'project-b' using standard internal DNS names. What is the correct way to query 'project-b' service 'backend' from 'project-a'?
40An administrator must configure a NetworkPolicy in the 'secure-zone' namespace to explicitly deny all ingress traffic except for TCP traffic coming from pods labeled 'tier=frontend' in the 'frontend-zone' namespace. Which NetworkPolicy specification achieves this?
41An administrator needs to create a service that exposes an application externally via an IP address allocated from an external cloud provider load balancer. Which service type must be used?
42A cluster administrator needs to inspect the current default CNI network provider configured in an OpenShift 4.14 cluster. Which command or resource should the administrator check?
43An application pod needs to discover other pods behind the same headless service. What characteristic defines a headless service?
44An administrator needs to modify the timeout values for the default OpenShift Ingress Controller (Router). Where should this change be applied?
45A developer wants to expose an application using a secure Route that terminates TLS on the pod itself, avoiding decryption at the router layer. Which TLS termination type should be selected?
46An OpenShift administrator needs to restrict external access to a specific application Route by limiting access to a predefined list of allowed client IP addresses. How can this be accomplished?
47An administrator notices that pods on different worker nodes cannot communicate with each other. Upon checking the cluster network operator, it appears the MTU settings between the underlying physical network and the cluster overlay network mismatch. Which OpenShift command checks the cluster network operator status?
48A service of type NodePort has been created in OpenShift. Within what default port range are NodePort services typically allocated on the worker nodes?
49Which TWO of the following are valid OpenShift Service types? (Choose TWO)
50Which THREE actions can be performed when managing Route objects in OpenShift? (Choose THREE)
51Which TWO options are valid methods to check service endpoints in OpenShift? (Choose TWO)
52When configuring a NetworkPolicy in OpenShift, which THREE options represent valid components or fields within a NetworkPolicy specification? (Choose THREE)
53Which TWO components are core parts of the OpenShift DNS architecture for cluster resolution? (Choose TWO)
54Which THREE statements are true regarding Ingress controllers in OpenShift? (Choose THREE)
55An administrator needs to restrict ingress traffic to pods in the 'frontend' namespace so that only pods labeled role=api in the 'backend' namespace can connect on TCP port 8080. All other traffic must be denied. Which NetworkPolicy configuration achieves this?
56A developer reports that a Service in the project `webapp` is not exposing the expected endpoints, even though the Deployment shows all replicas Running. The administrator inspects the Service and sees the selector is `app: web-frontend`. Which command should the administrator run to verify whether the Pods actually carry the labels the Service selector expects?
57An administrator is troubleshooting why a Pod in namespace `app-a` cannot reach a Pod in namespace `app-b` on TCP port 3306, even though both Pods are Running and the Services resolve correctly. A NetworkPolicy in `app-b` allows ingress only from Pods labeled `tier: frontend` in `app-a`. The source Pod in `app-a` has the label `tier: backend`. What is the most likely cause?
You must be able to expose an application with a Service and Route, and to write a NetworkPolicy that allows only specified pods on a given port while denying the rest. The critical detail is matching the correct podSelector and namespaceSelector labels so the policy actually selects the intended pods.
The Courseiva EX280 question bank contains 57 questions in the Networking And Network Policies domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Networking And Network Policies domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included