exam questions

Exam Professional Cloud Network Engineer All Questions

View all questions & answers for the Professional Cloud Network Engineer exam

Exam Professional Cloud Network Engineer topic 1 question 185 discussion

Actual exam question from Google's Professional Cloud Network Engineer
Question #: 185
Topic #: 1
[All Professional Cloud Network Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
n2183712847
3 months, 3 weeks ago
Selected Answer: C
C. Default backend needs to be defined
upvoted 1 times
...
Gwendal
5 months ago
Selected Answer: C
https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#default_backend
upvoted 1 times
...
RKS_2021
5 months, 3 weeks ago
Selected Answer: C
Explanation: The issue here is that requests to www.mountkirkgames.com (without a path) are returning a 404 error, while requests to specific paths like /sales and /get-an-analysis work fine. This suggests that the Ingress does not have a default backend defined to handle requests that do not match a specific path rule. Why Option C is Correct? Ingress controllers in GKE route traffic based on path rules. If a request does not match any defined path, it is sent to the default backend. A missing default backend results in a 404 error for unmatched requests, which is exactly what is happening here. Solution: Update the Ingress YAML to define a default backend that will handle requests for www.mountkirkgames.com when no specific path is provided.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...