
Explanation:
The principle of least privilege requires granting only the necessary permissions. To enable a Cloud Function in Project A to write to a bucket in Project B, the function must use a service account from Project A (its own project) with the minimal role roles/storage.objectCreator assigned on the bucket in Project B.
Ultimate access to all questions.
No comments yet.
You have two Google Cloud projects, named Project A and Project B. You need to deploy a Cloud Function in Project A that stores its output in a Cloud Storage bucket located in Project B while adhering to the principle of least privilege. How should you configure this setup?
A
B
C
D