
Explanation:
The correct answer is D because the Cloud SDK's gcloud iam roles copy command is specifically designed to copy roles to a different organization or project efficiently. This method is documented in the GCP documentation under 'Cloud SDK IAM Copy Role', which outlines how to create a role from an existing one by specifying the destination organization (--dest-organization=DEST_ORGANIZATION) or project (--dest-project=DEST_PROJECT).
Ultimate access to all questions.
No comments yet.
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
Navigate to the GCP console, select the roles, and use the Export feature.
D
Apply the gcloud iam roles copy command, setting the destination project accordingly.