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?
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.
For more details, refer to the GCP documentation on Service Account Permissions.