
Answer-first summary for fast verification
Answer: Create three Cloud Functions as three backend services exposed using an HTTPS load balancer.
To configure each API URL path to invoke a different function under the same domain, you need to use an HTTPS load balancer with path-based routing. This requires each Cloud Function to be deployed as a separate backend service. Option D correctly describes this setup by creating three Cloud Functions as three backend services exposed using an HTTPS load balancer, allowing each URL path to route to its respective function. Options A and C do not allow for different functions to be invoked based on the URL path, and Option B would not unify the API under a single domain without additional configuration.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you configure three distinct API URL paths (https://yourcompany.com/students, https://yourcompany.com/teachers, and https://yourcompany.com/classes) to each trigger a separate function in your code during deployment?
A
Create one Cloud Function as a backend service exposed using an HTTPS load balancer.
B
Create three Cloud Functions exposed directly.
C
Create one Cloud Function exposed directly.
D
Create three Cloud Functions as three backend services exposed using an HTTPS load balancer.
No comments yet.