Google Cloud Associate Cloud Engineer (ACE) · 20% practice allocation

Google Cloud ACE: Configuring access and security Practice Questions

5 free sample questions from the Configuring access and security domain, with answers and explanations. The full ACE bank has 251 questions across 5 domains. Questions are scenario-based and written from the official Google Cloud exam guide.

1.

You are investigating why a service account cannot read secrets from Secret Manager. The service account has roles/secretmanager.secretAccessor assigned at the project level. Which of the following should you check FIRST?

  • A. Whether the Secret Manager API is enabled in the project
  • B. Whether resource-level IAM bindings on the secret itself are restricting access✓ Correct
  • C. Whether the service account is running on a GCE instance with sufficient disk space
  • D. Whether the service account's key material is stored securely
Explanation

The correct answer is to check resource-level IAM bindings on the secret. Secret Manager supports resource-level access control in addition to project-level bindings. Even if a service account has the secretAccessor role at the project level, explicit allow policies on individual secrets can further restrict access. If the secret denies the service account, the role grant at the project level won't override it. If the API were disabled, the error would indicate API_NOT_ENABLED. Key storage and disk space are unrelated to Secret Manager access permissions.

2.

You need to grant a team member read-only access to Compute Engine instances in a project. Which of the following is the MOST restrictive role that allows this?

  • A. roles/compute.instanceAdmin
  • B. roles/owner
  • C. roles/compute.viewer✓ Correct
  • D. roles/editor
Explanation

roles/compute.viewer is the correct answer because it provides read-only access to Compute Engine resources, including the ability to list and view instances, without modification permissions. This follows the principle of least privilege. roles/compute.instanceAdmin allows full instance management (create, modify, delete), which is excessive for read-only access. roles/editor and roles/owner are primitive roles that grant far too many permissions across all services, violating least privilege principles.

3.

Your organization has implemented an organization policy constraint constraints/iam.disableServiceAccountCreation at the organization level. A project under this organization has been granted an exception to allow service account creation. A team member with roles/iam.admin on the project attempts to create a new service account and receives a PERMISSION_DENIED error. What is the primary reason?

  • A. The constraint is enforced at the organization level, but the service account creation was blocked by the same admin who granted the iam.admin role.
  • B. The exception must be explicitly granted to the user or group attempting the action, not just to the project.✓ Correct
  • C. The team member needs both roles/iam.admin AND roles/editor to bypass organization policy constraints.
  • D. The roles/iam.admin role does not include the ability to create service accounts; roles/editor is required.
  • E. Organization policy constraints at the organization level cannot be overridden by project-level exceptions.
Explanation

The correct answer is option 2. Organization policy constraints enforced at the organization level apply to all projects within that organization, and the exceptions (allow list) apply only at the level where the constraint is defined or lower. However, the key point is that if a constraint is enforced (blocklist mode) at the organization level, project-level exceptions cannot override it unless explicitly configured in the policy. In this case, the constraint is set to disable service account creation, and an exception at the project level would be needed in the policy itself—just having the exception granted isn't sufficient if the constraint is in enforcement mode at a higher level. Option 1 is incorrect because roles/iam.admin does include permissions to create service accounts (iam.serviceAccounts.create). Option 3 is incorrect because the user has the iam.admin role, which is the correct IAM role for this operation. Option 4 is incorrect and illogical. Option 5 is incorrect because roles/editor is not required; iam.admin is the correct role.

4.

You are implementing Workload Identity for a GKE cluster in project gke-project. A pod running under Kubernetes Service Account my-app@gke-project.iam.gserviceaccount.com needs to authenticate to the Kubernetes Service Account (KSA) app-ksa in the default namespace. After configuring the necessary policy bindings, the pod still cannot retrieve credentials when calling Google APIs. What is the most likely oversight?

  • A. The workload identity binding at the project level is missing; you must grant roles/iam.workloadIdentityUser on the Google Service Account from the KSA principal✓ Correct
  • B. You must enable the Workload Identity Pool API in the project before Workload Identity on GKE will function
  • C. The KSA app-ksa in the default namespace does not have an annotation linking it to the Google Service Account; you need to add the annotation workload.identity/google-service-account
  • D. Workload Identity requires that the Google Service Account name exactly match the KSA name; rename the KSA to match
Explanation

The correct answer is option 2. Workload Identity requires that the Kubernetes Service Account (KSA) be annotated with iam.gke.io/gcp-service-account=<gsa-email> to establish the linkage. Without this annotation, the KSA cannot authenticate as the Google Service Account (GSA), even if IAM bindings are correct. Option 1 is wrong; the names do not need to match exactly (they can be different). Option 3 describes the IAM binding requirement (roles/iam.workloadIdentityUser must be granted), which is necessary but not sufficient; the annotation is the missing piece in this scenario. Option 4 is incorrect; Workload Identity on GKE does not use a Workload Identity Pool (which is a separate federated identity feature). Workload Identity on GKE uses metadata server token exchange.

5.

Your organization has a strict policy requiring audit trails for all access to sensitive resources. You need to determine which type of Cloud Audit Logs would record when a user executes gcloud secrets versions access secret-name --secret=my-secret to read a secret. Which audit log type captures this activity?

  • A. System Event Logs only
  • B. Admin Activity Logs and Data Access Logs together
  • C. Admin Activity Logs only
  • D. Data Access Logs only✓ Correct
Explanation

The correct answer is option 2. Reading secret data (the actual content of a secret version) is classified as a data access operation and is logged in Cloud Audit Logs' Data Access Logs. Admin Activity Logs (option 1) record administrative actions like creating/deleting resources, changing IAM policies, and managing service account keys—not reading data. Data Access Logs capture reads of actual data resources, such as reading BigQuery tables, Cloud Storage objects, or Secret Manager secret versions. System Event Logs (option 3) are a separate category for system-level events and are not relevant here. Option 4 is incorrect because only Data Access Logs are used for this operation.

Test yourself across every ACE domain

The free ACE practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Configuring access and security study guide (ACE) →

Other ACE domains

← All Google Cloud Associate Cloud Engineer study resources