EX280 Networking And Network Policies Practice Question
An 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?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Add the annotation 'haproxy.router.openshift.io/ip_whitelist' to the Route object.
Routes support spec.securityContext or annotations/fields for IP filtering. Specifically, the 'haproxy.router.openshift.io/ip_whitelist' annotation restricts access based on client source IP.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Configure spec.clientIP in the Service object definition.
Why it's wrong here
The Service object's sessionAffinity handles client IP persistence, not access control/filtering.
- ✗
Create a NetworkPolicy with spec.ingress.ipBlock restricting the router pod.
Why it's wrong here
NetworkPolicies apply to pod-to-pod communication, not external client connections hitting the router service directly by IP whitelist annotations.
- ✓
Add the annotation 'haproxy.router.openshift.io/ip_whitelist' to the Route object.
Why this is correct
The ip_whitelist annotation on the Route configures HAProxy to allow traffic only from specified IPs/CIDRs.
- ✗
Update the IngressController CR with a global clientIP blacklist.
Why it's wrong here
This would apply globally rather than to a specific Route object.
About these practice questions
One of 509 original EX280 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Red Hat exam blueprint
This EX280 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX280 exam.