ASSOCIATE-CLOUD-ENGINEER · Question #266
Your continuous integration and delivery (CI/CD) server can't execute Google Cloud actions in a specific project because of permission issues. You need to validate whether the used service account…
The correct answer is A. Open the Google Cloud console, and check the Identity and Access Management (IAM) roles. To validate if a service account has appropriate roles for Google Cloud actions, you should directly inspect the IAM roles assigned to that service account within the specific project in the Google Cloud console.
Question
Options
- AOpen the Google Cloud console, and check the Identity and Access Management (IAM) roles
- BOpen the Google Cloud console, and check the organization policies.
- COpen the Google Cloud console, and run a query to determine which resources this service
- DOpen the Google Cloud console, and run a query of the audit logs to find permission denied
How the community answered
(42 responses)- A90% (38)
- B2% (1)
- C5% (2)
- D2% (1)
Why each option
To validate if a service account has appropriate roles for Google Cloud actions, you should directly inspect the IAM roles assigned to that service account within the specific project in the Google Cloud console.
The most direct and effective way to validate if a service account has the appropriate roles for a specific project is to navigate to the Identity and Access Management (IAM) section in the Google Cloud console and examine the roles granted to that service account.
Organization policies define constraints across resources but do not directly show the specific roles assigned to a service account within a project, which is necessary to validate its permissions.
While understanding resource access is important, this option is vague and not the primary method to check assigned roles for a service account; checking IAM roles directly is more efficient.
Reviewing audit logs for 'permission denied' errors will confirm that there are permission issues, but it does not directly show the roles assigned to the service account, which is what needs to be validated.
Concept tested: Verifying IAM permissions for service accounts
Source: https://cloud.google.com/iam/docs/overview
Topics
Community Discussion
No community discussion yet for this question.