Google Professional Cloud Security Engineer exam dumps

Google Professional Cloud Security Engineer practice question 49 of 501

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

Google Professional Cloud Security Engineer Question 49

Single answerGoogle Cloud Platform

You are designing a new application on Google Cloud that requires interaction between a Compute Engine instance and a Cloud Storage bucket. The Compute Engine instance needs to upload files to the bucket without user intervention. Which approach should you take to ensure secure and appropriate access?

  1. A

    Manually create a user-managed key and assign it to the Compute Engine instance.

  2. B

    Use a service account and grant it the appropriate roles for accessing the Cloud Storage bucket.

  3. C

    Embed the Cloud Storage bucket credentials in the application code running on the Compute Engine instance.

  4. D

    Share the Cloud Storage bucket with the public and use a public URL for uploads.

Show answer and explanation

Correct answer: B

Explanation

Service accounts are ideal for scenarios where Google Cloud resources, such as Compute Engine, need to securely access other resources, like Cloud Storage buckets. In this case, assigning a service account to the Compute Engine instance and granting it the appropriate roles ensures that the application can securely and seamlessly upload files to the bucket while adhering to the principle of least privilege.

  • A. Incorrect.

    Manually creating and managing keys increases the operational burden and security risks, such as accidental key exposure. It is not the best practice for this scenario.

  • B. Correct.

    Using a service account is the most secure and recommended approach. Service accounts are designed for scenarios where applications or services need to interact securely with Google Cloud resources.

  • C. Incorrect.

    Embedding credentials directly in application code is a major security risk. If the code is exposed or shared, the credentials could be compromised.

  • D. Incorrect.

    Making the Cloud Storage bucket public is not secure and violates the principle of least privilege. It allows unrestricted access, which is unnecessary and dangerous for this use case.

Timed practice exam

Take a Google Professional Cloud Security 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