Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 96 of 375

Associate Cloud Engineer. Free level, Google Cloud. Free question with the correct answer and a full explanation.

Google Associate Cloud Engineer Question 96

Select 2Google Cloud Platform

You need to create an autoscaled managed instance group for a web application on Google Cloud Platform. The application requires instances to be automatically added or removed based on CPU utilization. You have already created an instance template. Which of the following steps should you take to complete this task?

  1. A

    Create a managed instance group using the instance template and specify a target CPU utilization for autoscaling.

  2. B

    Create a policy for autoscaling by specifying the maximum number of instances.

  3. C

    Enable autoscaling on the managed instance group and set the minimum and maximum number of instances.

  4. D

    Attach a load balancer to the managed instance group to distribute traffic.

  5. E

    Configure the instance template to include an initialization script for autoscaling.

Show answer and explanation

Correct answers: A, C

Explanation

To create an autoscaled managed instance group on Google Cloud, you need to use an instance template to define the configuration for the instances and then create a managed instance group specifying the target CPU utilization for autoscaling. Additionally, enabling autoscaling involves setting the minimum and maximum number of instances to control the scale range. These steps ensure that instances are automatically added or removed based on the specified CPU utilization targets, optimizing resource usage and application performance.

  • A. Correct.

    This step is necessary because you need to specify the instance template and the target CPU utilization for the autoscaler to know when to add or remove instances.

  • B. Incorrect.

    While setting a maximum number of instances is part of configuring autoscaling, it is not necessary to create a separate policy outside of the managed instance group setup.

  • C. Correct.

    Enabling autoscaling and setting the minimum and maximum number of instances are essential steps to define the autoscaler's behavior.

  • D. Incorrect.

    Attaching a load balancer is useful for distributing traffic but is not a required step for setting up autoscaling itself.

  • E. Incorrect.

    The instance template does not control autoscaling; it defines the machine configuration. Autoscaling is managed at the instance group level.

Timed practice exam

Take a Google Associate Cloud Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam