0
0
Kubernetesdevops~20 mins

Ingress controllers (Nginx, Traefik) in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Ingress Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Nginx Ingress Controller Pod Status
You deployed an Nginx Ingress Controller in your Kubernetes cluster. What is the output of the command kubectl get pods -n ingress-nginx immediately after deployment?
Kubernetes
kubectl get pods -n ingress-nginx
A
NAME                                        READY   STATUS    RESTARTS   AGE
nginx-ingress-controller-abc123               1/1     CrashLoopBackOff   3          1m
B
NAME                                        READY   STATUS    RESTARTS   AGE
nginx-ingress-controller-abc123               0/1     Pending   0          1m
C
NAME                                        READY   STATUS    RESTARTS   AGE
nginx-ingress-controller-abc123               1/1     Running   0          1m
DError from server (NotFound): namespaces "ingress-nginx" not found
Attempts:
2 left
💡 Hint
Think about the normal state of a pod right after a successful deployment.
🧠 Conceptual
intermediate
1:30remaining
Traefik Ingress Controller Feature
Which feature is unique to Traefik compared to Nginx Ingress Controller in Kubernetes?
ADoes not support Let's Encrypt integration
BSupports only HTTP and HTTPS protocols
CRequires manual configuration reload after changes
DAutomatic service discovery and dynamic configuration without reload
Attempts:
2 left
💡 Hint
Think about how Traefik handles configuration updates.
Troubleshoot
advanced
2:30remaining
Nginx Ingress Controller TLS Issue
You configured TLS for your Nginx Ingress Controller, but HTTPS requests fail with a certificate error. Which of the following is the most likely cause?
AThe TLS secret referenced in the Ingress resource does not exist or is in the wrong namespace
BThe Ingress controller does not support TLS
CThe Ingress resource is missing the host field
DThe service port is not exposed as NodePort
Attempts:
2 left
💡 Hint
Check the TLS secret and its namespace carefully.
🔀 Workflow
advanced
2:00remaining
Deploying Traefik with Helm
Which Helm command correctly installs Traefik Ingress Controller in the namespace 'traefik-system' with default settings?
Ahelm deploy traefik traefik/traefik --namespace traefik-system
Bhelm install traefik traefik/traefik --namespace traefik-system --create-namespace
Chelm install traefik traefik/traefik --namespace default
Dhelm apply traefik traefik/traefik --namespace traefik-system
Attempts:
2 left
💡 Hint
Remember the correct Helm command to install a chart and create namespace if missing.
Best Practice
expert
3:00remaining
Securing Ingress Controllers
What is the best practice to secure your Kubernetes cluster's Ingress Controller against unauthorized external access?
AUse Network Policies to restrict traffic to the Ingress Controller pods
BExpose the Ingress Controller service as LoadBalancer without firewall rules
CDisable TLS to simplify configuration
DAllow all incoming traffic to the Ingress Controller
Attempts:
2 left
💡 Hint
Think about controlling network traffic at the pod level.