Free Google Associate Cloud Engineer Exam Braindumps (page: 32)

Page 31 of 74

Your managed instance group raised an alert stating that new instance creation has failed to create new instances. You need to maintain the number of running instances specified by the template to be able to process expected application traffic.
What should you do?

  1. Create an instance template that contains valid syntax which will be used by the instance group.
    Delete any persistent disks with the same name as instance names.
  2. Create an instance template that contains valid syntax that will be used by the instance group.
    Verify that the instance name and persistent disk name values are not the same in the template.
  3. Verify that the instance template being used by the instance group contains valid syntax. Delete any persistent disks with the same name as instance names. Set the disks.autoDelete property to true in the instance template.
  4. Delete the current instance template and replace it with a new instance template. Verify that the instance name and persistent disk name values are not the same in the template. Set the disks.autoDelete property to true in the instance template.

Answer(s): A

Explanation:

https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-migs https://cloud.google.com/compute/docs/instance-templates#how_to_update_instance_templates



Your company is moving from an on-premises environment to Google Cloud Platform (GCP). You have multiple development teams that use Cassandra environments as backend databases. They all need a development environment that is isolated from other Cassandra instances. You want to move to GCP quickly and with minimal support effort.
What should you do?

  1. 1. Build an instruction guide to install Cassandra on GCP.
    2. Make the instruction guide accessible to your developers.
  2. 1. Advise your developers to go to Cloud Marketplace.
    2. Ask the developers to launch a Cassandra image for their development work.
  3. 1. Build a Cassandra Compute Engine instance and take a snapshot of it.
    2. Use the snapshot to create instances for your developers.
  4. 1. Build a Cassandra Compute Engine instance and take a snapshot of it.
    2. Upload the snapshot to Cloud Storage and make it accessible to your developers.
    3. Build instructions to create a Compute Engine instance from the snapshot so that developers can do it themselves.

Answer(s): B

Explanation:

https://medium.com/google-cloud/how-to-deploy-cassandra-and-connect-on-google-cloud- platform-with-a-few-clicks-11ee3d7001d1
https://cloud.google.com/blog/products/databases/open-source-cassandra-now-managed-on- google-cloud https://cloud.google.com/marketplace
You can deploy Cassandra as a Service, called Astra, on the Google Cloud Marketplace. Not only do you get a unified bill for all GCP services, your Developers can now create Cassandra clusters on Google Cloud in minutes and build applications with Cassandra as a database as a service without the operational overhead of managing Cassandra



You have a Compute Engine instance hosting a production application. You want to receive an email if the instance consumes more than 90% of its CPU resources for more than 15 minutes. You want to use Google services.
What should you do?

  1. 1. Create a consumer Gmail account.
    2. Write a script that monitors the CPU usage.
    3.
    When the CPU usage exceeds the threshold, have that script send an email using the Gmail account and smtp.gmail.com on port 25 as SMTP server.
  2. 1. Create a Stackdriver Workspace, and associate your Google Cloud Platform (GCP) project with it.

    2. Create an Alerting Policy in Stackdriver that uses the threshold as a trigger condition.
    3. Configure your email address in the notification channel.
  3. 1. Create a Stackdriver Workspace, and associate your GCP project with it.
    2. Write a script that monitors the CPU usage and sends it as a custom metric to Stackdriver.
    3. Create an uptime check for the instance in Stackdriver.
  4. 1. In Stackdriver Logging, create a logs-based metric to extract the CPU usage by using this regular expression: CPU Usage: ([0-9] {1,3}) %
    2. In Stackdriver Monitoring, create an Alerting Policy based on this metric.
    3. Configure your email address in the notification channel.

Answer(s): B

Explanation:

Specifying conditions for alerting policies This page describes how to specify conditions for alerting policies. The conditions for an alerting policy define what is monitored and when to trigger an alert. For example, suppose you want to define an alerting policy that emails you if the CPU utilization of a Compute Engine VM instance is above 80% for more than 3 minutes. You use the conditions dialog to specify that you want to monitor the CPU utilization of a Compute Engine VM instance, and that you want an alerting policy to trigger when that utilization is above 80% for 3 minutes. https://cloud.google.com/monitoring/alerts/ui-conditions-ga https://cloud.google.com/monitoring/alerts/using-alerting-ui https://cloud.google.com/monitoring/support/notification-options



You have an application that uses Cloud Spanner as a backend database. The application has a very predictable traffic pattern. You want to automatically scale up or down the number of Spanner nodes depending on traffic.
What should you do?

  1. Create a cron job that runs on a scheduled basis to review stackdriver monitoring metrics, and then resize the Spanner instance accordingly.
  2. Create a Stackdriver alerting policy to send an alert to oncall SRE emails when Cloud Spanner CPU exceeds the threshold. SREs would scale resources up or down accordingly.
  3. Create a Stackdriver alerting policy to send an alert to Google Cloud Support email when Cloud Spanner CPU exceeds your threshold. Google support would scale resources up or down accordingly.
  4. Create a Stackdriver alerting policy to send an alert to webhook when Cloud Spanner CPU is over or under your threshold. Create a Cloud Function that listens to HTTP and resizes Spanner resources accordingly.

Answer(s): D

Explanation:

As to mexblood1's point, CPU utilization is a recommended proxy for traffic when it comes to Cloud

Spanner. See: Alerts for high CPU utilization The following table specifies our recommendations for maximum CPU usage for both single-region and multi-region instances. These numbers are to ensure that your instance has enough compute capacity to continue to serve your traffic in the event of the loss of an entire zone (for single-region instances) or an entire region (for multi-region instances). - https://cloud.google.com/spanner/docs/cpu-utilization






Post your Comments and Discuss Google Google Associate Cloud Engineer exam with other Community members:

Google Associate Cloud Engineer Exam Discussions & Posts