Google Associate Cloud Engineer Practice Test 36

Question 350

A private VM has no external IP and its administrator needs authenticated SSH without exposing port 22 publicly. Which method addresses the task?

  1. Use an RDP client with an authorized route and Windows credentials
  2. Inspect OS Login role grants and applicable instance metadata
  3. Use IAP TCP forwarding with the necessary tunnel access permissions
  4. Run gcloud compute instances describe in its zone
  5. Use gcloud compute ssh over a direct reachable address with appropriate access

Explanation

Correct Answer

C:

Identity-Aware Proxy TCP forwarding can provide access to private instances when firewall and IAM prerequisites are met. It avoids assigning a public VM address for administration.

Incorrect Answers

A:

Select this when the goal is to open a Windows remote desktop session. Here the decisive requirement is to connect privately through IAP, and that outcome is not achieved by this action.

B:

This mechanism is intended to troubleshoot IAM-based guest login. It does not implement the required action to connect privately through IAP, even though both are relevant to the same general service.

D:

For the stated need to connect privately through IAP, this would instead retrieve full VM resource configuration; it supports the separate task to inspect one instance's properties, not the required configuration.

E:

It can start a direct CLI SSH session to a VM; however, it does not provide the specific operation to connect privately through IAP. The two controls serve different purposes.

Question 351

A Windows VM administrator needs a graphical desktop session. What is the best next step?

  1. Run gcloud compute instances list with the correct project
  2. Use gcloud compute ssh over a direct reachable address with appropriate access
  3. Inspect OS Login role grants and applicable instance metadata
  4. Use IAP TCP forwarding with the necessary tunnel access permissions
  5. Use an RDP client with an authorized route and Windows credentials

Explanation

Correct Answer

E:

Windows desktop administration uses Remote Desktop Protocol on supported images. SSH is not the ordinary interactive desktop protocol for Windows.

Incorrect Answers

A:

In a workflow for instance inventory and service state, it can list VM inventory within a project; This question instead asks how to manage a Windows GUI VM; substituting the former action would leave that distinct technical requirement unmet.

B:

Using this action would start a direct CLI SSH session to a VM, not manage a Windows GUI VM. Its function is different from the specific change described in the scenario.

C:

This approach can troubleshoot IAM-based guest login. The requirement is to manage a Windows GUI VM, so it controls a different part of the workflow and leaves that result unaddressed.

D:

This setting would tunnel authorized SSH to a private VM. That behavior does not establish the requested ability to manage a Windows GUI VM; it addresses an adjacent concern instead.

Question 352

A VM failed its SSH authentication after OS Login was enabled. Which configuration best meets the requirement?

  1. Inspect OS Login role grants and applicable instance metadata
  2. Use an RDP client with an authorized route and Windows credentials
  3. Use IAP TCP forwarding with the necessary tunnel access permissions
  4. Use gcloud compute ssh over a direct reachable address with appropriate access
  5. Reset or reboot the VM through an appropriate supported operation

Explanation

Correct Answer

A:

OS Login switches SSH authorization to Google identity and IAM. Existing metadata keys do not replace the required OS Login permissions.

Incorrect Answers

B:

This mechanism is intended to open a Windows remote desktop session. It does not implement the required action to restore SSH under OS Login, even though both are relevant to the same general service.

C:

The result of this choice would be to tunnel authorized SSH to a private VM. The requested outcome, to restore SSH under OS Login, is handled at a different layer or through another operation.

D:

Select this when the goal is to start a direct CLI SSH session to a VM. Here the decisive requirement is to restore SSH under OS Login, and that outcome is not achieved by this action.

E:

The choice is aimed at a different purpose: to recover an unresponsive instance; Even if it can restart a malfunctioning VM guest, that would not accomplish the stated requirement to restore SSH under OS Login.

Question 353

An operator needs a list of Compute Engine VMs and their status in a particular project. Which choice provides the required behavior?

  1. Stop the Compute Engine instance
  2. Reset or reboot the VM through an appropriate supported operation
  3. Run gcloud compute instances list with the correct project
  4. Run gcloud compute instances describe in its zone

Explanation

Correct Answer

C:

Compute Engine listing returns instance inventory, zones, and statuses visible to the caller. It does not enumerate GKE Pods or Cloud Run revisions.

Incorrect Answers

A:

It can stop VM compute while retaining persistent disks; however, it does not provide the specific operation to discover deployed compute instances. The two controls serve different purposes.

B:

Using this action would restart a malfunctioning VM guest, not discover deployed compute instances. Its function is different from the specific change described in the scenario.

D:

This choice is useful to retrieve full VM resource configuration. The stated task is to discover deployed compute instances, which requires a different mechanism or permission scope.

Question 354

A support engineer must inspect the machine type, disks, and metadata of one known VM. Which approach should be selected?

  1. Run gcloud compute instances describe in its zone
  2. Reset or reboot the VM through an appropriate supported operation
  3. Run gcloud compute instances list with the correct project
  4. Stop the Compute Engine instance
  5. List GKE clusters with gcloud container clusters list

Explanation

Correct Answer

A:

Describing an instance returns its resource configuration and state. Listing every project resource is less direct for this targeted diagnostic.

Incorrect Answers

B:

The result of this choice would be to restart a malfunctioning VM guest. The requested outcome, to inspect one instance's properties, is handled at a different layer or through another operation.

C:

Administrators use it to list VM inventory within a project, rather than to inspect one instance's properties. Applying it would change the wrong component of this deployment.

D:

While this can stop VM compute while retaining persistent disks, the present task requires an action to inspect one instance's properties. This operation does not supply the behavior described in the requirements.

E:

In a workflow for gke cluster inventory operations, it can list managed Kubernetes clusters; This question instead asks how to inspect one instance's properties; substituting the former action would leave that distinct technical requirement unmet.

Question 355

An idle VM needs to stop billing for CPU while its persistent disks remain available. Which method addresses the task?

  1. Run gcloud compute instances list with the correct project
  2. Stop the Compute Engine instance
  3. Inspect OS Login role grants and applicable instance metadata
  4. Reset or reboot the VM through an appropriate supported operation
  5. Run gcloud compute instances describe in its zone

Explanation

Correct Answer

B:

Stopping a VM halts its guest compute and usually stops VM compute charges, while attached persistent storage charges remain. Local data behavior depends on the storage type.

Incorrect Answers

A:

This choice is useful to list VM inventory within a project. The stated task is to pause an unused VM, which requires a different mechanism or permission scope.

C:

The choice is aimed at a different purpose: to restore SSH under OS Login; Even if it can troubleshoot IAM-based guest login, that would not accomplish the stated requirement to pause an unused VM.

D:

The tool can restart a malfunctioning VM guest, but it cannot be substituted for the capability needed to pause an unused VM. Its operational effect is not equivalent.

E:

It can retrieve full VM resource configuration; however, it does not provide the specific operation to pause an unused VM. The two controls serve different purposes.

Question 356

An on-call engineer needs to restart the guest OS of an unresponsive instance and accept a disruption. What is the best next step?

  1. Create a Compute Engine disk snapshot
  2. Run gcloud compute instances describe in its zone
  3. Run gcloud compute instances list with the correct project
  4. Reset or reboot the VM through an appropriate supported operation
  5. Stop the Compute Engine instance

Explanation

Correct Answer

D:

A reset restarts the instance abruptly; a guest reboot is gentler when accessible. Neither is equivalent to deleting and recreating its persistent storage.

Incorrect Answers

A:

This alternative addresses disk snapshot management by allowing a team to back up disk contents with a snapshot; The incident, however, requires the different action to recover an unresponsive instance, so its central configuration remains unchanged.

B:

This setting would retrieve full VM resource configuration. That behavior does not establish the requested ability to recover an unresponsive instance; it addresses an adjacent concern instead.

C:

While this can list VM inventory within a project, the present task requires an action to recover an unresponsive instance. This operation does not supply the behavior described in the requirements.

E:

Its purpose is to stop VM compute while retaining persistent disks. That distinction matters: the scenario calls for an action to recover an unresponsive instance, not this separate configuration task.

Question 357

A production VM uses a supported Hyperdisk Balanced data volume. The dataset fits, but random-write IOPS is now a bottleneck. The administrator must increase the disk's provisioned performance without copying its data to another disk. Which action meets the requirement?

  1. Increase a Cloud Storage bucket's retention period to change block-device IOPS
  2. Re-create the Hyperdisk as a Standard Cloud Storage bucket with the same disk name
  3. Add an SSH allow rule to the VM's VPC subnet to accelerate data disk writes
  4. Update the volume's supported provisioned IOPS setting and verify instance and quota performance limits

Explanation

Correct Answer

D:

Hyperdisk Balanced supports configurable provisioned IOPS independent of a data-copy migration. The attainable rate is still subject to disk size, instance limits, quotas and modification cooldowns.

Incorrect Answers

A:

Cloud Storage object retention settings do not control the performance of an attached Hyperdisk block volume. The performance adjustment belongs to the disk resource itself.

B:

Cloud Storage objects and Compute Engine block disks have different access models. Replacing the disk with a bucket would not preserve the application's block-device interface.

C:

Network ingress controls do not increase an attached block disk's provisioned IOPS. SSH reachability is separate from the storage performance setting.

Question 358

A Persistent Disk is too small but its current data must remain intact. Which choice provides the required behavior?

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

Explanation

Correct Answer

A:

Persistent Disk capacity can be increased through supported operations. Expanding the guest partition or filesystem is often a separate OS task.

Incorrect Answers

B:

This approach can attach a durable secondary volume. The requirement is to grow a VM data volume without replacing it, so it controls a different part of the workflow and leaves that result unaddressed.

C:

Using this action would safely move a data disk between instances, not grow a VM data volume without replacing it. Its function is different from the specific change described in the scenario.

D:

This setting would prepare and mount an attached block disk. That behavior does not establish the requested ability to grow a VM data volume without replacing it; it addresses an adjacent concern instead.

Question 359

A Linux instance shows a newly attached disk in the API but not at its expected filesystem mount. Which approach should be selected?

  1. Configure the guest partition, filesystem and mount path appropriately
  2. Use a supported detach/attach workflow after safely quiescing filesystem writes
  3. Create and attach a compatible Persistent Disk
  4. Configure a resource policy for scheduled snapshots and attach it to the disks
  5. Increase the disk size and expand the guest file system where required

Explanation

Correct Answer

A:

Attaching a block device does not automatically create or mount a filesystem in all guest environments. OS-level setup completes usable access.

Incorrect Answers

B:

This mechanism is intended to safely move a data disk between instances. It does not implement the required action to make a new data disk usable to the OS, even though both are relevant to the same general service.

C:

Administrators use it to attach a durable secondary volume, rather than to make a new data disk usable to the OS. Applying it would change the wrong component of this deployment.

D:

This alternative addresses disk snapshot management by allowing a team to schedule recurring disk snapshots; The incident, however, requires the different action to make a new data disk usable to the OS, so its central configuration remains unchanged.

E:

The result of this choice would be to increase block disk capacity. The requested outcome, to make a new data disk usable to the OS, is handled at a different layer or through another operation.

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.

Associate Cloud Engineer Practice Tests