0
0
GCPcloud~5 mins

URL maps for routing in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a URL map in Google Cloud Platform?
A URL map is a configuration that directs incoming web traffic to different backend services based on the URL path or host. It helps route users to the right place.
Click to reveal answer
beginner
How does a URL map decide where to send a request?
It checks the URL's host and path against rules you set. When it finds a match, it sends the request to the backend service linked to that rule.
Click to reveal answer
intermediate
What is a host rule in a URL map?
A host rule matches the domain name part of a URL (like example.com) and connects it to path matchers that further decide routing based on URL paths.
Click to reveal answer
intermediate
Why use path matchers in URL maps?
Path matchers let you send different URL paths (like /images or /videos) to different backend services, helping organize traffic efficiently.
Click to reveal answer
beginner
What happens if no URL map rule matches a request?
The request is sent to the default backend service defined in the URL map, ensuring traffic is always handled even if no specific rule matches.
Click to reveal answer
What does a URL map primarily control in GCP?
AStorage of website files
BRouting of incoming web requests to backend services
CUser authentication
DDatabase connections
Which part of the URL does a host rule in a URL map match?
AThe domain name (host)
BThe URL path
CThe query parameters
DThe HTTP headers
If a URL path is '/images', where does the URL map send the request?
ATo the database
BTo the default backend service only
CTo the firewall
DTo the backend service linked to the '/images' path matcher
What happens if no host or path rule matches a request in a URL map?
AThe request goes to the default backend service
BThe request is dropped
CThe request is sent to a random backend
DThe request is redirected to the homepage
Which GCP service commonly uses URL maps for routing?
ACloud Functions
BCloud Storage
CCloud Load Balancing
DBigQuery
Explain how URL maps route traffic in Google Cloud Platform.
Think about how a traffic director sends cars to different roads based on signs.
You got /4 concepts.
    Describe the role of host rules and path matchers in URL maps.
    Host rules are like street names, path matchers are like house numbers.
    You got /4 concepts.