Google Associate Cloud Engineer Practice Test 37

Question 360

A developer plans to detach a production data disk from one VM and attach it elsewhere. Which method addresses the task?

  1. Configure the guest partition, filesystem and mount path appropriately
  2. Create a custom Compute Engine image from a prepared source disk
  3. Create and attach a compatible Persistent Disk
  4. Use a supported detach/attach workflow after safely quiescing filesystem writes
  5. Increase the disk size and expand the guest file system where required

Explanation

Correct Answer

D:

Disk attachment modes and locality constraints govern access. Flushing or unmounting data reduces corruption risk during movement.

Incorrect Answers

A:

Using this action would prepare and mount an attached block disk, not avoid corruption during disk reattachment. Its function is different from the specific change described in the scenario.

B:

The technical effect is to create a reusable VM boot image, not to avoid corruption during disk reattachment; That distinction matters here because the first operation serves standardize preconfigured operating systems, rather than the scenario's required result.

C:

It can attach a durable secondary volume; however, it does not provide the specific operation to avoid corruption during disk reattachment. The two controls serve different purposes.

E:

The tool can increase block disk capacity, but it cannot be substituted for the capability needed to avoid corruption during disk reattachment. Its operational effect is not equivalent.

Question 361

An operator must capture a durable point-in-time backup of a VM data disk. Which implementation matches this requirement?

  1. Delete the unneeded snapshot using the supported Compute Engine operation
  2. Create a new Persistent Disk from the snapshot
  3. Create a Compute Engine disk snapshot
  4. Configure a resource policy for scheduled snapshots and attach it to the disks

Explanation

Correct Answer

C:

Snapshots capture disk data for later disk restoration, using managed snapshot storage. They are separate from VM machine configuration images.

Incorrect Answers

A:

Its purpose is to remove a disk backup snapshot. That distinction matters: the scenario calls for an action to capture a recoverable data volume state, not this separate configuration task.

B:

While this can restore a disk from a snapshot, the present task requires an action to capture a recoverable data volume state. This operation does not supply the behavior described in the requirements.

D:

Administrators use it to schedule recurring disk snapshots, rather than to capture a recoverable data volume state. Applying it would change the wrong component of this deployment.

Question 362

An administrator has a snapshot and needs a replacement block disk containing that data. What should the administrator do?

  1. Create a Compute Engine disk snapshot
  2. Delete the unneeded snapshot using the supported Compute Engine operation
  3. Increase the disk size and expand the guest file system where required
  4. Configure a resource policy for scheduled snapshots and attach it to the disks
  5. Create a new Persistent Disk from the snapshot

Explanation

Correct Answer

E:

A snapshot can serve as the source for an eligible new disk. It is not mounted directly as a live writable block volume.

Incorrect Answers

A:

This mechanism is intended to back up disk contents with a snapshot. It does not implement the required action to rebuild a lost persistent disk, even though both are relevant to the same general service.

B:

The tool can remove a disk backup snapshot, but it cannot be substituted for the capability needed to rebuild a lost persistent disk. Its operational effect is not equivalent.

C:

This alternative addresses disk attach and resizing operations by allowing a team to increase block disk capacity; The incident, however, requires the different action to rebuild a lost persistent disk, so its central configuration remains unchanged.

D:

It can schedule recurring disk snapshots; however, it does not provide the specific operation to rebuild a lost persistent disk. The two controls serve different purposes.

Question 363

A backup policy requires a recurring schedule for eligible VM disks. Which choice provides the required behavior?

  1. Create a custom Compute Engine image from a prepared source disk
  2. Configure a resource policy for scheduled snapshots and attach it to the disks
  3. Create a new Persistent Disk from the snapshot
  4. Delete the unneeded snapshot using the supported Compute Engine operation
  5. Create a Compute Engine disk snapshot

Explanation

Correct Answer

B:

Snapshot schedules automate periodic disk snapshots through resource policies. Retention and deletion behavior depend on schedule configuration.

Incorrect Answers

A:

The technical effect is to create a reusable VM boot image, not to automate VM volume backups; That distinction matters here because the first operation serves standardize preconfigured operating systems, rather than the scenario's required result.

