0
0
GCPcloud~20 mins

GKE Ingress with Load Balancer in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GKE Ingress Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Output of kubectl get ingress command
You have deployed an Ingress resource in GKE with a Load Balancer. What is the output of kubectl get ingress after the Load Balancer IP is assigned?
GCP
kubectl get ingress my-ingress
A
NAME        CLASS    HOSTS   ADDRESS          PORTS   AGE
my-ingress  <none>   *       192.168.1.1      80      5m
B
NAME        CLASS    HOSTS   ADDRESS          PORTS   AGE
my-ingress  <none>   *       34.68.123.45     80      5m
C
NAME        CLASS    HOSTS   ADDRESS          PORTS   AGE
my-ingress  <none>   *       10.0.0.1         80      5m
D
NAME        CLASS    HOSTS   ADDRESS   PORTS   AGE
my-ingress  <none>   *       <pending> 80      5m
Attempts:
2 left
💡 Hint
The external IP address assigned by the GCP Load Balancer is a public IP, not a private IP.
🧠 Conceptual
intermediate
1:30remaining
Purpose of BackendConfig in GKE Ingress
What is the main purpose of using a BackendConfig resource in GKE Ingress with Load Balancer?
ATo configure advanced settings like connection draining, timeouts, and health checks for backend services.
BTo define the frontend IP address of the Load Balancer.
CTo specify the DNS name for the Ingress resource.
DTo create firewall rules for the Load Balancer.
Attempts:
2 left
💡 Hint
BackendConfig customizes backend service behavior beyond default settings.
Troubleshoot
advanced
2:00remaining
Troubleshooting Ingress Not Getting External IP
You created an Ingress resource in GKE but the ADDRESS field remains <pending> for over 10 minutes. What is the most likely cause?
AThe Ingress resource is missing the <code>spec.rules</code> section.
BThe Kubernetes API server is down.
CThe backend Pods are not running any containers.
DThe cluster does not have the required cloud permissions to create a Load Balancer.
Attempts:
2 left
💡 Hint
Check if the GKE cluster has permissions to create cloud resources like Load Balancers.
🔀 Workflow
advanced
2:30remaining
Steps to Enable HTTPS on GKE Ingress with Load Balancer
Which sequence correctly describes the steps to enable HTTPS on a GKE Ingress with a Load Balancer?
A1,3,2,4
B3,2,1,4
C3,1,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint
You must deploy your app and service before configuring certificates and Ingress annotations.
Best Practice
expert
3:00remaining
Best Practice for Securing GKE Ingress with Load Balancer
Which option is the best practice to secure your GKE Ingress with a Load Balancer for production use?
AUse HTTPS with ManagedCertificate, enable HTTP to HTTPS redirect, and restrict backend access with firewall rules.
BUse HTTP only to reduce latency and avoid certificate management complexity.
CDisable health checks to improve backend performance.
DExpose backend Pods directly without a Service to reduce network hops.
Attempts:
2 left
💡 Hint
Security best practices include encryption and access control.