Topic 1 Question 212
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?
Create one Cloud Function as a backend service exposed using an HTTPS load balancer.
Create three Cloud Functions exposed directly.
Create one Cloud Function exposed directly.
Create three Cloud Functions as three backend services exposed using an HTTPS load balancer.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: B
Each function is defined as an HTTP trigger, which allows it to be triggered by incoming HTTP requests. The endpoint for each function is defined in the function name (e.g. "students", "teachers", "classes").
This means that the APIs would be accessible at the following endpoints:
• https://yourcompany.com/students • https://yourcompany.com/teachers • https://yourcompany.com/classes
Note that you would need to configure "yourcompany.com" DNS registry.
In this case, option B, "Create three Cloud Functions exposed directly", would be correct.
👍 2mrvergara2023/02/03 - 正解だと思う選択肢: D
D is correct
👍 1melisargh2022/12/11 - 正解だと思う選択肢: D
D is the answer.
👍 1zellck2022/12/12
シャッフルモード