Google Associate Cloud Engineer Practice Test 42

Question 410

A valid request performs longer processing than the current timeout and consistently returns a timeout failure. What service setting should be adjusted?

  1. Update Cloud Run maximum instances setting
  2. Roll back Cloud Run traffic
  3. Update Cloud Run concurrency setting
  4. Configure Cloud Run request timeout

Explanation

Correct Answer

D:

What matters is allowing longer supported Cloud Run HTTP processing; Cloud Run's request timeout bounds each service request and can be increased within supported limits.

Incorrect Answers

A:

Cloud Run maximum instances configures an upper scaling limit while documented transient overages can occur and capacity limits are not a substitute for downstream protection; it is not the focused action for allowing longer supported Cloud Run HTTP processing; its primary use is limiting Cloud Run autoscaled instance count.

B:

Cloud Run can shift service traffic back to a previous retained revision without requiring another build; it is relevant when reverting request routing to an earlier Cloud Run revision, not when the primary need is allowing longer supported Cloud Run HTTP processing.

C:

This alternative focuses on limiting simultaneous requests processed by each instance; Cloud Run container concurrency limits the configured simultaneous requests per instance and affects how the platform distributes load and creates instances; the stem instead asks for allowing longer supported Cloud Run HTTP processing.

Question 411

A legacy application expects POSIX-style network file access across VM workers rather than an object API. What service applies?

  1. Use Filestore
  2. Use Spanner
  3. Use Memorystore
  4. Use Firestore
  5. Use AlloyDB for PostgreSQL

Explanation

Correct Answer

A:

Filestore supplies managed NFS file systems that can be mounted by supported compute clients; this corresponds to sharing files through managed NFS, not a separate lifecycle action.

Incorrect Answers

B:

Spanner offers managed distributed relational databases with horizontal scale and strong consistency; the decision here is about sharing files through managed NFS, not providing scalable strongly consistent relational transactions.

C:

Memorystore provides managed in-memory data-store options for caching and similar workloads; it is relevant when operating a low-latency managed cache, not when the primary need is sharing files through managed NFS.

D:

Firestore stores documents in collections and supports indexed queries and application client integrations; it is relevant when storing application documents without relational tables, not when the primary need is sharing files through managed NFS.

E:

AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; it is not the focused action for sharing files through managed NFS; its primary use is migrating eligible PostgreSQL workloads to AlloyDB.

Question 412

A database migration team has a supported SQL dump in a bucket and needs its contents restored into a Cloud SQL instance. Which operation fits?

  1. Use Cloud SQL Enterprise Plus index advisor
  2. Check Cloud SQL connection limits
  3. Use Cloud SQL import from Cloud Storage
  4. Promote a Cloud SQL read replica

Explanation

Correct Answer

C:

Cloud SQL import operations ingest supported SQL and CSV files from authorized Cloud Storage paths; its effect directly addresses importing a database dump from object storage.

Incorrect Answers

A:

Cloud SQL index advisor generates index recommendations on supported Enterprise Plus instances with the required Query Insights features enabled; that applies to getting index recommendations from a supported Enterprise Plus instance; the requested task is importing a database dump from object storage.

B:

For aligning client concurrency with database connection capacity, this could be relevant; Cloud SQL and underlying database engines have connection capacity considerations requiring pooling and appropriate instance sizing; the actual request concerns importing a database dump from object storage.

D:

Promoting a Cloud SQL read replica ends replication and makes the eligible replica an independent writable instance; its purpose differs: promoting an eligible database replica is separate from importing a database dump from object storage.

Question 413

An automation identity has Owner on a project despite only uploading objects. Which corrective approach should be taken?

  1. Avoid basic Owner role
  2. Avoid basic Editor role
  3. Use the basic Viewer role cautiously
  4. Bind IAM role at organization scope

Explanation

Correct Answer

A:

Basic Owner grants sweeping project control and is rarely suitable for narrow operational tasks; this is the specific mechanism used for replacing overly broad administration access.

Incorrect Answers

B:

Basic Editor is a broad predefined-style basic role that can change many resources beyond a narrow task; that mechanism handles removing excessive resource mutation privileges; it does not configure replacing overly broad administration access.

C:

Basic Viewer confers broad view access to many resource types rather than only one specific service; its purpose differs: limiting the scope of broad read access is separate from replacing overly broad administration access.

D:

Organization-level IAM allow bindings generally propagate to eligible child resources; it concerns granting organization-wide audit access, and its normal effect does not provide replacing overly broad administration access.

Question 414

A development team keeps downloading user-managed keys despite a new security policy. What organization-level restriction can reduce this risk?

  1. Disable service account key creation by policy
  2. Avoid exporting service account keys
  3. Audit service-account key inventory
  4. Grant service account token creator

Explanation

Correct Answer

A:

Organization Policy Service includes supported constraints controlling user-managed service account key creation; that behavior is precisely what enforcing a keyless service-account policy calls for.

Incorrect Answers

B:

Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; it would help with avoiding unnecessary long-lived private keys, but it does not directly implement enforcing a keyless service-account policy.

C:

The alternative would address reviewing account keys for rotation or removal; Service-account key listings expose user-managed key metadata, which can be audited and managed; the question instead requires enforcing a keyless service-account policy.

D:

Service Account Token Creator enables supported token or signature operations for a target service account; it would help with delegating service-account token generation, but it does not directly implement enforcing a keyless service-account policy.

Question 415

A server needs to mount data from last night's disk backup without overwriting the only current volume. What should be created?

  1. Create a disk snapshot
  2. Restore a new disk from a snapshot
  3. Change a VM machine type
  4. Create an instance from an image

Explanation

Correct Answer

B:

A snapshot can be the source for creating a new compatible disk, enabling recovery workflows; this corresponds to provisioning a restored disk from backup, not a separate lifecycle action.

Incorrect Answers

A:

Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks; its operational role is protecting attached persistent data with snapshots; the needed capability is provisioning a restored disk from backup.

C:

VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; that mechanism handles adjusting a VM's machine configuration; it does not configure provisioning a restored disk from backup.

D:

VM boot disks can be initialized from public or custom images in compatible configurations; its operational role is launching a replacement VM from a prepared image; the needed capability is provisioning a restored disk from backup.

Question 416

A public application serves static assets worldwide and wants lower edge latency plus fewer origin fetches. What feature should be enabled?

  1. Use Connectivity Tests
  2. Use Network Intelligence Center routes analysis
  3. Use firewall rules logging
  4. Use Cloud CDN

Explanation

Correct Answer

D:

Cloud CDN caches eligible HTTP(S) content at Google's edge using configured cache behavior; this is relevant because the outcome sought is caching eligible content near users.

Incorrect Answers

A:

Network Intelligence Center Connectivity Tests analyzes supported connectivity paths and identifies potential configuration blocks; its purpose differs: analyzing possible network paths and blockers is separate from caching eligible content near users.

B:

Network Intelligence Center and route diagnostics expose supported route and connectivity insights; that supports troubleshooting network route visibility; the problem to solve concerns caching eligible content near users.

C:

This alternative focuses on examining firewall-matched connections; Firewall logging produces Cloud Logging records for matching supported firewall rule traffic; the stem instead asks for caching eligible content near users.

Question 417

An administrator is about to assign basic Editor to a monitoring contractor. What better role approach should be reviewed?

  1. Create a Cloud Identity group
  2. Use Google Cloud console's API Library
  3. Use Cloud Identity administrative console
  4. Use the least-privilege predefined IAM role

Explanation

Correct Answer

D:

Predefined service roles offer narrower permission sets than broad basic roles when suitable; for the stated workload, the practical result is avoiding broad privileges when narrow predefined access exists.

Incorrect Answers

A:

Cloud Identity groups can represent users and be referenced as principals in supported IAM policies; it concerns assigning permissions through group membership, and its normal effect does not provide avoiding broad privileges when narrow predefined access exists.

B:

The API Library exposes available services and enables APIs in the selected project subject to access rules; it would help with locating and activating an API in the console, but it does not directly implement avoiding broad privileges when narrow predefined access exists.

C:

The Google Admin console manages supported Cloud Identity directory users, groups and account settings; the decision here is about avoiding broad privileges when narrow predefined access exists, not managing Cloud Identity account lifecycle.

Question 418

A service needs six vCPUs and a nonstandard supported amount of memory for its workload. What VM sizing approach can fit?

  1. Choose a custom machine type
  2. Use VM startup scripts
  3. Choose a Spot VM
  4. Use Confidential VM

Explanation

Correct Answer

A:

Compute Engine custom machine types support configurable processor and memory combinations within family constraints; Applied in this case, it delivers tailoring vCPU and memory combinations.

Incorrect Answers

B:

The alternative would address initializing a VM from metadata scripts; Compute Engine startup scripts execute configured initialization commands in supported guest environments; the question instead requires tailoring vCPU and memory combinations.

C:

Spot VMs have lower eligible prices but no guaranteed continuous availability or fixed lifetime; that solves problems involving running fault-tolerant workloads on reclaimable capacity, rather than the tailoring vCPU and memory combinations requirement.

D:

Confidential VM uses hardware confidential-computing capabilities to protect supported workloads during execution; that applies to enabling hardware-supported memory confidentiality; the requested task is tailoring vCPU and memory combinations.

Question 419

During an incident, operators need persistent charts with service health signals rather than one-off CLI output. What should be configured?

  1. Use Cloud Logging setup
  2. Use Logs Explorer
  3. Use Cloud Audit Logs
  4. Create a Cloud Monitoring dashboard
  5. Enable log-based metrics

Explanation

Correct Answer

D:

Cloud Monitoring dashboards arrange metrics and supported visual widgets for operational visibility; it supports organizing metrics charts on a shared dashboard at the appropriate resource scope.

Incorrect Answers

A:

Cloud Logging ingests and organizes supported resource and application logs into log buckets and views; it is relevant when making cloud resource log entries queryable, not when the primary need is organizing metrics charts on a shared dashboard.

B:

Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; this is a distinct control for filtering operational log records interactively, rather than organizing metrics charts on a shared dashboard.

C:

Cloud Audit Logs records supported administrative and access activity with audit-log type distinctions; that applies to reviewing authorized administrative API activity; the requested task is organizing metrics charts on a shared dashboard.

E:

This alternative focuses on measuring a filtered log event pattern; Log-based metrics derive metric values from matching log entries and can support dashboards or alerts; the stem instead asks for organizing metrics charts on a shared dashboard.

Question 420

A support engineer asks if a predefined role includes permission to delete an instance. What should the administrator examine?

  1. Use IAM policy version 3 for conditions
  2. Use custom role permissions support check
  3. Use time-based IAM Condition
  4. Grant roles to a service account
  5. Create a custom IAM role
  6. Review IAM role permissions

Explanation

Correct Answer

F:

Role definitions enumerate included permissions; role names alone do not guarantee a specific API action; the decisive property here is confirming included permissions in an IAM role.

Incorrect Answers

A:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; that solves problems involving retrieving condition-aware IAM policy data, rather than the confirming included permissions in an IAM role requirement.

B:

This alternative focuses on checking custom-role eligibility for IAM permissions; Not all IAM permissions can be placed in custom roles, and support levels vary by permission; the stem instead asks for confirming included permissions in an IAM role.

C:

A conditional IAM binding can compare request time with an expiry condition for supported access checks; this governs limiting role authorization to an approved time window, whereas the stated objective is confirming included permissions in an IAM role.

D:

For authorizing nonhuman workload API access, this could be relevant; Service accounts are IAM principals that represent applications or compute workloads and can receive roles; the actual request concerns confirming included permissions in an IAM role.

E:

Custom roles let eligible administrators define a chosen set of supported IAM permissions; that solves problems involving combining supported permissions into a custom role, rather than the confirming included permissions in an IAM role requirement.

Associate Cloud Engineer Practice Tests