C:

Using this action would restore a disk from a snapshot, not automate VM volume backups. Its function is different from the specific change described in the scenario.

D:

Its purpose is to remove a disk backup snapshot. That distinction matters: the scenario calls for an action to automate VM volume backups, not this separate configuration task.

E:

This setting would back up disk contents with a snapshot. That behavior does not establish the requested ability to automate VM volume backups; it addresses an adjacent concern instead.

Question 364

A retired backup snapshot should be removed after verifying retention and dependencies. Which approach should be selected?

  1. Configure a resource policy for scheduled snapshots and attach it to the disks
  2. Configure the guest partition, filesystem and mount path appropriately
  3. Create a new Persistent Disk from the snapshot
  4. Create a Compute Engine disk snapshot
  5. Delete the unneeded snapshot using the supported Compute Engine operation

Explanation

Correct Answer

E:

Snapshot deletion manages stored backup artifacts according to service behavior. It does not automatically delete the VM or current disks from which the snapshot originated.

Incorrect Answers

A:

Administrators use it to schedule recurring disk snapshots, rather than to retire an obsolete snapshot. Applying it would change the wrong component of this deployment.

B:

Choosing this would prepare and mount an attached block disk, an appropriate action for disk attach and resizing operations operations; It cannot take the place of the separate step needed to retire an obsolete snapshot in this specific situation.

C:

Select this when the goal is to restore a disk from a snapshot. Here the decisive requirement is to retire an obsolete snapshot, and that outcome is not achieved by this action.

D:

The result of this choice would be to back up disk contents with a snapshot. The requested outcome, to retire an obsolete snapshot, is handled at a different layer or through another operation.

Question 365

A company is preparing a reusable Compute Engine image for a fleet of VMs. Which TWO steps improve image suitability and repeatability? (Choose TWO.)

  1. Create the custom image from a supported disk or snapshot source and validate booting a test VM
  2. Delete the fleet's instance templates, because reusable images cannot be referenced by templates
  3. Bake a user-managed service account JSON key into the image for every future VM
  4. Remove host-specific secrets and unnecessary machine-specific state from the source system before imaging

Explanation

Correct Answers

A:

Compute Engine supports creating custom images from documented sources. Testing that the image boots and configures correctly helps catch source-disk or driver problems before fleet rollout.

D:

A reusable image should not copy embedded credentials or unique machine-specific artifacts into every instance. Image preparation reduces unintended identity or configuration sharing.

Incorrect Answers

B:

Instance templates can refer to supported custom images. Removing templates would undermine consistent managed-instance-group deployment rather than improve it.

C:

A copied private key would give every image consumer access to the same long-lived secret. Attached workload identities and short-lived credentials are a safer model.

Question 366

An engineer must create an instance from a known previous image revision. Which implementation matches this requirement?

  1. Use gcloud compute ssh over a direct reachable address with appropriate access
  2. Choose the specific image in the VM's boot disk configuration
  3. Grant appropriate image access to the target project principals
  4. Deprecate or delete the image according to its lifecycle policy
  5. Create a custom Compute Engine image from a prepared source disk

Explanation

Correct Answer

B:

A named image pins the source operating-system disk state. A family reference can select a more recent image instead.

Incorrect Answers

A:

The result of this choice would be to start a direct CLI SSH session to a VM. The requested outcome, to reproduce an exact OS baseline, is handled at a different layer or through another operation.

C:

Administrators use it to share a custom Compute Engine image, rather than to reproduce an exact OS baseline. Applying it would change the wrong component of this deployment.

D:

This mechanism is intended to retire an outdated VM image. It does not implement the required action to reproduce an exact OS baseline, even though both are relevant to the same general service.

E:

While this can create a reusable VM boot image, the present task requires an action to reproduce an exact OS baseline. This operation does not supply the behavior described in the requirements.

Question 367

An organization wants to share a validated custom VM image across selected projects. What should the administrator do?

  1. Grant appropriate image access to the target project principals
  2. Deprecate or delete the image according to its lifecycle policy
  3. Choose the specific image in the VM's boot disk configuration
  4. Create a custom Compute Engine image from a prepared source disk

