Bird
0
0

Which port range is valid for NodePort services in Kubernetes by default?

easy📝 Conceptual Q2 of 15
Kubernetes - Services
Which port range is valid for NodePort services in Kubernetes by default?
A30000-32767
B1024-49151
C1-1023
D40000-45000
Step-by-Step Solution
Solution:
  1. Step 1: Recall default NodePort port range

    Kubernetes reserves ports 30000 to 32767 for NodePort services by default.
  2. Step 2: Validate other port ranges

    Ports 1-1023 are well-known ports, 1024-49151 are registered ports, and 40000-45000 is not the default NodePort range.
  3. Final Answer:

    30000-32767 -> Option A
  4. Quick Check:

    NodePort default port range = 30000-32767 [OK]
Quick Trick: NodePort ports are always in 30000-32767 range by default [OK]
Common Mistakes:
  • Choosing well-known ports (1-1023) which require root
  • Assuming NodePort uses any random port
  • Confusing NodePort with LoadBalancer port ranges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes