Google Associate Cloud Engineer Practice Test 16

Question 150

A database must keep running without provider-initiated Spot preemption. Which configuration best meets the requirement?

  1. Select a compatible instance maintenance policy allowing live migration
  2. Configure an eligible terminate-on-maintenance behavior and workload recovery
  3. Use standard non-Spot Compute Engine instances with appropriate resilience
  4. Deploy Compute Engine virtual machines
  5. Use eligible Spot VMs with checkpointing

Explanation

Correct Answer

C:

Regular instances are not subject to Spot VM preemption behavior. High availability still requires deliberate replication and failure handling.

Incorrect Answers

A:

The result of this choice would be to preserve VM continuity during maintenance where supported. The requested outcome, to host continuous production compute without Spot interruptions, is handled at a different layer or through another operation.

B:

While this can handle host maintenance without live migration, the present task requires an action to host continuous production compute without Spot interruptions. This operation does not supply the behavior described in the requirements.

D:

Administrators use it to run and administer virtual machine operating systems, rather than to host continuous production compute without Spot interruptions. Applying it would change the wrong component of this deployment.

E:

This mechanism is intended to run interruptible, restartable compute jobs. It does not implement the required action to host continuous production compute without Spot interruptions, even though both are relevant to the same general service.

Question 151

A service requires updates that tolerate normal host maintenance when the machine type supports live migration. What should be configured?

  1. Use eligible Spot VMs with checkpointing
  2. Evaluate a memory-optimized Compute Engine machine family
  3. Use standard non-Spot Compute Engine instances with appropriate resilience
  4. Select a compatible instance maintenance policy allowing live migration
  5. Configure an eligible terminate-on-maintenance behavior and workload recovery

Explanation

Correct Answer

D:

Live migration can move supported running VMs during qualifying host maintenance. Availability depends on the machine configuration and support matrix.

Incorrect Answers

A:

It can run interruptible, restartable compute jobs; however, it does not provide the specific operation to configure live migration for host events. The two controls serve different purposes.

B:

An operator would use this action to provide unusually high VM memory capacity, chiefly when trying to support memory-heavy processing in a VM; The current requirement is to configure live migration for host events, which remains unresolved by that operation.

C:

Select this when the goal is to avoid voluntary Spot preemption for a critical stateful server. Here the decisive requirement is to configure live migration for host events, and that outcome is not achieved by this action.

E:

This choice is useful to handle host maintenance without live migration. The stated task is to configure live migration for host events, which requires a different mechanism or permission scope.

Question 152

A VM uses an accelerator configuration that cannot be live-migrated and must handle maintenance differently. Which action is most appropriate?

  1. Use standard non-Spot Compute Engine instances with appropriate resilience
  2. Select a compatible instance maintenance policy allowing live migration
  3. Use Local SSD on a supported VM configuration
  4. Use eligible Spot VMs with checkpointing
  5. Configure an eligible terminate-on-maintenance behavior and workload recovery

Explanation

Correct Answer

E:

Some accelerator and machine configurations cannot use live migration. The workload should be designed to restart after host maintenance or interruption.

Incorrect Answers

A:

This setting would avoid voluntary Spot preemption for a critical stateful server. That behavior does not establish the requested ability to set a viable maintenance response for an accelerator VM; it addresses an adjacent concern instead.

B:

While this can preserve VM continuity during maintenance where supported, the present task requires an action to set a viable maintenance response for an accelerator VM. This operation does not supply the behavior described in the requirements.

C:

For the stated need to set a viable maintenance response for an accelerator VM, this would instead use ephemeral low-latency scratch storage; it supports the separate task to store transient processing data on local disks, not the required configuration.

D:

Its purpose is to run interruptible, restartable compute jobs. That distinction matters: the scenario calls for an action to set a viable maintenance response for an accelerator VM, not this separate configuration task.

Question 153

A single-zone VM needs durable block storage that can be attached as its boot disk. Which method addresses the task?

  1. Use a regional Persistent Disk where supported
  2. Use Local SSD on a supported VM configuration
  3. Attach a compatible zonal Persistent Disk
  4. Select an appropriate Google Cloud Hyperdisk type

Explanation

Correct Answer

C:

Zonal Persistent Disk provides persistent block storage to Compute Engine VMs within the selected zone. It is not replicated across two zones by default.

Incorrect Answers

A:

