
Answer-first summary for fast verification
Answer: Use the `gcloud iam roles copy` command and specify the production project as the destination.
Option A is correct because the `gcloud iam roles copy` command is designed to copy IAM roles from one project to another efficiently. By specifying the production project as the destination, you can quickly replicate the IAM setup from the development project. Option B is incorrect as it targets the organization level, not the specific project needed. Options C and D are inefficient as they require manual role creation, which is time-consuming and error-prone. For more information, refer to the [GCP documentation](https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your game development startup is adopting DevOps best practices and has separate Google Cloud Platform (GCP) projects for development and production. The development project has the necessary IAM roles configured. How can you efficiently replicate these IAM roles in the production project with minimal steps?
A
Use the gcloud iam roles copy command and specify the production project as the destination.
B
Use the gcloud iam roles copy command and set your organization as the destination.
C
Manually create each role in the GCP Console using the 'create role from role' feature.
D
Manually create each role in the GCP Console by selecting all relevant permissions.