Google Associate Cloud Engineer Practice Test 44

Question 430

An instance has no public IP and the security team disallows bastion access; an authorized user still needs SSH. Which access method helps?

  1. Use IAP TCP forwarding for SSH
  2. Use gcloud compute instances list
  3. Create a custom image from a disk
  4. Create an instance from an image

Explanation

Correct Answer

A:

The requested administrative outcome is tunneling SSH through identity-aware access; IAP TCP forwarding can proxy authorized SSH connections without a public VM address when prerequisites are met.

Incorrect Answers

B:

For obtaining current VM inventory data, this could be relevant; the instances list command queries Compute Engine VM metadata and supports filters and output formatting; the actual request concerns tunneling SSH through identity-aware access.

C:

For preparing reusable VM boot images, this could be relevant; Custom Compute Engine images provide reusable disk source content for new boot disks; the actual request concerns tunneling SSH through identity-aware access.

D:

VM boot disks can be initialized from public or custom images in compatible configurations; this is a distinct control for provisioning new machines from a standard OS image, rather than tunneling SSH through identity-aware access.

Question 431

An internal API gateway needs TLS and HTTP load distribution but no Internet-facing frontend. Which product variant fits?

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

Explanation

Correct Answer

A:

Internal Application Load Balancers proxy private HTTP(S) traffic to configured backends; that behavior is precisely what balancing private HTTP(S) workloads calls for.

Incorrect Answers

B:

Premium Tier uses Google's premium network and is required for certain global connectivity features; its operational role is using Premium-tier global networking capabilities; the needed capability is balancing private HTTP(S) workloads.

C:

Standard Tier routes eligible traffic with more reliance on the public Internet and has feature limitations; this is a distinct control for selecting a lower-cost regional networking tier, rather than balancing private HTTP(S) workloads.

D:

Internal passthrough Network Load Balancers provide regional internal layer-four balancing with passthrough behavior; the decision here is about balancing private HTTP(S) workloads, not load balancing internal TCP connections.

Question 432

A compliance team needs object deletion blocked for a governed duration. What storage policy should be applied?

  1. Use Cloud Storage public access prevention
  2. Use Cloud Storage customer-managed encryption keys
  3. Use a Cloud Storage retention policy
  4. Use Storage Transfer Service

Explanation

Correct Answer

C:

Bucket retention policies enforce minimum retention periods for supported objects and can be locked for stronger controls; this is the specific mechanism used for preventing early deletion of retained objects.

Incorrect Answers

A:

Public access prevention disallows public exposure through relevant Cloud Storage access mechanisms; Applying it would target preventing anonymous Cloud Storage grants, leaving the separate need for preventing early deletion of retained objects.

B:

Customer-managed encryption keys use Cloud KMS keys for supported Cloud Storage data encryption; the scenario specifies preventing early deletion of retained objects, which differs from using organization-controlled Cloud KMS keys.

D:

Storage Transfer Service orchestrates supported large-scale transfers into and between storage systems; the supported outcome is migrating bulk external object data, while the requested result is preventing early deletion of retained objects.

Question 433

A temporary operator needs an authenticated browser-accessible command environment with gcloud already installed. Which Google Cloud feature fits?

  1. Use Cloud Shell
  2. Authenticate with gcloud auth login
  3. Set gcloud's active project
  4. Use gcloud auth application-default login

Explanation

Correct Answer

A:

Cloud Shell provides a browser terminal with Google Cloud CLI tools and user-based authentication integration; its effect directly addresses using a preconfigured browser terminal.

Incorrect Answers

B:

Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; that mechanism handles establishing user credentials for the Cloud SDK; it does not configure using a preconfigured browser terminal.

C:

The active gcloud core/project property determines the default project for commands that honor it; the scenario specifies using a preconfigured browser terminal, which differs from setting the default gcloud project context.

D:

Application Default Credentials are discovered by client libraries separately from the CLI's normal active credential store; that mechanism handles making local ADC credentials available to libraries; it does not configure using a preconfigured browser terminal.

Question 434

Several HTTP services need URL-path or host-based entry routing within a Kubernetes cluster. What layer should be configured?

  1. Use Kubernetes Ingress or Gateway API
  2. Configure Vertical Pod Autoscaler
  3. Configure Pod resource requests
  4. Use Kubernetes StatefulSet

Explanation

Correct Answer

A:

Ingress and Gateway API resources describe supported application-layer entry routing to Kubernetes backends; this is the capability needed for routing external HTTP requests among Kubernetes Services.

Incorrect Answers

B:

Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; that applies to optimizing workload resource requests vertically; the requested task is routing external HTTP requests among Kubernetes Services.

C:

Container resource requests guide Kubernetes scheduling and are central to GKE Autopilot resource provisioning; it is not the focused action for routing external HTTP requests among Kubernetes Services; its primary use is declaring resources required by a Pod.

D:

StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; its operational role is maintaining stable identities for stateful workloads; the needed capability is routing external HTTP requests among Kubernetes Services.

Question 435

Database read latency is measured as a metric and should page responders after sustained violation. What alert configuration is appropriate?

  1. Use log-based counter metric
  2. Create an alerting snooze
  3. Create an absence alert
  4. Create a metric-threshold alert
  5. Use Monitoring notification channels
  6. Configure Cloud Monitoring custom metrics

Explanation

Correct Answer

D:

The scenario depends on detecting sustained monitoring metric breaches; Metric-threshold conditions compare time series with configured values and duration windows.

Incorrect Answers

A:

Counter log-based metrics count matching Cloud Logging entries and can be charted or alerted on; that applies to turning filtered log patterns into metrics; the requested task is detecting sustained monitoring metric breaches.

B:

