Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 10


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?

Show Answer
Correct Answer: A

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.

Discussion

17 comments
Sign in to comment
coldparOption: A
Mar 15, 2020

Correct Answer is A not B

Agents89Option: A
May 2, 2020

Correct answer is A

YourCloudGuruOption: A
Sep 22, 2023

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.

PraxiiOption: A
Apr 25, 2023

Correct Answer is A. Reference:- https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy

guicaneOption: A
Oct 24, 2023

A is correct

thewalkerOption: A
Nov 22, 2023

A As per, https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy

sidobillOption: A
Jun 9, 2024

A is right. B will propagate for all projects, not desired as per case description

rosh199Option: A
Jul 19, 2023

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.

Captain1212Option: A
Sep 1, 2023

Yes, A is the right answer

AcielanaOption: A
Sep 28, 2023

Correct answer is A

gsmasadOption: A
Nov 1, 2023

Because the roles to be copied to a new project in the same organization

BAofBKOption: A
Nov 5, 2023

The correct answer is A

nudiiiirOption: A
Dec 29, 2023

A true

qubratOption: A
Jan 10, 2024

it's A

Tavi_14Option: A
Jan 23, 2024

A is correct answer

subha.elumalaiOption: B
May 23, 2024

Correct Answer: B Reference: https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy

sidobill
Jun 9, 2024

the exact same link shows A as right one. If you set dest org for it, it will inherint for all other projects.

AmolbhombeOption: A
Jun 12, 2024

Correct answer is A