The tool can replicate persistent block data across zones, but it cannot be substituted for the capability needed to attach durable boot storage in a zone. Its operational effect is not equivalent.

B:

This mechanism is intended to use ephemeral low-latency scratch storage. It does not implement the required action to attach durable boot storage in a zone, even though both are relevant to the same general service.

D:

Select this when the goal is to tune eligible high-performance block storage. Here the decisive requirement is to attach durable boot storage in a zone, and that outcome is not achieved by this action.

Question 154

An HA application requires a block disk replica across two zones in one region. What is the best next step?

  1. Evaluate a memory-optimized Compute Engine machine family
  2. Use a regional Persistent Disk where supported
  3. Attach a compatible zonal Persistent Disk
  4. Use Local SSD on a supported VM configuration
  5. Select an appropriate Google Cloud Hyperdisk type

Explanation

Correct Answer

B:

Regional Persistent Disk synchronously replicates block data between two zones in a region. The application still needs a failover mechanism and compatible VM attachment pattern.

Incorrect Answers

A:

An operator would use this action to provide unusually high VM memory capacity, chiefly when trying to support memory-heavy processing in a VM; The current requirement is to protect a block disk against a single-zone loss, which remains unresolved by that operation.

C:

This choice is useful to provide zonal persistent block storage. The stated task is to protect a block disk against a single-zone loss, which requires a different mechanism or permission scope.

D:

This setting would use ephemeral low-latency scratch storage. That behavior does not establish the requested ability to protect a block disk against a single-zone loss; it addresses an adjacent concern instead.

E:

Using this action would tune eligible high-performance block storage, not protect a block disk against a single-zone loss. Its function is different from the specific change described in the scenario.

Question 155

A performance-sensitive VM needs a block storage product with independently configurable performance where supported. Which configuration best meets the requirement?

  1. Use standard non-Spot Compute Engine instances with appropriate resilience
  2. Use Local SSD on a supported VM configuration
  3. Select an appropriate Google Cloud Hyperdisk type
  4. Use a regional Persistent Disk where supported
  5. Attach a compatible zonal Persistent Disk

Explanation

Correct Answer

C:

Hyperdisk decouples certain performance and capacity configuration choices on eligible machine types. Provisioning behavior and availability vary by Hyperdisk class.

Incorrect Answers

A:

For the stated need to choose a performance-configurable VM disk, this would instead avoid voluntary Spot preemption for a critical stateful server; it supports the separate task to host continuous production compute without Spot interruptions, not the required configuration.

B:

Administrators use it to use ephemeral low-latency scratch storage, rather than to choose a performance-configurable VM disk. Applying it would change the wrong component of this deployment.

D:

This mechanism is intended to replicate persistent block data across zones. It does not implement the required action to choose a performance-configurable VM disk, even though both are relevant to the same general service.

E:

While this can provide zonal persistent block storage, the present task requires an action to choose a performance-configurable VM disk. This operation does not supply the behavior described in the requirements.

Question 156

A temporary scratch workload accepts losing local data if the host or VM is lost. What should be configured?

  1. Use a regional Persistent Disk where supported
  2. Use Local SSD on a supported VM configuration
  3. Select an appropriate Google Cloud Hyperdisk type
  4. Attach a compatible zonal Persistent Disk
  5. Attach the intended service account to the VM with appropriate permissions

Explanation

Correct Answer

B:

Local SSD offers low-latency local storage but is ephemeral and tied to the instance lifecycle. It is not a durable replacement for Persistent Disk.

Incorrect Answers

A:

It can replicate persistent block data across zones; however, it does not provide the specific operation to store transient processing data on local disks. The two controls serve different purposes.

C:

Using this action would tune eligible high-performance block storage, not store transient processing data on local disks. Its function is different from the specific change described in the scenario.

D:

The tool can provide zonal persistent block storage, but it cannot be substituted for the capability needed to store transient processing data on local disks. Its operational effect is not equivalent.

E:

In a workflow for creating and configuring vm instances, it can assign a workload service identity to a VM; This question instead asks how to store transient processing data on local disks; substituting the former action would leave that distinct technical requirement unmet.

Question 157

An engineer needs a reproducible first-boot configuration on new Linux Compute Engine VMs. Which approach should be selected?

  1. Configure the public SSH key in approved project or instance metadata
  2. Provide a startup script or supported instance initialization mechanism
  3. Attach the intended service account to the VM with appropriate permissions
  4. Reserve a static external IP address and associate it with the VM

