Bird
0
0

You want to expose a NodePort service but restrict access only to specific node IPs. Which Kubernetes feature helps achieve this?

hard📝 Application Q9 of 15
Kubernetes - Services
You want to expose a NodePort service but restrict access only to specific node IPs. Which Kubernetes feature helps achieve this?
AHorizontal Pod Autoscaler
BPod Security Policies
CResource Quotas
DNetwork Policies
Step-by-Step Solution
Solution:
  1. Step 1: Identify feature controlling network access

    Network Policies control traffic flow to and from pods and nodes.
  2. Step 2: Exclude other options

    Pod Security Policies control pod security, Resource Quotas limit resource usage, Autoscaler manages pod count.
  3. Final Answer:

    Network Policies -> Option D
  4. Quick Check:

    Restrict NodePort access using Network Policies [OK]
Quick Trick: Use Network Policies to restrict NodePort access by IP [OK]
Common Mistakes:
  • Confusing security policies with network policies
  • Expecting resource quotas to control access
  • Thinking autoscaler manages network access

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes