LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

Ultimate access to all questions.


To enable a Google Compute Engine virtual machine instance to connect to Google Cloud Pub/Sub, which method should you use to provision access for the application?

Real Exam



Explanation:

The correct answer is A because the VM needs to be granted permissions using a service account to communicate with Cloud Pub/Sub. This involves creating a new service account with the necessary Cloud Pub/Sub access and associating it with the instance.

  • Option B is incorrect because Cloud Pub/Sub does not support IP whitelisting; firewalls are applicable only to Compute Engines.
  • Option C is not the best choice as service accounts are designed for service-to-service communication, handling OAuth authentication internally.
  • Option D is incorrect because if the service account has no permissions, the instance will not be able to communicate with Cloud Pub/Sub, regardless of the access scope settings.

For more details, refer to the GCP documentation on Service Account Permissions.

Powered ByGPT-5