Monitoring snoozes suppress notifications from matching alert policies for a defined period without deleting the policies; that mechanism handles silencing expected alerts during maintenance; it does not configure detecting sustained monitoring metric breaches.

C:

Metric absence conditions identify when expected time-series data stops arriving within a configured window; the decision here is about detecting sustained monitoring metric breaches, not detecting missing time-series signals.

E:

Notification channels identify targets for messages emitted by Monitoring alerting policies; the decision here is about detecting sustained monitoring metric breaches, not delivering alerts to supported communication endpoints.

F:

Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; that mechanism handles tracking application-specific numeric signals; it does not configure detecting sustained monitoring metric breaches.

Question 436

A distributed request is slow and the team needs to see timing across participating services. Which diagnostic tool fits?

  1. Use Cloud Profiler
  2. Use an organization log sink
  3. Use Logs Explorer
  4. Use Cloud Trace

Explanation

Correct Answer

D:

Cloud Trace collects and visualizes distributed request traces and span timings; this corresponds to analyzing latency along a request trace, not a separate lifecycle action.

Incorrect Answers

A:

Cloud Profiler analyzes sampled application profiles to reveal resource-heavy functions and code paths; it is not the focused action for analyzing latency along a request trace; its primary use is finding function-level CPU hot spots.

B:

Aggregated sinks at suitable resource ancestors can route descendant logs subject to sink configuration and permissions; that solves problems involving centralizing log routing across descendant projects, rather than the analyzing latency along a request trace requirement.

C:

Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; it is relevant when filtering operational log records interactively, not when the primary need is analyzing latency along a request trace.

Question 437

A private VM can sometimes reach an external API and sometimes fails due to translation or port allocation issues. Which logs help?

  1. Use external HTTP load balancer health checks
  2. Use Network Topology
  3. Inspect Cloud NAT logs
  4. Use Network Intelligence Center routes analysis

Explanation

Correct Answer

C:

Cloud NAT logging records supported NAT translation and error information for troubleshooting; that behavior is precisely what diagnosing NAT translation behavior calls for.

Incorrect Answers

A:

The alternative would address checking application health probe configuration; Load balancer health checks determine backend eligibility based on configured protocol, port and response conditions; the question instead requires diagnosing NAT translation behavior.

B:

Network Topology presents a graphical network representation from supported topology and telemetry data; it concerns mapping network relationships visually, and its normal effect does not provide diagnosing NAT translation behavior.

D:

For troubleshooting network route visibility, this could be relevant; Network Intelligence Center and route diagnostics expose supported route and connectivity insights; the actual request concerns diagnosing NAT translation behavior.

Question 438

A contractor requires only logs visibility but a project administrator proposes giving Owner for convenience. What security principle should guide the decision?

  1. Avoid basic Editor role
  2. Bind IAM role at organization scope
  3. Grant a predefined IAM role
  4. Avoid basic Owner role

Explanation

Correct Answer

D:

The requirement is preventing excessive project control privileges; Basic Owner grants sweeping project control and is rarely suitable for narrow operational tasks.

Incorrect Answers

A:

The alternative would address removing excessive resource mutation privileges; Basic Editor is a broad predefined-style basic role that can change many resources beyond a narrow task; the question instead requires preventing excessive project control privileges.

B:

Organization-level IAM allow bindings generally propagate to eligible child resources; Applying it would target inheriting a role throughout the organization tree, leaving the separate need for preventing excessive project control privileges.

C:

This alternative focuses on using a maintained service-specific permission set; Predefined roles contain Google-managed permission sets tailored to particular products and tasks; the stem instead asks for preventing excessive project control privileges.

Question 439

A workload policy specifically mandates confidential-computing support rather than just disk encryption. Which Compute Engine capability matches?

  1. Configure VM Manager
  2. Use Confidential VM
  3. Use VM reservation
  4. Use a custom VM image

Explanation

Correct Answer

B:

Confidential VM uses hardware confidential-computing capabilities to protect supported workloads during execution; the decisive property here is enabling hardware-supported memory confidentiality.

Incorrect Answers

A:

This alternative focuses on automating guest operating-system patch management; VM Manager provides OS inventory, patch and configuration capabilities for supported VM environments; the stem instead asks for enabling hardware-supported memory confidentiality.

C:

Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; the scenario specifies enabling hardware-supported memory confidentiality, which differs from securing eligible compute capacity before demand.

D:

Custom images capture disk contents for compatible boot or data disk creation; that solves problems involving baking standardized boot disk contents, rather than the enabling hardware-supported memory confidentiality requirement.

Question 440

An object-processing service must read, create, overwrite and delete objects in its bucket. Which role fits the required scope?

  1. Configure Cloud Storage lifecycle deletion
  2. Configure Cloud Storage lifecycle class transition
  3. Retrieve a noncurrent object generation
  4. Use generation preconditions for object writes
  5. Grant Storage Object Admin

Explanation

Correct Answer

E:

Storage Object Admin grants object management permissions without inherently granting all project administration rights; that behavior is precisely what administering object data within a bucket calls for.

Incorrect Answers

A:

Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; this is a distinct control for expiring old objects automatically, rather than administering object data within a bucket.

B:

Lifecycle management can change eligible object storage class when matching conditions are met; the scenario specifies administering object data within a bucket, which differs from automating storage-class transitions for older objects.

C:

Object generations identify versions of the same object name when versioning retains noncurrent versions; Applying it would target accessing a previous object generation, leaving the separate need for administering object data within a bucket.

D:

Cloud Storage generation preconditions condition object mutations on expected generation values; it is not the focused action for administering object data within a bucket; its primary use is enforcing optimistic write concurrency.

Associate Cloud Engineer Practice Tests