Bird
0
0

Given this URL map configuration snippet, which backend service will handle requests to /images/*?

medium📝 Predict Output Q13 of 15
GCP - Cloud Load Balancing
Given this URL map configuration snippet, which backend service will handle requests to /images/*?
{
  "hostRules": [{"hosts": ["*"], "pathMatcher": "allpaths"}],
  "pathMatchers": [{
    "name": "allpaths",
    "defaultService": "backend-service-default",
    "pathRules": [{"paths": ["/images/*"], "service": "backend-service-images"}]
  }]
}
Abackend-service-default
Bbackend-service-images
Cbackend-service-static
Dbackend-service-api
Step-by-Step Solution
Solution:
  1. Step 1: Analyze path rules in URL map

    The path rule for /images/* points to backend-service-images.
  2. Step 2: Understand default service role

    Requests not matching specific paths use backend-service-default, but /images/* matches a specific path rule.
  3. Final Answer:

    backend-service-images -> Option B
  4. Quick Check:

    Specific path rule overrides default service [OK]
Quick Trick: Specific path rules override default backend [OK]
Common Mistakes:
  • Choosing default service instead of specific path service
  • Ignoring path pattern matching
  • Confusing backend service names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes