Google Cloud Professional Cloud Network Engineer — Question 192

Your team deployed two applications in GKE that are exposed through an external Application Load Balancer. When queries are sent to www.mountkirkgames.com/sales and www.mountkirkgames.com/get-an-analysis, the correct pages are displayed. However, you have received complaints that www.mountkirkgames.com yields a 404 error. You need to resolve this error. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because defining a default backend in the Ingress YAML file ensures that any requests that do not match existing rules are directed to a specified service, resolving the 404 error. Options A and D are incorrect as they pertain to the Service YAML file, which does not manage path rules for incoming HTTP requests. Option B is misleading because while adding a path rule is important, it does not address the need for a default backend to handle unmatched requests.