
Answer-first summary for fast verification
Answer: Review the Ingress YAML file. Define the default backend. Reapply the YAML.
The 404 error on the root path (www.mountkirkgames.com) occurs because the Ingress lacks a default backend to handle unmatched requests. In GKE, the Ingress resource defines routing rules and the default backend for unmatched paths. Services handle backend logic but not routing. Option C correctly addresses this by defining the default backend in the Ingress YAML, ensuring requests to the root path are directed to the appropriate service. Options A and D involve Service YAML, which does not control routing. Option B uses a wildcard path rule, which is less standard than explicitly defining the default backend.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team has deployed two applications in GKE that are exposed via an external Application Load Balancer. While queries to www.mountkirkgames.com/sales and www.mountkirkgames.com/get-an-analysis correctly display the intended pages, accessing www.mountkirkgames.com returns a 404 error. How would you resolve this issue?
A
Review the Service YAML file. Add a new path rule for the * character that directs to the base service. Reapply the YAML.
B
Review the Ingress YAML file. Add a new path rule for the * character that directs to the base service. Reapply the YAML.
C
Review the Ingress YAML file. Define the default backend. Reapply the YAML.
D
Review the Service YAML file. Define a default backend. Reapply the YAML.
No comments yet.