nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #340

You are developing an application that runs on a Compute Engine VM. The application needs to access data stored in Cloud Storage buckets in other Google Cloud projects. The required access to the…

The correct answer is B. Create IAM bindings for the VM's service account and the required buckets that allow appropriate. Directly assigning IAM bindings to the VM's service account for each Cloud Storage bucket provides the most secure and flexible way to manage access to your data. This approach adheres to the principle of least privilege and allows you to adapt to changing access requirements…

Submitted by weili_xi· Apr 18, 2026Configuring access within a cloud solution environment

Question

You are developing an application that runs on a Compute Engine VM. The application needs to access data stored in Cloud Storage buckets in other Google Cloud projects. The required access to the buckets is variable. You need to provide access to these resources while following Google- recommended practices. What should you do?

Options

  • ALimit the VMs access to the Cloud Storage buckets by setting the relevant access scope of the
  • BCreate IAM bindings for the VM's service account and the required buckets that allow appropriate
  • CGrant the VM's service account access to the required buckets by using domain-wide delegation.
  • DCreate a group and assign IAM bindings to the group for each bucket that the application needs

How the community answered

(18 responses)
  • A
    17% (3)
  • B
    72% (13)
  • C
    6% (1)
  • D
    6% (1)

Explanation

Directly assigning IAM bindings to the VM's service account for each Cloud Storage bucket provides the most secure and flexible way to manage access to your data. This approach adheres to the principle of least privilege and allows you to adapt to changing access requirements with ease. While groups can be useful for managing permissions for multiple VMs, it adds an extra layer of complexity when dealing with a single application on one VM.

Topics

#IAM#Service Accounts#Cloud Storage#Cross-project access

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice