A team member reports that a critical API (Cloud SQL Admin API) is not functioning. Upon investigation, you find the API has not been enabled in the current project. However, when you attempt to enable it, you receive the error 'ERROR: (gcloud.services.enable) User does not have permission [servicemanagement.services.create].' Which role assignment will resolve this issue?
- A. Assign the Project Editor role to the user
- B. Assign the Service Account Admin role to the user
- C. Assign the Editor role to the user
- D. Assign the Service Usage Admin role to the user✓ Correct
Explanation
Option 2 is correct: The Service Usage Admin role includes the servicemanagement.services.create permission needed to enable APIs in a project. Option 1 (Service Account Admin) manages service accounts, not API enablement. Option 3 (Editor) works but is overly broad for this specific task. Option 4 (Project Editor) is not a standard predefined role; the actual role is just 'Editor'.