exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 183 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 183
Topic #: 1
[All Professional Cloud Developer Questions]

You are developing an application that will handle requests from end users. You need to secure a Cloud Function called by the application to allow authorized end users to authenticate to the function via the application while restricting access to unauthorized users. You will integrate Google Sign-In as part of the solution and want to follow Google-recommended best practices. What should you do?

  • A. Deploy from a source code repository and grant users the roles/cloudfunctions.viewer role.
  • B. Deploy from a source code repository and grant users the roles/cloudfunctions.invoker role
  • C. Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.admin role
  • D. Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.developer role
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JonathanSJ
9 months ago
Selected Answer: B
B is the asnwer
upvoted 1 times
...
purushi
1 year, 2 months ago
Selected Answer: B
The key here is "secure a Cloud Function CALLED by the application to allow authorized end users to authenticate to the function via the application while restricting access to unauthorized users"
upvoted 1 times
...
TNT87
1 year, 10 months ago
Answer B
upvoted 2 times
...
zellck
1 year, 10 months ago
Selected Answer: B
B is the answer.
upvoted 1 times
...
esc
1 year, 10 months ago
Selected Answer: B
Have the user account you are using to access Cloud Functions assigned a role that contains the cloudfunctions.functions.invoke permission. By default, the Cloud Functions Admin and Cloud Functions Developer roles have this permission. See Cloud Functions IAM Roles for the full list of roles and their associated permissions.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago