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?
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?
To duplicate IAM roles from one project to another with minimal steps, you should use the gcloud iam roles copy command and specify the production project as the destination project. This command directly copies the roles from the development project to the production project, ensuring the same roles and permissions are preserved.
Correct Answer is A not B
Correct answer is A
The correct answer is A. Use gcloud iam roles copy and specify the production project as the destination project. The gcloud iam roles copy command copies a role from one project to another. To use this command, you will need to know the name of the role that you want to copy and the name of the destination project. For example, to copy the role roles/compute.instanceAdmin from the project my-dev-project to the project my-prod-project, you would run the following command: gcloud iam roles copy roles/compute.instanceAdmin my-dev-project my-prod-project This command will copy the role roles/compute.instanceAdmin to the project my-prod-project. The role will have the same permissions in the production project as it does in the development project.
Correct Answer is A. Reference:- https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy
A is correct
A As per, https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy
A is right. B will propagate for all projects, not desired as per case description
Option A is the most appropriate approach to have the same IAM roles on the new production project as the existing development project, using the fewest possible steps.
Yes, A is the right answer
Correct answer is A
Because the roles to be copied to a new project in the same organization
The correct answer is A
A true
it's A
A is correct answer
Correct Answer: B Reference: https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy
the exact same link shows A as right one. If you set dest org for it, it will inherint for all other projects.
Correct answer is A