0
0
Kubernetesdevops~20 mins

TLS termination with Ingress in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
TLS Ingress Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is TLS termination in Kubernetes Ingress?

In Kubernetes, what does TLS termination mean when used with an Ingress resource?

AThe Ingress controller decrypts incoming TLS traffic and forwards unencrypted traffic to backend services.
BTLS termination means encrypting traffic between backend services and the Ingress controller.
CThe backend services handle TLS decryption and encryption directly without Ingress involvement.
DTLS termination disables TLS encryption entirely for all traffic in the cluster.
Attempts:
2 left
💡 Hint

Think about where the encrypted traffic is decrypted in the flow from client to backend.

Configuration
intermediate
2:00remaining
Identify the correct TLS section in an Ingress manifest

Which TLS configuration snippet correctly enables TLS termination for the host example.com in a Kubernetes Ingress manifest?

A
tls:
  hosts: example.com
  secretName: example-tls
B
tls:
  - hosts:
    - example.com
    secretName: example-tls
C
tls:
  - host: example.com
    secretName: example-tls
D
tls:
  - hosts:
    - example.com
    secret: example-tls
Attempts:
2 left
💡 Hint

Check the indentation and key names carefully for the TLS section.

💻 Command Output
advanced
1:30remaining
What is the output of describing an Ingress with TLS configured?

Given an Ingress resource with TLS configured for example.com, what will kubectl describe ingress my-ingress show under the TLS section?

A
TLS:
  example.com -> example-tls
B
TLS:
  example.com, secretName: example-tls
C
TLS:
  example.com terminates at secret example-tls
D
TLS:
  Hosts: example.com
  SecretName: example-tls
Attempts:
2 left
💡 Hint

Look at the typical output format of kubectl describe ingress for TLS info.

Troubleshoot
advanced
2:00remaining
Why does HTTPS fail despite TLS configured in Ingress?

You configured TLS in your Ingress with a valid secret, but HTTPS requests fail with a connection error. What is the most likely cause?

AThe TLS secret is missing the private key file.
BThe backend service is not listening on port 443.
CThe Ingress controller is not running or not configured to handle TLS.
DThe Ingress resource is missing the <code>spec.rules</code> section.
Attempts:
2 left
💡 Hint

Think about what component handles TLS termination and if it is active.

Best Practice
expert
2:30remaining
Best practice for securing backend services with TLS after Ingress termination

After TLS termination at the Ingress controller, what is the best practice to secure traffic between the Ingress controller and backend services?

AUse mutual TLS (mTLS) between the Ingress controller and backend services to encrypt traffic internally.
BSend plain HTTP traffic from Ingress to backend services to reduce latency.
CDisable TLS on backend services since Ingress already handles encryption.
DUse IP whitelisting on backend services instead of encryption.
Attempts:
2 left
💡 Hint

Consider how to protect traffic inside the cluster after TLS termination.