πŸ”

ACE β€” questions

Page 7 of 17 Β· 334 total questions.

Topic 1 Β· Question 121

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?

  • ACreate 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.
  • BCreate 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.
  • CVerify 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. (correct answer)
  • DDelete 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 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 tem...

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs.

Topic 1 Β· Question 122

Your company is moving from an on-premises environment to Google Cloud. 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 Google Cloud quickly and with minimal support effort. What should you do?

  • A1. Build an instruction guide to install Cassandra on Google Cloud. 2. Make the instruction guide accessible to your developers.
  • B1. Advise your developers to go to Cloud Marketplace. 2. Ask the developers to launch a Cassandra image for their development work. (correct answer)
  • C1. Build a Cassandra Compute Engine instance and take a snapshot of it. 2. Use the snapshot to create instances for your developers.
  • D1. 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Advise your developers to go to Cloud Marketplace. 2. Ask the developers to launch a Cassandra image for their development work.

Topic 1 Β· Question 123

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?

  • A1. 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.
  • B1. Create a Cloud Monitoring Workspace and associate your Google Cloud Platform (GCP) project with it. 2. Create a Cloud Monitoring Alerting Policy that uses the threshold as a trigger condition. 3. Configure your email address in the notification channel. (correct answer)
  • C1. Create a Cloud Monitoring 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 Cloud Monitoring. 3. Create an uptime check for the instance in Cloud Monitoring.
  • D1. In Cloud Logging, create a logs-based metric to extract the CPU usage by using this regular expression: CPU Usage: ([0-9] {1,3})% 2. In Cloud Monitoring, create an Alerting Policy based on this metric. 3. Configure your email address in the notification channel.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Create a Cloud Monitoring Workspace and associate your Google Cloud Platform (GCP) project with it. 2. Create a Cloud Monitoring Alerting Policy that uses the threshold as a trigger condition. 3. Configure your ema...

Explanation

Cloud Monitoring collects metrics, dashboards, and alerts to observe system health.

Topic 1 Β· Question 124

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?

  • ACreate a cron job that runs on a scheduled basis to review Cloud Monitoring metrics, and then resize the Spanner instance accordingly.
  • BCreate a Cloud Monitoring 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.
  • CCreate a Cloud Monitoring 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.
  • DCreate a Cloud Monitoring 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. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a Cloud Monitoring 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.

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach. Cloud Monitoring collects metrics, dashboards, and alerts to observe system health.

Topic 1 Β· Question 125

Your company publishes large files on an Apache web server that runs on a Compute Engine instance. The Apache web server is not the only application running in the project. You want to receive an email when the egress network costs for the server exceed 100 dollars for the current month as measured by Google Cloud. What should you do?

  • ASet up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of "email."
  • BSet up a budget alert on the billing account with an amount of 100 dollars, a threshold of 100%, and notification type of "email."
  • CExport the billing data to BigQuery. Create a Cloud Function that uses BigQuery to sum the egress network costs of the exported billing data for the Apache web server for the current month and sends an email if it is over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly. (correct answer)
  • DUse the Cloud Logging Agent to export the Apache web server logs to Cloud Logging. Create a Cloud Function that uses BigQuery to parse the HTTP response log data in Cloud Logging for the current month and sends an email if the size of all HTTP responses, multiplied by current Google Cloud egress prices, totals over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Export the billing data to BigQuery. Create a Cloud Function that uses BigQuery to sum the egress network costs of the exported billing data for the Apache web server for the current month and sends an email if it is...

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 126

You have designed a solution on Google Cloud that uses multiple Google Cloud products. Your company has asked you to estimate the costs of the solution. You need to provide estimates for the monthly total cost. What should you do?

  • AFor each Google Cloud product in the solution, review the pricing details on the products pricing page. Use the pricing calculator to total the monthly costs for each Google Cloud product. (correct answer)
  • BFor each Google Cloud product in the solution, review the pricing details on the products pricing page. Create a Google Sheet that summarizes the expected monthly costs for each product.
  • CProvision the solution on Google Cloud. Leave the solution provisioned for 1 week. Navigate to the Billing Report page in the Cloud Console. Multiply the 1 week cost to determine the monthly costs.
  • DProvision the solution on Google Cloud. Leave the solution provisioned for 1 week. Use Cloud Monitoring to determine the provisioned and used resource amounts. Multiply the 1 week cost to determine the monthly costs.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: For each Google Cloud product in the solution, review the pricing details on the products pricing page. Use the pricing calculator to total the monthly costs for each Google Cloud product.

Topic 1 Β· Question 127

You have an application that receives SSL-encrypted TCP traffic on port 443. Clients for this application are located all over the world. You want to minimize latency for the clients. Which load balancing option should you use?

  • AHTTPS Load Balancer
  • BNetwork Load Balancer
  • CSSL Proxy Load Balancer (correct answer)
  • DInternal TCP/UDP Load Balancer. Add a firewall rule allowing ingress traffic from 0.0.0.0/0 on the target instances.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: SSL Proxy Load Balancer

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 128

You have an application on a general-purpose Compute Engine instance that is experiencing excessive disk read throttling on its Zonal SSD Persistent Disk. The application primarily reads large files from disk. The disk size is currently 350 GB. You want to provide the maximum amount of throughput while minimizing costs. What should you do?

  • AIncrease the size of the disk to 1 TB.
  • BIncrease the allocated CPU to the instance.
  • CMigrate to use a Local SSD on the instance. (correct answer)
  • DMigrate to use a Regional SSD on the instance.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Migrate to use a Local SSD on the instance.

Explanation

Local SSDs offer very high-IOPS ephemeral block storage physically attached to the VM.

Topic 1 Β· Question 129

Your Dataproc cluster runs in a single Virtual Private Cloud (VPC) network in a single subnet with range 172.16.20.128/25. There are no private IP addresses available in the VPC network. You want to add new VMs to communicate with your cluster using the minimum number of steps. What should you do?

  • AModify the existing subnet range to 172.16.20.0/24. (correct answer)
  • BCreate a new Secondary IP Range in the VPC and configure the VMs to use that range.
  • CCreate a new VPC network for the VMs. Enable VPC Peering between the VMs' VPC network and the Dataproc cluster VPC network.
  • DCreate a new VPC network for the VMs with a subnet of 172.32.0.0/16. Enable VPC network Peering between the Dataproc VPC network and the VMs VPC network. Configure a custom Route exchange.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Modify the existing subnet range to 172.16.20.0/24.

Topic 1 Β· Question 130

You manage an App Engine Service that aggregates and visualizes data from BigQuery. The application is deployed with the default App Engine Service account. The data that needs to be visualized resides in a different project managed by another team. You do not have access to this project, but you want your application to be able to read data from the BigQuery dataset. What should you do?

  • AAsk the other team to grant your default App Engine Service account the role of BigQuery Job User.
  • BAsk the other team to grant your default App Engine Service account the role of BigQuery Data Viewer. (correct answer)
  • CIn Cloud IAM of your project, ensure that the default App Engine service account has the role of BigQuery Data Viewer.
  • DIn Cloud IAM of your project, grant a newly created service account from the other team the role of BigQuery Job User in your project.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Ask the other team to grant your default App Engine Service account the role of BigQuery Data Viewer.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 131

You need to create a copy of a custom Compute Engine virtual machine (VM) to facilitate an expected increase in application traffic due to a business acquisition. What should you do?

  • ACreate a Compute Engine snapshot of your base VM. Create your images from that snapshot.
  • BCreate a Compute Engine snapshot of your base VM. Create your instances from that snapshot.
  • CCreate a custom Compute Engine image from a snapshot. Create your images from that image.
  • DCreate a custom Compute Engine image from a snapshot. Create your instances from that image. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a custom Compute Engine image from a snapshot. Create your instances from that image.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS.

Topic 1 Β· Question 132

You have deployed an application on a single Compute Engine instance. The application writes logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What should you do?

  • ANavigate to Cloud Logging and view the application logs.
  • BConnect to the instance's serial console and read the application logs.
  • CConfigure a Health Check on the instance and set a Low Healthy Threshold value.
  • DInstall and configure the Cloud Logging Agent and view the logs from Cloud Logging. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Install and configure the Cloud Logging Agent and view the logs from Cloud Logging.

Explanation

Cloud Logging centralizes, stores, and analyzes logs across services.

Topic 1 Β· Question 133

An application generates daily reports in a Compute Engine virtual machine (VM). The VM is in the project corp-iot-insights. Your team operates only in the project corp-aggregate-reports and needs a copy of the daily exports in the bucket corp-aggregate-reports-storage. You want to configure access so that the daily reports from the VM are available in the bucket corp-aggregate-reports-storage and use as few steps as possible while following Google-recommended practices. What should you do?

  • AMove both projects under the same folder.
  • BGrant the VM Service Account the role Storage Object Creator on corp-aggregate-reports-storage. (correct answer)
  • CCreate a Shared VPC network between both projects. Grant the VM Service Account the role Storage Object Creator on corp-iot-insights.
  • DMake corp-aggregate-reports-storage public and create a folder with a pseudo-randomized suffix name. Share the folder with the IoT team.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Grant the VM Service Account the role Storage Object Creator on corp-aggregate-reports-storage.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 134

You built an application on your development laptop that uses Google Cloud services. Your application uses Application Default Credentials for authentication and works fine on your development laptop. You want to migrate this application to a Compute Engine virtual machine (VM) and set up authentication using Google- recommended practices and minimal changes. What should you do?

  • AAssign appropriate access for Google services to the service account used by the Compute Engine VM.
  • BCreate a service account with appropriate access for Google services, and configure the application to use this account. (correct answer)
  • CStore credentials for service accounts with appropriate access for Google services in a config file, and deploy this config file with your application.
  • DStore credentials for your user account with appropriate access for Google services in a config file, and deploy this config file with your application.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a service account with appropriate access for Google services, and configure the application to use this account.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 135

You need to create a Compute Engine instance in a new project that doesn't exist yet. What should you do?

  • AUsing the Cloud SDK, create a new project, enable the Compute Engine API in that project, and then create the instance specifying your new project. (correct answer)
  • BEnable the Compute Engine API in the Cloud Console, use the Cloud SDK to create the instance, and then use the --project flag to specify a new project.
  • CUsing the Cloud SDK, create the new instance, and use the --project flag to specify the new project. Answer yes when prompted by Cloud SDK to enable the Compute Engine API.
  • DEnable the Compute Engine API in the Cloud Console. Go to the Compute Engine section of the Console to create a new instance, and look for the Create In A New Project option in the creation form.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Using the Cloud SDK, create a new project, enable the Compute Engine API in that project, and then create the instance specifying your new project.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS.

Topic 1 Β· Question 136

Your company runs one batch process in an on-premises server that takes around 30 hours to complete. The task runs monthly, can be performed offline, and must be restarted if interrupted. You want to migrate this workload to the cloud while minimizing cost. What should you do?

  • AMigrate the workload to a Compute Engine Preemptible VM.
  • BMigrate the workload to a Google Kubernetes Engine cluster with Preemptible nodes.
  • CMigrate the workload to a Compute Engine VM. Start and stop the instance as needed. (correct answer)
  • DCreate an Instance Template with Preemptible VMs On. Create a Managed Instance Group from the template and adjust Target CPU Utilization. Migrate the workload.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Migrate the workload to a Compute Engine VM. Start and stop the instance as needed.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS.

Topic 1 Β· Question 137

You are developing a new application and are looking for a Jenkins installation to build and deploy your source code. You want to automate the installation as quickly and easily as possible. What should you do?

  • ADeploy Jenkins through the Google Cloud Marketplace. (correct answer)
  • BCreate a new Compute Engine instance. Run the Jenkins executable.
  • CCreate a new Kubernetes Engine cluster. Create a deployment for the Jenkins image.
  • DCreate an instance template with the Jenkins executable. Create a managed instance group with this template.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deploy Jenkins through the Google Cloud Marketplace.

Topic 1 Β· Question 138

You have downloaded and installed the gcloud command line interface (CLI) and have authenticated with your Google Account. Most of your Compute Engine instances in your project run in the europe-west1-d zone. You want to avoid having to specify this zone with each CLI command when managing these instances. What should you do?

  • ASet the europe-west1-d zone as the default zone using the gcloud config subcommand. (correct answer)
  • BIn the Settings page for Compute Engine under Default location, set the zone to europe""west1-d.
  • CIn the CLI installation directory, create a file called default.conf containing zone=europe""west1""d.
  • DCreate a Metadata entry on the Compute Engine page with key compute/zone and value europe""west1""d.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Set the europe-west1-d zone as the default zone using the gcloud config subcommand.

Topic 1 Β· Question 139

The core business of your company is to rent out construction equipment at large scale. All the equipment that is being rented out has been equipped with multiple sensors that send event information every few seconds. These signals can vary from engine status, distance traveled, fuel level, and more. Customers are billed based on the consumption monitored by these sensors. You expect high throughput `" up to thousands of events per hour per device `" and need to retrieve consistent data based on the time of the event. Storing and retrieving individual signals should be atomic. What should you do?

  • ACreate a file in Cloud Storage per device and append new data to that file.
  • BCreate a file in Cloud Filestore per device and append new data to that file.
  • CIngest the data into Datastore. Store data in an entity group based on the device.
  • DIngest the data into Cloud Bigtable. Create a row key based on the event timestamp. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Ingest the data into Cloud Bigtable. Create a row key based on the event timestamp.

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Topic 1 Β· Question 140

You are asked to set up application performance monitoring on Google Cloud projects A, B, and C as a single pane of glass. You want to monitor CPU, memory, and disk. What should you do?

  • AEnable API and then share charts from project A, B, and C.
  • BEnable API and then give the metrics.reader role to projects A, B, and C.
  • CEnable API and then use default dashboards to view all projects in sequence.
  • DEnable API, create a workspace under project A, and then add projects B and C. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable API, create a workspace under project A, and then add projects B and C.

Showing questions 121–140 of 334 Β· Page 7 of 17