You are responsible for deploying a new API. That API will have three different URL paths:
* https://yourcompany.com/students
* https://yourcompany.com/teachers
* https://yourcompany.com/classes
You need to configure each API URL path to invoke a different function in your code. What should you do?
Suggested Answer: D
Get Premium Professional Cloud Developer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
https://cloud.google.com/load-balancing/docs/https/setup-global-ext-https-serverless
12 comments · newest first
BE
Ben
2 months ago
Option A seems simpler, but I worry about flexibility.
HA
Haydee
2 months ago
I prefer option D. Using a load balancer adds scalability.
AU
Audry
2 months ago
I think option B is the best. Three separate functions make it easier to manage.
DE
Demetra
2 months ago
How does the load balancer even work with multiple functions?
AL
Allene
2 months ago
Definitely going with D, makes the most sense for organization.
SH
Shawnee
2 months ago
Wait, are we really considering one function for all three paths?
KI
Kiley
3 months ago
I disagree, D seems more scalable for future needs.
BE
Benton
3 months ago
I think option B is the simplest approach.
HI
Hillary
3 months ago
I lean towards option B, but I wonder if there's a performance benefit to using an HTTPS load balancer with option D.
KA
Kandis
3 months ago
This question feels similar to one we practiced where we had to decide on the number of functions based on different endpoints.
AN
Anglea
3 months ago
I'm not entirely sure, but I remember something about using an HTTPS load balancer for better management.
DO
Dominga
4 months ago
I think we might need to create three separate Cloud Functions since each URL path has a different function to invoke.