Your organization requires an external security auditor to inspect the configurations of Pub/Sub topics and subscriptions in a specific Google Cloud project. The auditor also needs read-only access to inspect the IAM policy bindings configured on that project, but must not be granted permissions to modify any resources or publish/consume messages. Which TWO roles should be assigned to the auditor at the project level to follow the principle of least privilege? (Select TWO.)
- Pub/Sub Viewer (`roles/pubsub.viewer`)Cevap
- Security Reviewer (`roles/iam.securityReviewer`)Cevap
- CEditor (`roles/editor`)
- DPub/Sub Admin (`roles/pubsub.admin`) applied at the Organization level
Cevap
Assigning Pub/Sub Viewer and Security Reviewer roles at the project level grants the minimum necessary read-only permissions for Pub/Sub configurations and IAM policies.
To satisfy least privilege for inspecting Pub/Sub configurations and IAM policies, specific predefined read-only roles must be selected at the target project level. The Pub/Sub Viewer role allows reviewing topic and subscription properties without modifying them or accessing data payloads. The Security Reviewer role permits auditing IAM bindings and security posture without permission to edit access rights.
Adım Adım Çözüm
Anahtar Kavram
Applying principle of least privilege using predefined IAM roles at the narrowest resource scope