Q: 12
You have a development project with appropriate IAM roles defined. You are creating a production
project and want to have the same IAM roles on the new project, using the fewest possible steps.
What should you do?
Options
Discussion
Makes sense to go with A here
A imo
For me, A here
A tbh. Only catch is this works for custom roles, not predefined ones. If you want exact copies and minimal fuss, gcloud iam roles copy does it in a single shot. Console options are more clicks/manual steps. Someone correct me if I missed an edge case?
A lot of people might jump at C because the console option looks easy, but if you actually want minimal steps, it's A. The 'create role from role' option in the UI doesn't handle bulk or scripting, which is a trap for this scenario.
My pick: definitely A. gcloud iam roles copy is purpose-built for this and saves a ton of manual work, especially compared to clicking around the console. Pretty sure that's what Google expects for "fewest steps". Disagree?
A
A imo. Saw a similar question in some exam reports and gcloud iam roles copy is the fastest for duplicating custom roles project to project. The console options take more manual steps. Open to pushback if I'm missing something.
C
I've seen practice questions suggest using the Console's 'create role from role' to quickly duplicate IAM roles. Most study guides mention this as a common method, though maybe not the absolute fewest steps. Anyone else use the exam guide for this?
I've seen practice questions suggest using the Console's 'create role from role' to quickly duplicate IAM roles. Most study guides mention this as a common method, though maybe not the absolute fewest steps. Anyone else use the exam guide for this?
Be respectful. No spam.