Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 351 of 375

Associate Cloud Engineer. Free level, Google Cloud. Free question with the correct answer and a full explanation.

Google Associate Cloud Engineer Question 351

Single answerGoogle Cloud Platform

You are managing a Google Cloud project where an application running on Compute Engine needs to access objects in a specific Cloud Storage bucket. To comply with the principle of least privilege, you need to assign the minimum permissions necessary to a service account that the VM instances will use. Which role should you assign to the service account to achieve this?

  1. A

    Storage Admin

  2. B

    Storage Object Viewer

  3. C

    Storage Object Creator

  4. D

    Storage Object Admin

Show answer and explanation

Correct answer: B

Explanation

To adhere to the principle of least privilege, it is important to grant only the permissions necessary for the task. In this scenario, since the application only needs to access (view) objects in the Cloud Storage bucket, the 'Storage Object Viewer' role is the most appropriate choice as it provides the needed read-only access without any additional permissions that are not required.

  • A. Incorrect.

    Storage Admin provides full control over all Cloud Storage resources, which exceeds the minimum required permissions for just viewing objects.

  • B. Correct.

    Storage Object Viewer grants read-only access to objects within the bucket, which aligns with the requirement to access objects while adhering to the principle of least privilege.

  • C. Incorrect.

    Storage Object Creator allows the service account to create objects in the bucket but does not permit viewing them, so it does not meet the requirement.

  • D. Incorrect.

    Storage Object Admin allows full management of objects within the bucket, which is more than what is required for just accessing them.

Timed practice exam

Take a Google Associate Cloud Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam