ACE : Associate Cloud Engineer Associate Cloud Engineer : Part 07

  1. 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?

    • 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.
    • 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.
    • 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.
    • 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.

    Explanation:

    Reference:

    https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances

  2. 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?

    • 1. Build an instruction guide to install Cassandra on Google Cloud.
      2. Make the instruction guide accessible to your developers.
    • 1. Advise your developers to go to Cloud Marketplace.
      2. Ask the developers to launch a Cassandra image for their development work.
    • 1. Build a Cassandra Compute Engine instance and take a snapshot of it.
      2. Use the snapshot to create instances for your developers.
    • 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.
  3. 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. 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.
    • 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.
    • 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.
    • 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.
  4. 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?

    • Create a cron job that runs on a scheduled basis to review Cloud Monitoring metrics, and then resize the Spanner instance accordingly.
    • Create 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.
    • Create 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.
    • 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.
  5. 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?

    • Set up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of “email.”
    • Set up a budget alert on the billing account with an amount of 100 dollars, a threshold of 100%, and notification type of “email.”
    • 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 over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.
    • Use 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.
  6. 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?

    • 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.
    • For 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.
    • Provision 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.
    • Provision 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.
  7. 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?

    • HTTPS Load Balancer
    • Network Load Balancer
    • SSL Proxy Load Balancer
    • Internal TCP/UDP Load Balancer. Add a firewall rule allowing ingress traffic from 0.0.0.0/0 on the target instances.
    Explanation:
    Reference:
    https://cloud.google.com/load-balancing/docs/ssl
  8. 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?

    • Increase the size of the disk to 1 TB.
    • Increase the allocated CPU to the instance.
    • Migrate to use a Local SSD on the instance.
    • Migrate to use a Regional SSD on the instance.
    Explanation:
    Reference:
    https://cloud.google.com/compute/docs/disks/performance
  9. 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?

    • Modify the existing subnet range to 172.16.20.0/24.
    • Create a new Secondary IP Range in the VPC and configure the VMs to use that range.
    • Create a new VPC network for the VMs. Enable VPC Peering between the VMs’ VPC network and the Dataproc cluster VPC network.
    • Create 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.
  10. 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?

    • Ask the other team to grant your default App Engine Service account the role of BigQuery Job User.
    • Ask the other team to grant your default App Engine Service account the role of BigQuery Data Viewer.
    • In Cloud IAM of your project, ensure that the default App Engine service account has the role of BigQuery Data Viewer.
    • In Cloud IAM of your project, grant a newly created service account from the other team the role of BigQuery Job User in your project.
    Explanation:

    The Owner, Editor, and Viewer primitive roles include the BigQuery Admin (roles/bigquery.dataOwner), BigQuery Data Editor (roles/bigquery.dataEditor), and BigQuery Data Viewer (roles/bigquery.dataViewer) roles, respectively. This means the Owner, Editor, and Viewer primitive roles have BigQuery access as defined for the respective BigQuery roles.

    Reference:

    https://cloud.google.com/bigquery/docs/access-control

  11. 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?

    • Create a Compute Engine snapshot of your base VM. Create your images from that snapshot.
    • Create a Compute Engine snapshot of your base VM. Create your instances from that snapshot.
    • Create a custom Compute Engine image from a snapshot. Create your images from that image.
    • Create a custom Compute Engine image from a snapshot. Create your instances from that image.
    Explanation:

    A custom image belongs only to your project. To create an instance with a custom image, you must first have a custom image.

    Reference:

    https://cloud.google.com/compute/docs/instances/create-start-instance

  12. 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?

    • Navigate to Cloud Logging and view the application logs.
    • Connect to the instance’s serial console and read the application logs.
    • Configure a Health Check on the instance and set a Low Healthy Threshold value.
    • Install and configure the Cloud Logging Agent and view the logs from Cloud Logging.
  13. 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?

    • Move both projects under the same folder.
    • Grant the VM Service Account the role Storage Object Creator on corp-aggregate-reports-storage.
    • Create a Shared VPC network between both projects. Grant the VM Service Account the role Storage Object Creator on corp-iot-insights.
    • Make corp-aggregate-reports-storage public and create a folder with a pseudo-randomized suffix name. Share the folder with the IoT team.
    Explanation:
    Reference:
    https://cloud.google.com/billing/docs/onboarding-checklist
  14. 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?

    • Assign appropriate access for Google services to the service account used by the Compute Engine VM.
    • Create a service account with appropriate access for Google services, and configure the application to use this account.
    • Store credentials for service accounts with appropriate access for Google services in a config file, and deploy this config file with your application.
    • Store credentials for your user account with appropriate access for Google services in a config file, and deploy this config file with your application.
    Explanation:
    Reference:
    https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances
  15. You need to create a Compute Engine instance in a new project that doesn’t exist yet. What should you do?

    • 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.
    • Enable 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.
    • Using 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.
    • Enable 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.
  16. 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?

    • Migrate the workload to a Compute Engine Preemptible VM.
    • Migrate the workload to a Google Kubernetes Engine cluster with Preemptible nodes.
    • Migrate the workload to a Compute Engine VM. Start and stop the instance as needed.
    • Create an Instance Template with Preemptible VMs On. Create a Managed Instance Group from the template and adjust Target CPU Utilization. Migrate the workload.
    Explanation:
    Reference:
    https://cloud.google.com/kubernetes-engine/docs/tutorials/migrating-node-pool
  17. 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?

    • Deploy Jenkins through the Google Cloud Marketplace.
    • Create a new Compute Engine instance. Run the Jenkins executable.
    • Create a new Kubernetes Engine cluster. Create a deployment for the Jenkins image.
    • Create an instance template with the Jenkins executable. Create a managed instance group with this template.
    Explanation:
    Reference:
    https://cloud.google.com/solutions/jenkins-on-kubernetes-engine
  18. 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?

    • Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
    • In the Settings page for Compute Engine under Default location, set the zone to europe–west1-d.
    • In the CLI installation directory, create a file called default.conf containing zone=europe–west1–d.
    • Create a Metadata entry on the Compute Engine page with key compute/zone and value europe–west1–d.
    Explanation:
    Reference:
    https://cloud.google.com/compute/docs/gcloud-compute
  19. 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?

    • Create a file in Cloud Storage per device and append new data to that file.
    • Create a file in Cloud Filestore per device and append new data to that file.
    • Ingest the data into Datastore. Store data in an entity group based on the device.
    • Ingest the data into Cloud Bigtable. Create a row key based on the event timestamp.
  20. 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?

    • Enable API and then share charts from project A, B, and C.
    • Enable API and then give the metrics.reader role to projects A, B, and C.
    • Enable API and then use default dashboards to view all projects in sequence.
    • Enable API, create a workspace under project A, and then add projects B and C.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments