Google Associate Cloud Engineer Practice Test 14

Question 130

A CPU-bound Kubernetes application must automatically add or remove Pod replicas based on utilization signals. What should be configured?

  1. Use Kubernetes Service
  2. Configure Horizontal Pod Autoscaler
  3. Use kubectl get pods
  4. Use Kubernetes StatefulSet

Explanation

Correct Answer

B:

The requested administrative outcome is autoscaling Kubernetes workloads horizontally; Horizontal Pod Autoscaler adjusts supported workload replica counts using resource or custom metrics.

Incorrect Answers

A:

Kubernetes Services select endpoints and provide stable discovery or networking for matching Pods; that applies to providing stable service discovery for changing Pods; the requested task is autoscaling Kubernetes workloads horizontally.

C:

Kubectl get pods lists Pod resources and their summarized readiness and lifecycle information; that solves problems involving inspecting Pods in a namespace, rather than the autoscaling Kubernetes workloads horizontally requirement.

D:

StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; the scenario specifies autoscaling Kubernetes workloads horizontally, which differs from maintaining stable identities for stateful workloads.

Question 131

A company requires control over key rotation and disablement for eligible stored object encryption. Which encryption choice fits?

  1. Use Cloud Storage public access prevention
  2. Use Cloud Storage uniform bucket-level access
  3. Use Cloud Storage customer-managed encryption keys
  4. Use Storage Transfer Service agents

Explanation

Correct Answer

C:

Customer-managed encryption keys use Cloud KMS keys for supported Cloud Storage data encryption; it is the direct control for using organization-controlled Cloud KMS keys.

Incorrect Answers

A:

Public access prevention disallows public exposure through relevant Cloud Storage access mechanisms; it is appropriate for blocking public exposure of bucket objects; here, the deciding requirement is using organization-controlled Cloud KMS keys.

B:

Uniform bucket-level access turns off object ACLs so IAM governs access to bucket objects; the supported outcome is disabling object ACL-based authorization, while the requested result is using organization-controlled Cloud KMS keys.

D:

Storage Transfer Service agents can read supported on-premises file systems for transfer jobs; the scenario specifies using organization-controlled Cloud KMS keys, which differs from enabling transfer jobs to read on-premises file shares.

Question 132

GKE Autopilot must schedule a Pod and account for its CPU and memory provisioning. What manifest fields are key?

  1. Grant Artifact Registry read access to GKE
  2. Enable GKE node autoscaling
  3. Configure Horizontal Pod Autoscaler
  4. Configure Pod resource requests

Explanation

Correct Answer

D:

Container resource requests guide Kubernetes scheduling and are central to GKE Autopilot resource provisioning; this corresponds to declaring resources required by a Pod, not a separate lifecycle action.

Incorrect Answers

A:

The identity used for image pulls needs appropriate Artifact Registry read permissions on the repository; it is appropriate for allowing Kubernetes image pulls from a private registry; here, the deciding requirement is declaring resources required by a Pod.

B:

This alternative focuses on adding compute nodes for unschedulable workloads; GKE cluster autoscaler adjusts supported node pool size to accommodate pending workload requests; the stem instead asks for declaring resources required by a Pod.

C:

Horizontal Pod Autoscaler adjusts supported workload replica counts using resource or custom metrics; Applying it would target autoscaling Kubernetes workloads horizontally, leaving the separate need for declaring resources required by a Pod.

Question 133

A resource hierarchy automation reports permission denied when creating a folder in the organization. Which access scope matters?

  1. Use a standalone organization for a new Free Trial account
  2. Create a folder in the resource hierarchy
  3. Use labels at resource creation
  4. Use folder creation permissions on parent

Explanation

Correct Answer

D:

Creating folders depends on permissions on the intended organization or parent folder, not merely project permissions; this is relevant because the outcome sought is granting folder creation authority on the parent resource.

Incorrect Answers

A:

Standalone organizations are automatically provisioned for eligible new Free Trial accounts with Google email addresses and do not require Cloud Identity; the decision here is about granting folder creation authority on the parent resource, not using an eligible standalone organization instead of a domain-linked one.

B:

Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; that mechanism handles grouping related projects under inherited governance; it does not configure granting folder creation authority on the parent resource.

C:

Resource labels are supplied on supported resources during creation or update and can be queried for categorization; that mechanism handles applying descriptive labels during provisioning; it does not configure granting folder creation authority on the parent resource.

Question 134

A JSON private key was accidentally committed to a public repository. What credential action should be prioritized?

  1. Avoid exporting service account keys
  2. Delete obsolete service account
  3. Rotate compromised service account key
  4. Grant service account token creator

Explanation

Correct Answer

C:

The requirement is invalidating exposed long-lived credentials; Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys.

Incorrect Answers

A:

This alternative focuses on avoiding unnecessary long-lived private keys; Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; the stem instead asks for invalidating exposed long-lived credentials.

B:

The alternative would address eliminating unused service-account principals; Deleting a service account removes its identity; accidental deletion may have limited recovery options and affect dependencies; the question instead requires invalidating exposed long-lived credentials.

D:

Service Account Token Creator enables supported token or signature operations for a target service account; that solves problems involving authorizing ephemeral impersonation credentials, rather than the invalidating exposed long-lived credentials requirement.

Question 135

A production relational database needs regional failover within a supported Cloud SQL HA configuration. What option should be enabled?

  1. Use Cloud SQL high availability
  2. Use Firestore
  3. Use Cloud SQL
  4. Use AlloyDB for PostgreSQL
  5. Use Cloud SQL read replicas

Explanation

Correct Answer

A:

Cloud SQL regional high availability uses an eligible standby in another zone for failover; Applied in this case, it delivers providing managed database failover across zones.

Incorrect Answers

B:

Firestore stores documents in collections and supports indexed queries and application client integrations; it concerns using a managed document-oriented database, and its normal effect does not provide providing managed database failover across zones.

C:

Cloud SQL provides managed MySQL, PostgreSQL and SQL Server database instances; it would help with running a managed relational database engine, but it does not directly implement providing managed database failover across zones.

D:

AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; the decision here is about providing managed database failover across zones, not migrating eligible PostgreSQL workloads to AlloyDB.

E:

Cloud SQL read replicas provide asynchronously replicated read capacity and do not directly handle primary writes; its operational role is offloading read-only queries from the primary; the needed capability is providing managed database failover across zones.

Question 136

An engineer cannot create a new project beneath a designated folder despite broad rights in an existing project. What scope needs examination?

  1. Use a project lien
  2. Move the project to a different folder
  3. Use project creation permissions at ancestor
  4. Use billing project grouping with folders

Explanation

Correct Answer

C:

Project creation and placement require relevant Resource Manager permissions on eligible ancestor resources; this corresponds to authorizing new-project creation on the intended hierarchy parent, not a separate lifecycle action.

Incorrect Answers

A:

For protecting a project from accidental removal, this could be relevant; A project lien can restrict deletion while the lien remains in place; the actual request concerns authorizing new-project creation on the intended hierarchy parent.

B:

Moving a project between eligible folders changes its ancestor path and inherited organization and IAM policies; this is a distinct control for placing a project beneath the correct departmental folder, rather than authorizing new-project creation on the intended hierarchy parent.

D:

Folder structure governs hierarchy; billing-account linkage is a separate association and can be shared; that mechanism handles separating governance via folders while sharing payment; it does not configure authorizing new-project creation on the intended hierarchy parent.

Question 137

An operator accidentally deletes rows and needs to restore to a timestamp before the error. What capability is relevant?

  1. Use Cloud SQL point-in-time recovery
  2. Use AlloyDB for PostgreSQL
  3. Use Cloud SQL read replicas
  4. Use Spanner

Explanation

Correct Answer

A:

The scenario depends on recovering database state at a chosen time; Point-in-time recovery uses supported transaction log capabilities to restore a Cloud SQL database state near a specified time.

Incorrect Answers

B:

AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; this is a distinct control for migrating eligible PostgreSQL workloads to AlloyDB, rather than recovering database state at a chosen time.

C:

Cloud SQL read replicas provide asynchronously replicated read capacity and do not directly handle primary writes; that solves problems involving offloading read-only queries from the primary, rather than the recovering database state at a chosen time requirement.

D:

The alternative would address running globally scalable relational database workloads; Spanner offers managed distributed relational databases with horizontal scale and strong consistency; the question instead requires recovering database state at a chosen time.

Question 138

A worldwide HTTP application needs one public anycast endpoint and layer-7 request routing. Which load balancer fits?

  1. Choose external passthrough Network Load Balancer
  2. Use Standard Network Service Tier
  3. Choose global external Application Load Balancer
  4. Choose internal passthrough Network Load Balancer

Explanation

Correct Answer

C:

Global external Application Load Balancers manage public HTTP(S) traffic using proxy-based layer-seven routing; this is relevant because the outcome sought is routing global HTTPS traffic by application rules.

Incorrect Answers

A:

For balancing external TCP or UDP traffic without proxy termination, this could be relevant; External passthrough Network Load Balancers distribute eligible TCP or UDP traffic to supported backends without terminating application protocols; the actual request concerns routing global HTTPS traffic by application rules.

B:

Standard Tier routes eligible traffic with more reliance on the public Internet and has feature limitations; this governs selecting a lower-cost regional networking tier, whereas the stated objective is routing global HTTPS traffic by application rules.

D:

The alternative would address using private network-layer balancing; Internal passthrough Network Load Balancers provide regional internal layer-four balancing with passthrough behavior; the question instead requires routing global HTTPS traffic by application rules.

Question 139

A Workload Identity Federation provider trusts GitHub Actions tokens. The organization wants to accept only jobs owned by its specific GitHub organization and avoid organization-name takeover risks. Which OIDC claim is the stronger basis for the provider attribute condition?

  1. assertion.aud with no organization filtering
  2. assertion.repository_owner compared only to the display name
  3. assertion.email matching the runner workstation address
  4. assertion.repository_owner_id matched against the approved numeric owner ID

Explanation

Correct Answer

D:

The repository_owner_id claim identifies the GitHub organization by a unique numeric ID. An attribute condition on this ID reduces name-reuse risk when one issuer serves multiple organizations.

Incorrect Answers

A:

The token audience identifies intended recipients, not the unique GitHub organization owner. An audience-only check would leave an issuer shared by many organizations too broad.

B:

A GitHub organization name is human-readable and may be reclaimed or reused after deletion. A stable numeric owner identifier is a stronger security boundary.

C:

The runner workstation email is not a dependable unique GitHub organization identity claim and does not directly constrain OIDC tokens to the authorized organization.

Question 140

Private VM egress is broken after public IPs were removed, and the team also needs diagnostic records about NAT translation failures. Choose TWO features.

  1. Reserve a static internal address
  2. Inspect Cloud NAT logs
  3. Configure Cloud NAT egress for a subnet
  4. Expand an existing subnet's CIDR
  5. Use Cloud DNS forwarding zone

Explanation

Correct Answers

B:

Cloud NAT logging records supported NAT translation and error information for troubleshooting; within the multi-part workflow of restoring private VM NAT egress and recording translation failures, this provides diagnosing NAT translation behavior.

C:

Cloud NAT provides managed outbound NAT through a Cloud Router configuration for eligible VPC resources; within the multi-part workflow of restoring private VM NAT egress and recording translation failures, this provides providing outbound connectivity for private instances.

Incorrect Answers

A:

Internal static IP reservations reserve eligible private addresses at the appropriate regional or global scope; the mechanism concerns allocating a stable private VPC IP and does not directly supply restoring private VM NAT egress and recording translation failures.

D:

A subnet's primary IPv4 range can be expanded to a larger supported CIDR under applicable restrictions; its focus is enlarging a subnet's available address space, rather than restoring private VM NAT egress and recording translation failures.

E:

Forwarding zones send matching DNS queries to configured target resolvers using supported connectivity; it is designed for forwarding private namespace lookups to enterprise DNS, rather than the needed restoring private VM NAT egress and recording translation failures.

Associate Cloud Engineer Practice Tests