Google Cloud Professional Cloud Network Engineer — Question 73
You are using the gcloud command line tool to create a new custom role in a project by coping a predefined role. You receive this error message:
INVALID_ARGUMENT: Permission resourcemanager.projects.list is not valid
What should you do?
Answer options
- A. Add the resourcemanager.projects.get permission, and try again.
- B. Try again with a different role with a new name but the same permissions.
- C. Remove the resourcemanager.projects.list permission, and try again.
- D. Add the resourcemanager.projects.setIamPolicy permission, and try again.
Correct answer: C
Explanation
The correct answer is C because the error indicates that the resourcemanager.projects.list permission is not valid for the custom role you are trying to create. Removing this invalid permission allows the role creation to proceed. The other options suggest adding permissions or changing the role name, which do not address the specific issue of the invalid permission.