Google Associate Cloud Engineer Practice Test 22

Question 210

A web VM should allow traffic only from a designated HTTP load-balancing source range. Which approach should be selected?

  1. Use a targeted VPC ingress firewall rule for the appropriate source ranges and port
  2. Configure the boot disk auto-delete setting appropriately
  3. Create the instance with only an internal IP on the chosen VPC subnet
  4. Deploy a Cloud Run service referencing the container image
  5. Reference a supported image family when creating the VM

Explanation

Correct Answer

A:

VPC firewall rules filter packets based on source, target and protocol attributes. Network placement alone does not open an inbound port.

Incorrect Answers

B:

Administrators use it to retain a disk when a VM is deleted, rather than to allow only authorized web ingress to VMs. Applying it would change the wrong component of this deployment.

C:

Its purpose is to create a private-only VM interface. That distinction matters: the scenario calls for an action to allow only authorized web ingress to VMs, not this separate configuration task.

D:

Choosing this would deploy an HTTP service from a container image, an appropriate action for cloud run application deployment operations; It cannot take the place of the separate step needed to allow only authorized web ingress to VMs in this specific situation.

E:

The result of this choice would be to choose an image by family. The requested outcome, to allow only authorized web ingress to VMs, is handled at a different layer or through another operation.

Question 211

An instance creation script needs a known Google Cloud image family instead of hardcoding an old image version. Which method addresses the task?

  1. Reference a supported image family when creating the VM
  2. Configure the boot disk auto-delete setting appropriately
  3. Use a targeted VPC ingress firewall rule for the appropriate source ranges and port
  4. Create the instance with only an internal IP on the chosen VPC subnet
  5. Create an instance template defining the desired VM configuration

Explanation

Correct Answer

A:

Image families resolve to designated recent nondeprecated images within the family. This makes automation track the approved image line while explicit images pin a version.

Incorrect Answers

B:

The tool can retain a disk when a VM is deleted, but it cannot be substituted for the capability needed to deploy from a maintained image line. Its operational effect is not equivalent.

C:

It can permit selected inbound load-balancer traffic; however, it does not provide the specific operation to deploy from a maintained image line. The two controls serve different purposes.

D:

This choice is useful to create a private-only VM interface. The stated task is to deploy from a maintained image line, which requires a different mechanism or permission scope.

E:

This proposal can define repeatable VM group configuration, but the failure or goal described here calls for a way to deploy from a maintained image line; It changes the wrong control or scope for the requested outcome.

Question 212

An OS boot disk should continue to exist after deleting the VM for forensic work. What is the best next step?

  1. Configure the boot disk auto-delete setting appropriately
  2. Reference a supported image family when creating the VM
  3. Set an appropriate Cloud Run maximum instance limit
  4. Create the instance with only an internal IP on the chosen VPC subnet
  5. Use a targeted VPC ingress firewall rule for the appropriate source ranges and port

Explanation

Correct Answer

A:

Compute Engine attached disks can have configurable auto-delete behavior. Disabling auto-delete preserves the disk when the instance is deleted, subject to policy.

Incorrect Answers

B:

Its purpose is to choose an image by family. That distinction matters: the scenario calls for an action to preserve boot volume data after instance removal, not this separate configuration task.

C:

An operator would use this action to cap serverless scale-out, chiefly when trying to protect a downstream connection-limited system; The current requirement is to preserve boot volume data after instance removal, which remains unresolved by that operation.

D:

This setting would create a private-only VM interface. That behavior does not establish the requested ability to preserve boot volume data after instance removal; it addresses an adjacent concern instead.

E:

This approach can permit selected inbound load-balancer traffic. The requirement is to preserve boot volume data after instance removal, so it controls a different part of the workflow and leaves that result unaddressed.

Question 213

An HTTP service receives many independent requests and can safely process several simultaneously in one container. What should the administrator do?

  1. Configure suitable Cloud Run request concurrency
  2. Set a Cloud Run minimum instance count
  3. Deploy Compute Engine virtual machines
  4. Adjust the Cloud Run request timeout within the supported limit
  5. Set an appropriate Cloud Run maximum instance limit

Explanation

Correct Answer

A:

Cloud Run concurrency controls how many simultaneous requests an instance can handle. The correct value depends on application threading, latency and resource use.

Incorrect Answers

B:

The result of this choice would be to retain warm Cloud Run capacity. The requested outcome, to handle multiple requests on an instance, is handled at a different layer or through another operation.

C:

Select this when the goal is to run and administer virtual machine operating systems. Here the decisive requirement is to handle multiple requests on an instance, and that outcome is not achieved by this action.

D:

It can configure maximum request duration; however, it does not provide the specific operation to handle multiple requests on an instance. The two controls serve different purposes.

E:

The tool can cap serverless scale-out, but it cannot be substituted for the capability needed to handle multiple requests on an instance. Its operational effect is not equivalent.

Question 214

An API has latency-sensitive cold starts and must keep a baseline of containers available. Which choice provides the required behavior?

  1. Configure suitable Cloud Run request concurrency
  2. Set a Cloud Run minimum instance count
  3. Adjust the Cloud Run request timeout within the supported limit
  4. Set an appropriate Cloud Run maximum instance limit

Explanation

Correct Answer

B:

Minimum instances retain provisioned capacity to reduce cold-start frequency. Idle instances can incur charges depending on billing configuration.

Incorrect Answers

A:

This setting would permit concurrent requests per container instance. That behavior does not establish the requested ability to mitigate cold starts with preprovisioned instances; it addresses an adjacent concern instead.

C:

This approach can configure maximum request duration. The requirement is to mitigate cold starts with preprovisioned instances, so it controls a different part of the workflow and leaves that result unaddressed.

D:

This choice is useful to cap serverless scale-out. The stated task is to mitigate cold starts with preprovisioned instances, which requires a different mechanism or permission scope.

Question 215

A backend must limit the number of Cloud Run instances to protect a downstream database connection pool. Which approach should be selected?

  1. Use the Cloud Run source deployment workflow
  2. Configure suitable Cloud Run request concurrency
  3. Set an appropriate Cloud Run maximum instance limit
  4. Adjust the Cloud Run request timeout within the supported limit
  5. Set a Cloud Run minimum instance count

Explanation

Correct Answer

C:

Maximum instance settings constrain scaling capacity for the service or revision under documented rules. The limit can lead to queuing or rejected work when demand exceeds capacity.

Incorrect Answers

A:

An operator would use this action to build and deploy Cloud Run from source, chiefly when trying to streamline source-to-service deployment; The current requirement is to protect a downstream connection-limited system, which remains unresolved by that operation.

B:

While this can permit concurrent requests per container instance, the present task requires an action to protect a downstream connection-limited system. This operation does not supply the behavior described in the requirements.

D:

Administrators use it to configure maximum request duration, rather than to protect a downstream connection-limited system. Applying it would change the wrong component of this deployment.

E:

The result of this choice would be to retain warm Cloud Run capacity. The requested outcome, to protect a downstream connection-limited system, is handled at a different layer or through another operation.

Question 216

A request-handling Cloud Run application needs more time per request than the current request deadline permits. Which method addresses the task?

  1. Require Cloud Run Invoker IAM authorization rather than allowing public access
  2. Set an appropriate Cloud Run maximum instance limit
  3. Adjust the Cloud Run request timeout within the supported limit
  4. Configure suitable Cloud Run request concurrency
  5. Set a Cloud Run minimum instance count

Explanation

Correct Answer

C:

The request timeout governs how long Cloud Run waits for a request to finish. Increasing it cannot repair an application that is stuck or failing for unrelated reasons.

Incorrect Answers

A:

For the stated need to permit longer HTTP request processing, this would instead enforce authenticated Cloud Run invocation; it supports the separate task to protect a managed service from anonymous callers, not the required configuration.

B:

This choice is useful to cap serverless scale-out. The stated task is to permit longer HTTP request processing, which requires a different mechanism or permission scope.

D:

The tool can permit concurrent requests per container instance, but it cannot be substituted for the capability needed to permit longer HTTP request processing. Its operational effect is not equivalent.

E:

Using this action would retain warm Cloud Run capacity, not permit longer HTTP request processing. Its function is different from the specific change described in the scenario.

Question 217

An order-management application requires a familiar managed PostgreSQL or MySQL relational database for modest regional transactional workloads. Which implementation matches this requirement?

  1. Choose BigQuery
  2. Choose Firestore in a suitable supported mode
  3. Choose Spanner with an appropriate multi-region instance configuration
  4. Choose Cloud SQL with a supported relational engine

