Bird
0
0

Given this Ingress snippet:

medium📝 Command Output Q13 of 15
Kubernetes - Ingress
Given this Ingress snippet:
tls:
  - hosts:
    - myapp.example.com
    secretName: myapp-tls

rules:
  - host: myapp.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: myapp-service
            port:
              number: 80
What happens when a user accesses https://myapp.example.com?
AThe Ingress decrypts TLS and forwards HTTP traffic to myapp-service on port 80
BThe Ingress forwards encrypted TLS traffic directly to myapp-service
CThe Ingress rejects the connection because backend port is 80
DThe Ingress terminates TLS but forwards HTTPS traffic to backend
Step-by-Step Solution
Solution:
  1. Step 1: Understand TLS termination in Ingress

    The Ingress uses the secret to decrypt HTTPS traffic for the host.
  2. Step 2: Check backend service port and protocol

    The backend service listens on port 80 (HTTP), so decrypted HTTP traffic is forwarded.
  3. Final Answer:

    The Ingress decrypts TLS and forwards HTTP traffic to myapp-service on port 80 -> Option A
  4. Quick Check:

    Ingress decrypts TLS, backend gets HTTP [OK]
Quick Trick: Ingress decrypts TLS, backend usually gets HTTP on port 80 [OK]
Common Mistakes:
  • Assuming backend receives encrypted traffic
  • Thinking backend must use HTTPS port
  • Confusing TLS termination with passthrough

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes