Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
To resolve a "403 Forbidden" error when writing from a Cloud Function in project A to a Cloud Storage bucket in project B, what steps should you take?
(Assume the code is correct but lacks proper permissions.)
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.