Bird
0
0

Given a Kubernetes cluster with an Ingress controller configured, what will happen if you create a LoadBalancer service for the same app?

medium📝 Predict Output Q4 of 15
Kubernetes - Ingress
Given a Kubernetes cluster with an Ingress controller configured, what will happen if you create a LoadBalancer service for the same app?
AThe Ingress controller will override the LoadBalancer service and block it
BThe LoadBalancer service will fail to create due to conflict
CBoth services will share the same external IP automatically
DThe LoadBalancer service will create a separate external IP, independent of Ingress
Step-by-Step Solution
Solution:
  1. Step 1: Understand service independence

    LoadBalancer service creates its own external IP independently of Ingress.
  2. Step 2: Check interaction with Ingress

    Ingress controller manages Ingress resources but does not block or override LoadBalancer services.
  3. Final Answer:

    LoadBalancer creates separate external IP independent of Ingress -> Option D
  4. Quick Check:

    LoadBalancer and Ingress IPs are separate [OK]
Quick Trick: LoadBalancer service gets its own IP, separate from Ingress [OK]
Common Mistakes:
  • Assuming Ingress blocks LoadBalancer services
  • Thinking IPs are shared automatically
  • Believing LoadBalancer creation fails due to Ingress

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes