Associate Cloud Engineer · ~20% of the exam
Associate Cloud Engineer: Configuring access and security practice questions
10 free Configuring access and security questions for the Google Cloud Associate Cloud Engineer (Associate Cloud Engineer) exam, each with the correct answer and an explanation for every option.
What this domain covers
Configuring identity and access: IAM policies, role types and service accounts, plus the access controls around them such as Identity-Aware Proxy, VPC Service Controls and Cloud KMS keys.
- Exam weight
- ~20%
- On a real exam
- ≈ 11 questions
- In our bank
- 87 questions
Topics that come up most
- Basic, predefined and custom roles
- IAM policy inheritance
- Service accounts and impersonation
- Short-lived credentials
- Workload Identity Federation
How to study it
Know when to use a service account instead of a user and why keys should be avoided; it's tested repeatedly.
Sample Configuring access and security questions
Try each one before opening the answer. Original questions written to the official exam objectives.
Question 1
A security team enables "Block project-wide SSH keys" on a Compute Engine VM that processes sensitive data. Which statement best explains how this setting reduces risk?
- AA leaked key in project metadata could open every VM that accepts project keys; this VM now accepts only its own instance-level keys
- BThe VM then requires OS Login with 2-step verification for every SSH session, replacing metadata-based keys entirely
- CThe VM's external IP address is removed, so SSH connections must go through Identity-Aware Proxy TCP forwarding
- DThe VM's attached service account can no longer use project-level IAM permissions when calling Google Cloud APIs
Show answer and explanation
Answer: A) A leaked key in project metadata could open every VM that accepts project keys; this VM now accepts only its own instance-level keys
Project-wide SSH keys are accepted by every VM that doesn't block them, so one leaked key can expose the whole project. Blocking them on a sensitive VM limits SSH access to keys added to that VM's own metadata.
- ACorrect. Keys stored in project metadata are accepted by every VM in the project that doesn't block them, so one compromised project key exposes all of those VMs. With block-project-ssh-keys set to TRUE, the VM ignores project metadata keys and accepts only keys added to its own instance metadata, which shrinks the blast radius.
- BIncorrect. Blocking project-wide keys does not turn on OS Login or 2-step verification. Those are separate settings (enable-oslogin and related metadata). The VM still accepts SSH keys from its own instance metadata.
- CIncorrect. This setting only controls which metadata SSH keys the VM accepts. It does not change network interfaces, external IP addresses, or firewall and IAP access paths.
- DIncorrect. Service account authorization comes from IAM roles and access scopes, not SSH key metadata. Blocking project-wide SSH keys has no effect on the VM's API permissions.
Question 2
Two business units each have their own VPC Service Controls perimeter. A service account in project analytics-a (in perimeter A) needs read-only access to one Cloud Storage bucket in project shared-data-b (in perimeter B). The perimeters must stay separate, and no other services or directions of access should be opened. Which configuration follows Google's recommended approach?
- AAn egress rule on perimeter A and an ingress rule on perimeter B, scoped to that Cloud Storage access
- BA perimeter bridge that contains both analytics-a and shared-data-b
- CAdd analytics-a to perimeter B as well, so it belongs to both perimeters
- DAdd Cloud Storage to perimeter B's VPC accessible services list
Show answer and explanation
Answer: A) An egress rule on perimeter A and an ingress rule on perimeter B, scoped to that Cloud Storage access
Google recommends ingress and egress rules over perimeter bridges for sharing between VPC Service Controls perimeters. An egress rule on the source perimeter plus an ingress rule on the destination can allow exactly one identity, service, and method, while a bridge opens bidirectional access.
- ACorrect. Ingress and egress rules give fine-grained control over access between perimeters. For cross-perimeter access, the source perimeter needs an egress rule and the destination perimeter needs an ingress rule. Both can be limited to specific identities, projects, services, and methods. Google recommends these rules over perimeter bridges.
- BIncorrect. A perimeter bridge is bidirectional. It gives the bridged projects equal access to each other's protected services within the bridge's scope, so it cannot limit access to one bucket, one service, or one direction. Google recommends ingress and egress rules instead.
- CIncorrect. A project can belong to only one regular service perimeter. Communication across the perimeter boundary has to be allowed with ingress and egress rules (or, in older designs, a bridge).
- DIncorrect. VPC accessible services limits which services can be reached from networks inside a perimeter. It does not let a client in another perimeter access protected resources across the boundary.
Question 3
A team stores Terraform remote state in a Cloud Storage bucket. They realize the state file may contain sensitive values, such as generated database passwords, in plaintext. Which approach best protects the state?
- ALimit bucket IAM access to the CI/CD service account and a few admins, enforce public access prevention, and add customer-managed encryption
- BGrant Storage Object Viewer on the bucket to all project developers so they can review state, and rely on default encryption
- CCommit the state file to the Git repository with the Terraform configuration so every state change goes through pull request review
- DApply a locked retention policy to the bucket so state objects cannot be changed, which keeps their secret values from being read
Show answer and explanation
Answer: A) Limit bucket IAM access to the CI/CD service account and a few admins, enforce public access prevention, and add customer-managed encryption
Terraform state can hold secrets in plaintext, so protect the state bucket as strictly as the secrets themselves: tight IAM access, public access prevention, and stronger encryption, with state kept out of version control.
- ACorrect. Google recommends that only the build system and highly privileged administrators can access the remote state bucket. It also recommends enforcing public access prevention, using uniform bucket-level access so IAM controls access, and adding customer-supplied or customer-managed encryption keys on top of default encryption at rest.
- BIncorrect. Giving broad read access exposes any plaintext secrets in the state to everyone with that role. Default encryption at rest does not stop authorized readers from seeing the contents.
- CIncorrect. Google recommends a remote Cloud Storage backend specifically to keep state and sensitive information out of version control. Committing state to Git spreads secrets to everyone with repository access.
- DIncorrect. A retention policy blocks deletion and overwriting, which would get in the way of normal Terraform state updates. It does nothing to restrict who can read the objects, so it does not protect the secrets.
Question 4
A company's public-facing application, behind an external Application Load Balancer, only serves customers in a small set of countries. As a defense-in-depth measure, the security team wants to deny all requests that come from client IP addresses in any other country. Which Cloud Armor capability should they configure?
- AA custom security policy rule that matches on origin.region_code and denies requests from countries outside the approved list
- BPreconfigured WAF rules that inspect request contents for attack signatures such as SQL injection and cross-site scripting
- CAdaptive Protection, which uses machine learning to detect anomalous Layer 7 traffic and suggest rules to mitigate attacks
- DNamed IP address lists that match traffic from the published IP ranges of specific third-party providers
Show answer and explanation
Answer: A) A custom security policy rule that matches on origin.region_code and denies requests from countries outside the approved list
Cloud Armor geo-based access control uses the origin.region_code attribute in custom rules to allow or deny requests by the client's country. WAF rules, Adaptive Protection and named IP lists solve other problems.
- ACorrect. The origin.region_code attribute holds the ISO 3166-1 alpha-2 country code linked to the client IP. A custom rule can match on it to allow or deny traffic by country, which is geo-based access control.
- BIncorrect. Preconfigured WAF rules detect attack patterns in request contents, such as the OWASP Top 10. They do not filter requests by the client's country.
- CIncorrect. Adaptive Protection looks for Layer 7 DDoS-style anomalies and suggests mitigations. It does not apply a fixed country allowlist or denylist.
- DIncorrect. Named IP address lists hold the IP ranges of particular providers, such as CDNs. They identify those providers, not the country of an arbitrary client.
Question 5
In an older project, the Compute Engine default service account was automatically granted the Editor role on the project. A team plans to let new VMs use this default service account for an application that only reads objects from one Cloud Storage bucket. Why does Google recommend against this?
- AEditor grants far more access than the app needs, violating least privilege
- BThe default service account cannot be granted access to Cloud Storage buckets
- CThe default service account can be attached to only one VM per project at once
- DVMs using the default service account must store and rotate its keys manually
Show answer and explanation
Answer: A) Editor grants far more access than the app needs, violating least privilege
Where the Compute Engine default service account holds Editor, attaching it to VMs grants far more access than most workloads need, which violates least privilege. Google recommends user-managed service accounts with narrowly scoped roles. New organizations block the automatic Editor grant by default.
- ACorrect. Editor is a broad basic role that allows modifying most resources in the project. If the VM were compromised, an attacker would get all of that access. Google recommends a user-managed service account granted only the roles the workload needs, such as read access to the single bucket. That is also why the iam.automaticIamGrantsForDefaultServiceAccounts constraint, enforced by default for organizations created on or after May 3, 2024, blocks the automatic Editor grant.
- BIncorrect. The default service account is a normal IAM principal and can be granted roles on Cloud Storage buckets. The concern is excessive privilege, not a lack of access.
- CIncorrect. Many VMs in a project can use the same service account at the same time. Sharing one broadly privileged identity across many VMs actually makes the least-privilege problem worse.
- DIncorrect. A VM with an attached service account gets short-lived credentials from the metadata server. Google manages these, so no user-managed key needs to be stored or rotated.
Question 6
A regulated company needs a log record of each time Google support or engineering staff access the company's content, including the reason for the access, the resource involved, and when it happened. These records must be separate from the logs of the company's own users' activity. Which Google Cloud feature provides these records?
- AAccess Transparency, which writes logs of Google personnel actions on customer content
- BAccess Approval, which requires the company to approve Google personnel access requests
- CData Access audit logs, which record reads and writes of user-provided resource data
- DSystem Event audit logs, which record actions that Google systems take on resources
Show answer and explanation
Answer: A) Access Transparency, which writes logs of Google personnel actions on customer content
Access Transparency logs record when Google personnel access customer content and why. Cloud Audit Logs cover the customer's own principals and Google's automated system events, and Access Approval controls access but does not log it.
- ACorrect. Access Transparency logs record actions that Google personnel take when accessing Customer Data. Each entry includes the affected resource and action, the time, the justification, and information about who accessed it. The logs are delivered through Cloud Logging.
- BIncorrect. Access Approval lets the company approve or dismiss requests from Google personnel before they access data. It is a control on access, not the feature that records the access. The log of what Google personnel actually did comes from Access Transparency, which is often used together with Access Approval.
- CIncorrect. Data Access audit logs record API calls made by principals in the customer's environment that read or modify data. They don't record Google support or engineering staff accessing content.
- DIncorrect. System Event audit logs cover automated actions by Google systems that change resource configuration, such as live migration. They don't record human Google personnel accessing customer content or the reason for that access.
Question 7
A company has a strict internal requirement: its encryption key material must stay under its own control and must never be stored or cached anywhere in Google's infrastructure. The company still wants to use that key material to protect data in supported Google Cloud services. Which approach meets this requirement?
- ACreate a Cloud KMS key with the EXTERNAL protection level using Cloud External Key Manager (Cloud EKM), and use it as the CMEK for those services
- BCreate a Cloud KMS key with the HSM protection level so it is generated inside a Cloud HSM module, and use it as the CMEK
- CGenerate the key on premises, then import it into a Cloud KMS key version, and use it as the CMEK
- DRely on Google's default encryption at rest, which encrypts all stored data without any configuration
Show answer and explanation
Answer: A) Create a Cloud KMS key with the EXTERNAL protection level using Cloud External Key Manager (Cloud EKM), and use it as the CMEK for those services
Cloud EKM keys use the EXTERNAL protection level: the key material stays in a key manager the customer controls and is never stored or cached in Google Cloud. Software, HSM, and imported keys, as well as default encryption, all keep key material inside Google's infrastructure.
- ACorrect. With Cloud EKM, the key material is created and stored in the company's own external key management system. It never leaves that system and is never cached or stored in Google Cloud. The Cloud EKM key is still used as a customer-managed encryption key (CMEK) for supported services.
- BIncorrect. Cloud HSM keys are generated and stored in hardware security modules that Google operates in its own data centers. The key material therefore resides in Google's infrastructure, which breaks the requirement.
- CIncorrect. Creating the key on premises gives the company control over how it is generated. However, importing it copies the key material into Cloud KMS, so it ends up stored in Google's infrastructure.
- DIncorrect. Default encryption uses keys that Google creates and manages inside its own infrastructure. The company has no control over that key material.
Question 8
A team plans to put several production projects inside a new VPC Service Controls perimeter. Before any request is denied, they want to see which existing API requests would violate the planned perimeter so they can adjust the configuration. What should they do?
- ACreate the perimeter in dry run mode and review its logged violations
- BEnforce the perimeter right away and review the audit log denials
- CEnable VPC Flow Logs on the subnets and review their recorded traffic
- DRun Policy Troubleshooter against the principals that call these APIs
Show answer and explanation
Answer: A) Create the perimeter in dry run mode and review its logged violations
A VPC Service Controls perimeter in dry run mode logs requests that would violate it without denying them. Teams use it to test a configuration safely before enforcing it.
- ACorrect. In dry run mode, requests that violate the perimeter are logged as if it were enforced, but they aren't denied. The team can analyze the logs, fix the configuration, and then enforce it.
- BIncorrect. An enforced perimeter blocks violating requests immediately, so production traffic would be disrupted before the team could adjust the configuration.
- CIncorrect. VPC Flow Logs record network flows to and from VM interfaces. They don't evaluate Google API requests against a service perimeter's rules, so they can't show which requests a planned perimeter would block.
- DIncorrect. Policy Troubleshooter explains IAM allow and deny decisions. It doesn't simulate a planned service perimeter that hasn't been created yet.
Question 9
A team is creating a global Secret Manager secret. Company policy says the secret's payload may be stored only in europe-west1 and europe-west4, and it must be kept in both regions for availability. How should the team configure the secret?
- AUse user-managed replication with europe-west1 and europe-west4 as replica locations
- BUse automatic replication and encrypt the secret with a customer-managed key in europe
- CCreate a regional secret in europe-west1 and let it replicate to europe-west4
- DUse automatic replication and add labels naming europe-west1 and europe-west4
Show answer and explanation
Answer: A) Use user-managed replication with europe-west1 and europe-west4 as replica locations
Only user-managed replication lets you choose an exact set of regions for a global secret's replicas. Automatic replication doesn't restrict locations, and a regional secret lives in just one region.
- ACorrect. User-managed replication copies the payload only to the locations you configure, and you can list several regions. That meets both the location limit and the two-region availability requirement.
- BIncorrect. With automatic replication, the payload is replicated without restriction to locations Google chooses. A customer-managed encryption key controls who can decrypt the data, not where the replicas are stored.
- CIncorrect. A regional secret is stored in a single location and isn't replicated to another region. It meets the residency rule but not the requirement to keep copies in both regions.
- DIncorrect. Labels are metadata for organizing and filtering resources. They have no effect on where Secret Manager stores replicas, so automatic replication still replicates without restriction.
Question 10
A platform team creates many new GKE clusters, and every cluster is registered to the company's fleet when it is created. They want Binary Authorization enforcement turned on automatically for each new cluster, so that nobody has to remember a per-cluster flag. What should they configure?
- AA fleet-level default cluster configuration for Binary Authorization that new member clusters inherit when they are created
- BA Config Sync repository that syncs a Binary Authorization policy YAML file into each cluster's kube-system namespace
- CPod Security Admission set to the 'restricted' Pod Security Standard on every namespace in each new cluster
- DA Cloud Asset Inventory feed that sends a Pub/Sub alert when a new cluster is created without Binary Authorization
Show answer and explanation
Answer: A) A fleet-level default cluster configuration for Binary Authorization that new member clusters inherit when they are created
Fleets support default cluster configurations, including Binary Authorization, that GKE applies automatically to new clusters registered to the fleet when they are created. The policy itself stays a project-level resource.
- ACorrect. You can set Binary Authorization as a fleet-level default configuration, using an evaluation mode and policy bindings. GKE applies it automatically to new clusters that are registered to the fleet when they are created. Existing clusters are not changed by fleet defaults.
- BIncorrect. For GKE, a Binary Authorization policy is a Google Cloud project resource, not a Kubernetes object that you sync into a namespace. Syncing a YAML file into the cluster doesn't turn on enforcement for the cluster.
- CIncorrect. Pod Security Admission restricts pod security settings, such as privileged mode and host access. It doesn't check image signatures or attestations, which is what Binary Authorization enforces.
- DIncorrect. An asset feed only detects and reports the change after it happens. It doesn't enable or enforce Binary Authorization, so someone would still have to fix each cluster by hand.
Commonly confused in Configuring access and security
Side-by-side explainers for concepts this domain's questions like to swap.
More Configuring access and security questions, one per page
- A user is granted the Compute Viewer role (roles/compute.viewer) on the Engineering folder.
- A data analyst needs to read objects in one Cloud Storage bucket, reports-bucket.
- A company hosts an internal web application on Compute Engine behind an external HTTPS load balancer.
- A team is planning the IAM setup for a new project. They need to decide when to use predefined roles and when to invest…
- An internal web application runs on Compute Engine behind an external Application Load Balancer, and Identity-Aware…
- A team protects BigQuery with a VPC Service Controls perimeter. They want to allow requests from outside the perimeter…
- A project contains dozens of Cloud Storage buckets. A data team needs roles/storage.objectViewer, but only on buckets…
- VMs inside a VPC Service Controls perimeter use Private Google Access to reach Google APIs.
Configuring access and security: FAQs
How much of the Associate Cloud Engineer exam is Configuring access and security?
Configuring access and security is about 20% of the Associate Cloud Engineer exam by the official exam guide's weighting, which on a 55-question form works out to roughly 11 questions. The real exam's exact split varies by form.
What does the Configuring access and security domain cover?
Configuring identity and access: IAM policies, role types and service accounts, plus the access controls around them such as Identity-Aware Proxy, VPC Service Controls and Cloud KMS keys.
How should I study Configuring access and security for Associate Cloud Engineer?
Know when to use a service account instead of a user and why keys should be avoided; it's tested repeatedly.
Where can I practise more Configuring access and security questions?
This page has 10 free Configuring access and security questions with answers. CertRidge's Associate Cloud Engineer question bank has 87 questions in this domain. Every practice exam result breaks your score down by domain, and Review Mode re-drills the questions you missed.
Other Associate Cloud Engineer domains
- Setting up a cloud solution environment~20% of the exam
- Planning and implementing a cloud solution~30% of the exam
- Ensuring the successful operation of a cloud solution~30% of the exam
Also: 15 free questions across all domains, the Associate Cloud Engineer cheat sheet and the study guide.
Get Configuring access and security exam-ready
The full Associate Cloud Engineer bank has 87 Configuring access and security questions. Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.
Not affiliated with Google Cloud; questions are original and never copied from the real exam.