Bird
0
0

You tried to create a custom role with this command:

medium📝 Debug Q14 of 15
GCP - Cloud IAM Advanced
You tried to create a custom role with this command:
gcloud iam roles create testRole --project=my-project --title="Test Role" --permissions=compute.instances.start,compute.instances.stop

But it failed. What is the most likely reason?
AProject ID is incorrect
BPermissions are invalid for custom roles
CMissing the --stage flag which is required
DRole ID cannot contain uppercase letters
Step-by-Step Solution
Solution:
  1. Step 1: Check required flags for role creation

    The --stage flag is mandatory when creating custom roles to specify the release stage.
  2. Step 2: Identify missing flag in the command

    The command lacks the --stage flag, causing failure.
  3. Final Answer:

    Missing the --stage flag which is required -> Option C
  4. Quick Check:

    --stage flag required = Missing the --stage flag which is required [OK]
Quick Trick: Always include --stage when creating custom roles [OK]
Common Mistakes:
  • Ignoring the required --stage flag
  • Assuming permissions are invalid
  • Mistaking project ID or role ID format

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes