
Answer-first summary for fast verification
Answer: Employ the `gcloud iam roles copy` command, setting the destination project.
The correct answer is **D** because the Cloud SDK command `gcloud iam roles copy` is specifically designed to copy roles across different organizations or projects within GCP. This method is efficient and reduces the potential for manual errors. For more details, refer to the GCP documentation on [Cloud SDK IAM Copy Role](https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
After setting up and testing several custom roles in your development project, what is the most efficient method to replicate these roles in your new production project?
A
Manually recreate each role in the new project.
B
Utilize the gcloud iam copy roles command, specifying the destination project.
C
Select the roles in the GCP console and use the Export feature.
D
Employ the gcloud iam roles copy command, setting the destination project.
No comments yet.