GCP - Cloud IAM AdvancedYou want to give a team member access to only start and stop virtual machines but not delete or create them. Which IAM approach is best?ACreate a custom role with only 'start' and 'stop' permissionsBGive the 'roles/editor' role for full editing rightsCAssign the 'roles/viewer' role and let them request changesDAssign the predefined 'roles/compute.instanceAdmin' roleCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand predefined roles limits'roles/compute.instanceAdmin' and 'roles/editor' provide broad permissions including create and delete, which is too much.Step 2: Use custom role for precise permissionsCreating a custom role with only 'start' and 'stop' VM permissions limits access exactly as needed.Final Answer:Create a custom role with only 'start' and 'stop' permissions -> Option AQuick Check:Custom role = precise access control [OK]Quick Trick: Use custom roles for exact permission needs [OK]Common Mistakes:Using broad predefined roles without restrictionAssuming viewer role allows start/stopGiving editor role grants too many rights
Master "Cloud IAM Advanced" in GCP9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More GCP Quizzes Cloud Firestore and Bigtable - Firestore document model - Quiz 5medium Cloud Functions - Function runtime environments - Quiz 13medium Cloud IAM Advanced - IAM deny policies - Quiz 9hard Cloud Load Balancing - Health checks configuration - Quiz 3easy Cloud Monitoring and Logging - Log-based metrics - Quiz 2easy Cloud Monitoring and Logging - Cloud Trace for latency analysis - Quiz 4medium Cloud Monitoring and Logging - Alerting policies - Quiz 5medium Cloud Pub/Sub - Message retention and acknowledgment - Quiz 4medium Cloud Pub/Sub - Why messaging matters - Quiz 7medium Cloud Run - Cloud Run service concept - Quiz 5medium