Google Associate Cloud Engineer Practice Test 17

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.

Question 161

A stateless web tier needs identical VMs recreated automatically after instance failure. Which choice provides the required behavior?

  1. Configure autoscaling on a managed instance group
  2. Create a managed instance group from an instance template
  3. Configure the managed instance group's autohealing health check
  4. Deploy a regional managed instance group across multiple zones

Explanation

Correct Answer

B:

A MIG uses a template to define desired VM configuration and can autoheal unhealthy members. Applications should keep persistent state outside disposable group instances.

Incorrect Answers

A:

It can scale the number of VM group instances; however, it does not provide the specific operation to replace unhealthy stateless compute instances. The two controls serve different purposes.

C:

This setting would replace unhealthy MIG instances. That behavior does not establish the requested ability to replace unhealthy stateless compute instances; it addresses an adjacent concern instead.

D:

Using this action would spread VM replicas across multiple zones, not replace unhealthy stateless compute instances. Its function is different from the specific change described in the scenario.

Question 162

A VM fleet must grow and shrink in response to measured traffic. Which approach should be selected?

  1. Configure autoscaling on a managed instance group
  2. Deploy a regional managed instance group across multiple zones
  3. Configure the managed instance group's autohealing health check
  4. Create an instance template defining the desired VM configuration
  5. Create a managed instance group from an instance template

Explanation

Correct Answer

A:

A MIG autoscaler adjusts the group's target size based on configured metrics or schedules. It is distinct from Kubernetes Pod autoscaling.

Incorrect Answers

B:

The result of this choice would be to spread VM replicas across multiple zones. The requested outcome, to respond to workload changes with VM replicas, is handled at a different layer or through another operation.

C:

While this can replace unhealthy MIG instances, the present task requires an action to respond to workload changes with VM replicas. This operation does not supply the behavior described in the requirements.

D:

In a workflow for templates and group updates, it can define repeatable VM group configuration; This question instead asks how to respond to workload changes with VM replicas; substituting the former action would leave that distinct technical requirement unmet.

E:

Its purpose is to maintain self-healing identical VM replicas. That distinction matters: the scenario calls for an action to respond to workload changes with VM replicas, not this separate configuration task.

Question 163

A multi-zone web service should keep serving when one zone fails within a region. Which method addresses the task?

  1. Configure the managed instance group's autohealing health check
  2. Configure autoscaling on a managed instance group
  3. Create a managed instance group from an instance template
  4. Deploy a regional managed instance group across multiple zones
  5. Start a rolling update with a new instance template

Explanation

Correct Answer

D:

Regional MIGs distribute instances across eligible zones and can maintain target capacity according to policy. A zonal MIG concentrates the fleet in one zone.

Incorrect Answers

A:

The tool can replace unhealthy MIG instances, but it cannot be substituted for the capability needed to reduce VM fleet exposure to zonal outages. Its operational effect is not equivalent.

B:

Select this when the goal is to scale the number of VM group instances. Here the decisive requirement is to reduce VM fleet exposure to zonal outages, and that outcome is not achieved by this action.

C:

This choice is useful to maintain self-healing identical VM replicas. The stated task is to reduce VM fleet exposure to zonal outages, which requires a different mechanism or permission scope.

E:

The choice is aimed at a different purpose: to upgrade a group without simultaneous replacement; Even if it can roll out a new VM template in stages, that would not accomplish the stated requirement to reduce VM fleet exposure to zonal outages.

Question 164

A service administrator needs an automatic signal to replace VMs whose application health checks fail. What is the best next step?

  1. Configure autoscaling on a managed instance group
  2. Create a managed instance group from an instance template
  3. Configure the managed instance group's autohealing health check
  4. Deploy a regional managed instance group across multiple zones
  5. Create a Kubernetes Deployment

Explanation

Correct Answer

C:

MIG autohealing evaluates instance health and replaces failing members. Autoscaling adds or removes capacity; it is not the same as detecting a broken application instance.

Incorrect Answers

A:

This approach can scale the number of VM group instances. The requirement is to recover from application-level VM health failures, so it controls a different part of the workflow and leaves that result unaddressed.

B:

While this can maintain self-healing identical VM replicas, the present task requires an action to recover from application-level VM health failures. This operation does not supply the behavior described in the requirements.

D:

Its purpose is to spread VM replicas across multiple zones. That distinction matters: the scenario calls for an action to recover from application-level VM health failures, not this separate configuration task.

E:

This alternative addresses kubernetes workload types by allowing a team to maintain stateless Pod replicas; The incident, however, requires the different action to recover from application-level VM health failures, so its central configuration remains unchanged.

Question 165

A deployment team wants all newly created group VMs to use one repeatable machine and disk configuration. What should the administrator do?

  1. Configure scheduled autoscaling on the managed instance group
  2. Start a rolling update with a new instance template
  3. Create an instance template defining the desired VM configuration
  4. Tune the rolling update's maximum unavailable setting

Explanation

Correct Answer

C:

Instance templates are immutable configuration specifications used by MIGs. Updating a fleet typically involves selecting a new template and rollout policy.

Incorrect Answers

A:

The result of this choice would be to pre-scale a VM fleet for regular peaks. The requested outcome, to standardize image and machine settings for replicas, is handled at a different layer or through another operation.

B:

The tool can roll out a new VM template in stages, but it cannot be substituted for the capability needed to standardize image and machine settings for replicas. Its operational effect is not equivalent.

D:

This mechanism is intended to limit unavailable VMs during rollout. It does not implement the required action to standardize image and machine settings for replicas, even though both are relevant to the same general service.

Question 166