Explanation

Correct Answer

A:

Custom images are project resources and can be shared through IAM where supported. Publicizing a container image does not grant Compute Engine boot image access.

Incorrect Answers

B:

The tool can retire an outdated VM image, but it cannot be substituted for the capability needed to reuse a vetted machine image across projects. Its operational effect is not equivalent.

C:

Select this when the goal is to boot a VM from a pinned custom image. Here the decisive requirement is to reuse a vetted machine image across projects, and that outcome is not achieved by this action.

D:

This choice is useful to create a reusable VM boot image. The stated task is to reuse a vetted machine image across projects, which requires a different mechanism or permission scope.

Question 368

An obsolete VM image should no longer be offered for new provisioning. Which choice provides the required behavior?

  1. Grant appropriate image access to the target project principals
  2. Create a custom Compute Engine image from a prepared source disk
  3. Deprecate or delete the image according to its lifecycle policy
  4. Choose the specific image in the VM's boot disk configuration
  5. Grant an appropriate Artifact Registry writer role to the build identity

Explanation

Correct Answer

C:

Image deprecation guides future image selection, while deletion removes the image resource. Neither is equivalent to deleting running VMs already created from it.

Incorrect Answers

A:

This approach can share a custom Compute Engine image. The requirement is to prevent further use of an old baseline, so it controls a different part of the workflow and leaves that result unaddressed.

B:

Its purpose is to create a reusable VM boot image. That distinction matters: the scenario calls for an action to prevent further use of an old baseline, not this separate configuration task.

D:

While this can boot a VM from a pinned custom image, the present task requires an action to prevent further use of an old baseline. This operation does not supply the behavior described in the requirements.

E:

This proposal can authorize CI image upload, but the failure or goal described here calls for a way to prevent further use of an old baseline; It changes the wrong control or scope for the requested outcome.

Question 369

A Linux VM does not finish booting and SSH is unavailable. How should the team proceed?

  1. Inspect the instance's serial port output and boot diagnostics
  2. Inspect relevant Cloud Logging audit entries and instance operations
  3. Collect appropriate guest process telemetry using Ops Agent or OS tools
  4. Review guest startup-script logs and execution results

Explanation

Correct Answer

A:

Serial output can reveal kernel, startup and initialization errors before network access works. It is useful even when ordinary SSH connectivity fails.

Incorrect Answers

B:

Select this when the goal is to correlate VM management activity with logs. Here the decisive requirement is to diagnose a boot failure without SSH, and that outcome is not achieved by this action.

C:

The result of this choice would be to inspect VM guest process consumption. The requested outcome, to diagnose a boot failure without SSH, is handled at a different layer or through another operation.

D:

This mechanism is intended to troubleshoot startup-script execution. It does not implement the required action to diagnose a boot failure without SSH, even though both are relevant to the same general service.

Question 370

An instance rebooted unexpectedly and administrators need to compare recent platform actions. What is the most direct solution?

  1. Create a custom Compute Engine image from a prepared source disk
  2. Inspect the instance's serial port output and boot diagnostics
  3. Review guest startup-script logs and execution results
  4. Inspect relevant Cloud Logging audit entries and instance operations
  5. Collect appropriate guest process telemetry using Ops Agent or OS tools

Explanation

Correct Answer

D:

Audit and operation records can reveal who initiated supported management actions. Guest application logs alone may not capture control-plane changes.

Incorrect Answers

A:

Choosing this would create a reusable VM boot image, an appropriate action for vm image operations operations; It cannot take the place of the separate step needed to investigate VM control-plane restarts in this specific situation.

B:

This approach can inspect early VM boot output. The requirement is to investigate VM control-plane restarts, so it controls a different part of the workflow and leaves that result unaddressed.

C:

This choice is useful to troubleshoot startup-script execution. The stated task is to investigate VM control-plane restarts, which requires a different mechanism or permission scope.

E:

Using this action would inspect VM guest process consumption, not investigate VM control-plane restarts. Its function is different from the specific change described in the scenario.

Associate Cloud Engineer Practice Tests