Explanation

Correct Answer

B:

Startup scripts can configure packages or settings when a VM boots. They do not replace an image if the workload needs an already prepared OS disk.

Incorrect Answers

A:

This approach can publish an SSH public key in VM metadata. The requirement is to automate initial guest configuration, so it controls a different part of the workflow and leaves that result unaddressed.

C:

Its purpose is to assign a workload service identity to a VM. That distinction matters: the scenario calls for an action to automate initial guest configuration, not this separate configuration task.

D:

Administrators use it to assign a stable external VM address, rather than to automate initial guest configuration. Applying it would change the wrong component of this deployment.

Question 158

A deployment needs the VM instance to assume a narrowly authorized runtime identity for API calls. Which method addresses the task?

  1. Configure the public SSH key in approved project or instance metadata
  2. Provide a startup script or supported instance initialization mechanism
  3. Reserve a static external IP address and associate it with the VM
  4. Configure autoscaling on a managed instance group
  5. Attach the intended service account to the VM with appropriate permissions

Explanation

Correct Answer

E:

An attached service account provides the principal for workload API requests. IAM permissions on target resources determine what that principal can do.

Incorrect Answers

A:

This mechanism is intended to publish an SSH public key in VM metadata. It does not implement the required action to authenticate VM software to cloud APIs, even though both are relevant to the same general service.

B:

The tool can run initialization commands during VM boot, but it cannot be substituted for the capability needed to authenticate VM software to cloud APIs. Its operational effect is not equivalent.

C:

It can assign a stable external VM address; however, it does not provide the specific operation to authenticate VM software to cloud APIs. The two controls serve different purposes.

D:

For the stated need to authenticate VM software to cloud APIs, this would instead scale the number of VM group instances; it supports the separate task to respond to workload changes with VM replicas, not the required configuration.

Question 159

A VM must receive a reserved public address that remains stable across recreation. What is the best next step?

  1. Reserve a static external IP address and associate it with the VM
  2. Deploy Compute Engine virtual machines
  3. Provide a startup script or supported instance initialization mechanism
  4. Attach the intended service account to the VM with appropriate permissions
  5. Configure the public SSH key in approved project or instance metadata

Explanation

Correct Answer

A:

Static external addresses are explicitly reserved resources. An ephemeral address may change when the allocation is released.

Incorrect Answers

B:

This setting would run and administer virtual machine operating systems. That behavior does not establish the requested ability to maintain a fixed internet-facing endpoint; it addresses an adjacent concern instead.

C:

While this can run initialization commands during VM boot, the present task requires an action to maintain a fixed internet-facing endpoint. This operation does not supply the behavior described in the requirements.

D:

This approach can assign a workload service identity to a VM. The requirement is to maintain a fixed internet-facing endpoint, so it controls a different part of the workflow and leaves that result unaddressed.

E:

Using this action would publish an SSH public key in VM metadata, not maintain a fixed internet-facing endpoint. Its function is different from the specific change described in the scenario.

Question 160

A Linux VM must accept an initial authorized SSH key for a supported metadata-based SSH setup. Which configuration best meets the requirement?

  1. Configure the managed instance group's autohealing health check
  2. Attach the intended service account to the VM with appropriate permissions
  3. Provide a startup script or supported instance initialization mechanism
  4. Reserve a static external IP address and associate it with the VM
  5. Configure the public SSH key in approved project or instance metadata

Explanation

Correct Answer

E:

Metadata-based SSH keys can authorize guest access when OS Login is not controlling SSH authentication. Only public keys belong in the metadata.

Incorrect Answers

A:

The choice is aimed at a different purpose: to recover from application-level VM health failures; Even if it can replace unhealthy MIG instances, that would not accomplish the stated requirement to enable metadata-based SSH access.

B:

Administrators use it to assign a workload service identity to a VM, rather than to enable metadata-based SSH access. Applying it would change the wrong component of this deployment.

C:

This mechanism is intended to run initialization commands during VM boot. It does not implement the required action to enable metadata-based SSH access, even though both are relevant to the same general service.

D:

The result of this choice would be to assign a stable external VM address. The requested outcome, to enable metadata-based SSH access, is handled at a different layer or through another operation.

Associate Cloud Engineer Practice Tests