Your code is running on Cloud Functions in project A. It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error "403 Forbidden". What should you do to correct the problem?
A) Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
B) Grant your user account the roles/iam.serviceAccountUser role for the service-PROJECTA@gcf-admin-robot.iam.gserviceaccount.com service account.
C) Grant the service-PROJECTA@gcf-admin-robot.iam.gserviceaccount.com service account the roles/storage.objectCreator role for the Cloud Storage bucket.
D) Enable the Cloud Storage API in project B.
Correct Answer:
Verified
Q1: You are parsing a log file that
Q3: You need to copy directory local-scripts and
Q4: You have an application deployed in production.
Q5: You are building an API that will
Q6: You plan to make a simple HTML
Q7: Your company has a BigQuery dataset named
Q8: You have two tables in an ANSI-SQL
Q9: Your teammate has asked you to review
Q10: You want to upload files from an
Q11: You are developing an HTTP API hosted
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents