GCP ACE · Question 46 · Domain 5.2: Managing service accounts
You have an application running on a Compute Engine VM that needs to read files from a specific Cloud Storage bucket.
What is the MOST secure way to grant the VM access to the bucket?
Answer options:
Generate a service account JSON key, place it on the VM, and configure the application to use it.
Use the default Compute Engine service account and grant it the 'Project Editor' role.
Create a custom service account, grant it the 'Storage Object Viewer' role, and attach it to the VM.
Make the Cloud Storage bucket public.
50 questions · hints · full answers · grading