Google Cloud Professional Cloud DevOps Engineer — Question 2
You created a Stackdriver chart for CPU utilization in a dashboard within your workspace project. You want to share the chart with your Site Reliability Engineering
(SRE) team only. You want to ensure you follow the principle of least privilege. What should you do?
Answer options
- A. Share the workspace Project ID with the SRE team. Assign the SRE team the Monitoring Viewer IAM role in the workspace project.
- B. Share the workspace Project ID with the SRE team. Assign the SRE team the Dashboard Viewer IAM role in the workspace project.
- C. Click ג€Share chart by URLג€ and provide the URL to the SRE team. Assign the SRE team the Monitoring Viewer IAM role in the workspace project.
- D. Click ג€Share chart by URLג€ and provide the URL to the SRE team. Assign the SRE team the Dashboard Viewer IAM role in the workspace project.
Correct answer: C
Explanation
The correct answer is C because sharing the chart by URL allows the SRE team to view the chart without granting them unnecessary permissions to the entire workspace project. The other options involve sharing the Project ID and assigning roles that may provide broader access than needed, which does not adhere to the principle of least privilege.