Explanation

Correct Answer

D:

Cloud SQL provides managed relational database instances with standard SQL engines. It handles backups and maintenance features while retaining instance and connection management considerations.

Incorrect Answers

A:

Administrators use it to query large analytical datasets without managing servers, rather than to run a conventional transactional SQL application. Applying it would change the wrong component of this deployment.

B:

While this can store application documents with managed synchronization, the present task requires an action to run a conventional transactional SQL application. This operation does not supply the behavior described in the requirements.

C:

This approach can run distributed relational transactions across regions. The requirement is to run a conventional transactional SQL application, so it controls a different part of the workflow and leaves that result unaddressed.

Question 218

A reporting team needs ad hoc SQL analytics over very large datasets without provisioning a database server. What should the administrator do?

  1. Choose Spanner with an appropriate multi-region instance configuration
  2. Choose Cloud SQL with a supported relational engine
  3. Choose Cloud SQL for SQL Server where supported
  4. Choose BigQuery
  5. Choose Firestore in a suitable supported mode

Explanation

Correct Answer

D:

BigQuery is a managed analytical data warehouse designed for scalable SQL processing. Its execution model targets analytics rather than ordinary row-by-row OLTP.

Incorrect Answers

A:

Select this when the goal is to run distributed relational transactions across regions. Here the decisive requirement is to perform large-scale warehouse analytics, and that outcome is not achieved by this action.

B:

This mechanism is intended to host supported managed relational database engines. It does not implement the required action to perform large-scale warehouse analytics, even though both are relevant to the same general service.

C:

An operator would use this action to host managed Microsoft SQL Server, chiefly when trying to migrate a SQL Server database without switching engines; The current requirement is to perform large-scale warehouse analytics, which remains unresolved by that operation.

E:

It can store application documents with managed synchronization; however, it does not provide the specific operation to perform large-scale warehouse analytics. The two controls serve different purposes.

Question 219

A mobile application needs a managed document database with flexible documents and real-time client synchronization. Which choice provides the required behavior?

  1. Choose BigQuery
  2. Choose Cloud SQL for MySQL
  3. Choose Cloud SQL with a supported relational engine
  4. Choose Firestore in a suitable supported mode
  5. Choose Spanner with an appropriate multi-region instance configuration

Explanation

Correct Answer

D:

Firestore stores document-oriented application data and supports SDK-based application access. Its model differs from relational joins and analytical warehouse queries.

Incorrect Answers

A:

Using this action would query large analytical datasets without managing servers, not back a document-oriented app. Its function is different from the specific change described in the scenario.

B:

For the stated need to back a document-oriented app, this would instead operate a managed MySQL database; it supports the separate task to retain MySQL application compatibility, not the required configuration.

C:

This approach can host supported managed relational database engines. The requirement is to back a document-oriented app, so it controls a different part of the workflow and leaves that result unaddressed.

E:

Its purpose is to run distributed relational transactions across regions. That distinction matters: the scenario calls for an action to back a document-oriented app, not this separate configuration task.

Question 220

A bank needs strongly consistent relational transactions with horizontal scale across regions. Which approach should be selected?

  1. Choose Cloud SQL with a supported relational engine
  2. Choose BigQuery
  3. Choose Spanner with an appropriate multi-region instance configuration
  4. Enable and configure Cloud SQL automated backups
  5. Choose Firestore in a suitable supported mode

Explanation

Correct Answer

C:

Spanner combines relational semantics and distributed horizontal scaling. Multi-region configurations can support high availability and strong transactional consistency.

Incorrect Answers

A:

Select this when the goal is to host supported managed relational database engines. Here the decisive requirement is to scale a globally distributed transactional database, and that outcome is not achieved by this action.

B:

The result of this choice would be to query large analytical datasets without managing servers. The requested outcome, to scale a globally distributed transactional database, is handled at a different layer or through another operation.

D:

In a workflow for cloud sql initial deployment, it can schedule managed relational backups; This question instead asks how to scale a globally distributed transactional database; substituting the former action would leave that distinct technical requirement unmet.

E:

Administrators use it to store application documents with managed synchronization, rather than to scale a globally distributed transactional database. Applying it would change the wrong component of this deployment.

Associate Cloud Engineer Practice Tests