A running MIG requires a new application image without destroying all replicas at once. Which choice provides the required behavior?

  1. Create an instance template defining the desired VM configuration
  2. Start a rolling update with a new instance template
  3. Deploy a regional managed instance group across multiple zones
  4. Tune the rolling update's maximum unavailable setting
  5. Configure scheduled autoscaling on the managed instance group

Explanation

Correct Answer

B:

Rolling updates replace instances in stages using controlled surge and unavailability settings. They reduce the impact of fleet-wide releases.

Incorrect Answers

A:

Using this action would define repeatable VM group configuration, not upgrade a group without simultaneous replacement. Its function is different from the specific change described in the scenario.

C:

The choice is aimed at a different purpose: to reduce VM fleet exposure to zonal outages; Even if it can spread VM replicas across multiple zones, that would not accomplish the stated requirement to upgrade a group without simultaneous replacement.

D:

This choice is useful to limit unavailable VMs during rollout. The stated task is to upgrade a group without simultaneous replacement, which requires a different mechanism or permission scope.

E:

This approach can pre-scale a VM fleet for regular peaks. The requirement is to upgrade a group without simultaneous replacement, so it controls a different part of the workflow and leaves that result unaddressed.

Question 167

A group update must allow at least a specified number of instances to remain available. Which approach should be selected?

  1. Create an instance template defining the desired VM configuration
  2. Tune the rolling update's maximum unavailable setting
  3. Start a rolling update with a new instance template
  4. Configure scheduled autoscaling on the managed instance group
  5. Configure the managed instance group's autohealing health check

Explanation

Correct Answer

B:

The update policy controls how many instances can be unavailable during replacement. It balances speed against capacity and service continuity.

Incorrect Answers

A:

Administrators use it to define repeatable VM group configuration, rather than to protect capacity during instance replacement. Applying it would change the wrong component of this deployment.

C:

The result of this choice would be to roll out a new VM template in stages. The requested outcome, to protect capacity during instance replacement, is handled at a different layer or through another operation.

D:

This mechanism is intended to pre-scale a VM fleet for regular peaks. It does not implement the required action to protect capacity during instance replacement, even though both are relevant to the same general service.

E:

This alternative addresses managed instance group design by allowing a team to replace unhealthy MIG instances; The incident, however, requires the different action to protect capacity during instance replacement, so its central configuration remains unchanged.

Question 168

A scheduled batch tier needs extra MIG instances before a predictable overnight peak. Which method addresses the task?

  1. Start a rolling update with a new instance template
  2. Configure scheduled autoscaling on the managed instance group
  3. Create an instance template defining the desired VM configuration
  4. Deploy Compute Engine virtual machines
  5. Tune the rolling update's maximum unavailable setting

Explanation

Correct Answer

B:

Schedules can change desired minimum capacity around known demand patterns. Reactive CPU scaling alone may lag a predictable surge.

Incorrect Answers

A:

The tool can roll out a new VM template in stages, but it cannot be substituted for the capability needed to anticipate recurring demand. Its operational effect is not equivalent.

C:

It can define repeatable VM group configuration; however, it does not provide the specific operation to anticipate recurring demand. The two controls serve different purposes.

D:

This setting would run and administer virtual machine operating systems. That behavior does not establish the requested ability to anticipate recurring demand; it addresses an adjacent concern instead.

E:

This choice is useful to limit unavailable VMs during rollout. The stated task is to anticipate recurring demand, which requires a different mechanism or permission scope.

Question 169

A company mandates centralized, IAM-based Linux SSH access to Compute Engine VMs. It wants ordinary engineers to log in without sudo while a restricted operations group may have sudo. Which TWO configurations support that separation? (Choose TWO.)

  1. Enable OS Login for the eligible VMs and ensure the identities have supported login access
  2. Grant every engineer the basic Project Owner role to obtain an SSH public key
  3. Grant Compute OS Admin Login only to the operations group that requires administrative guest privileges
  4. Turn off OS Login and depend only on project-wide metadata SSH keys for all identities

Explanation

Correct Answers

A:

OS Login shifts supported Linux SSH identity authorization to IAM. The configuration must be enabled and the users must have the required login and instance-access permissions.

C:

Compute OS Admin Login supports administrative access with sudo in an OS Login-enabled guest. Ordinary engineers should receive nonadministrative login permissions instead.

Incorrect Answers

B:

Owner has broad project management powers and violates the no-sudo and least-privilege separation. OS Login uses purpose-built IAM roles for guest login.

D:

Metadata-based keys would bypass the requested centralized OS Login authorization model. It also weakens the separation built around IAM-controlled OS access.

Question 170

A support engineer needs to connect to a Linux VM through OS Login but must not receive sudo privilege. What should the administrator do?

  1. Grant the Compute OS Login role without OS Admin Login
  2. Enable OS Login and assign appropriate OS Login IAM roles
  3. Manage the engineer's OS Login identity and IAM permissions instead
  4. Grant the appropriate OS Admin Login role and other required access

Explanation

Correct Answer

A:

The OS Login role supports login without administrative sudo access. The OS Admin Login role provides additional elevated capability.

Incorrect Answers

B:

It can use IAM-based SSH authorization; however, it does not provide the specific operation to provide Linux login without sudo. The two controls serve different purposes.

C:

This mechanism is intended to troubleshoot metadata keys ignored under OS Login. It does not implement the required action to provide Linux login without sudo, even though both are relevant to the same general service.

D:

The tool can authorize OS Login with sudo access, but it cannot be substituted for the capability needed to provide Linux login without sudo. Its operational effect is not equivalent.

Associate Cloud Engineer Practice Tests