Bird
0
0

You ran this command to create a custom role:

medium📝 Debug Q6 of 15
GCP - Cloud IAM Advanced
You ran this command to create a custom role:
gcloud iam roles create myRole --project=my-project --title="My Role" --permissions=compute.instances.start,compute.instances.stop

But you get an error saying the role ID 'myRole' is invalid. What is the likely cause?
ARole ID cannot contain uppercase letters.
BRole ID must be unique within the project.
CRole ID must be lowercase letters, numbers, and underscores only.
DRole ID must be at least 10 characters long.
Step-by-Step Solution
Solution:
  1. Step 1: Review role ID naming rules

    Role IDs must be lowercase letters, numbers, and underscores; uppercase letters are not allowed.
  2. Step 2: Identify cause of error

    The role ID 'myRole' contains uppercase 'R', causing invalid ID error.
  3. Final Answer:

    Role ID must be lowercase letters, numbers, and underscores only. -> Option C
  4. Quick Check:

    Uppercase letters in role ID cause invalid error [OK]
Quick Trick: Role IDs must be lowercase only [OK]
Common Mistakes:
  • Using uppercase letters in role ID
  • Assuming length or uniqueness causes error
  • Confusing role title with role ID

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes