Google (ACE) Exam Questions And Answers page 9
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?
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.
Google Cloud Platform Fundamentals
GCP Monitoring and Operations
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.
Managing GCP Resources
GCP Monitoring and Operations
You have an application that uses Cloud Spanner as a database backend to keep current state information about users. Cloud Bigtable logs all events triggered by users. You export Cloud Spanner data to Cloud Storage during daily backups. One of your analysts asks you to join data from Cloud Spanner and Cloud Bigtable for specific users. You want to complete this ad hoc request as efficiently as possible. What should you do?
Create a dataflow job that copies data from Cloud Bigtable and Cloud Storage for specific users.
Create a dataflow job that copies data from Cloud Bigtable and Cloud Spanner for specific users.
Create a Cloud Dataproc cluster that runs a Spark job to extract data from Cloud Bigtable and Cloud Storage for specific users.
Create two separate BigQuery external tables on Cloud Storage and Cloud Bigtable. Use the BigQuery console to join these tables through user fields, and apply appropriate filters.
GCP Computing Services
GCP Storage Services
You have an instance group that you want to load balance. You want the load balancer to terminate the client SSL session. The instance group is used to serve a public web application over HTTPS. You want to follow Google-recommended practices. What should you do?
Configure an HTTP(S) load balancer.
Configure an internal TCP load balancer.
Configure an external SSL proxy load balancer.
Configure an external TCP proxy load balancer.
GCP Security
GCP Monitoring and Operations
You have an object in a Cloud Storage bucket that you want to share with an external company. The object contains sensitive data. You want access to the content to be removed after four hours. The external company does not have a Google account to which you can grant specific user-based access privileges. You want to use the most secure method that requires the fewest steps. What should you do?
Create a signed URL with a four-hour expiration and share the URL with the company.
Set object access to public and use object lifecycle management to remove the object after four hours.
Configure the storage bucket as a static website and furnish the object s URL to the company. Delete the object from the storage bucket after four hours.
Create a new Cloud Storage bucket specifically for the external company to access. Copy the object to that bucket. Delete the bucket after four hours have passed.
GCP Storage Services
You have a project for your App Engine application that serves a development environment. The required testing has succeeded and you want to create a new project to serve as your production environment. What should you do?
Use gcloud to create the new project, and then deploy your application to the new project.
Use gcloud to create the new project and to copy the deployed application to the new project.
Create a Deployment Manager configuration file that copies the current App Engine deployment into a new project.
Deploy your application again using gcloud and specify the project parameter with the new project name to create the new project.
Managing GCP Resources
You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?
Create a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.
Create an instance template, and use the template in a managed instance group with autoscaling configured.
Create an instance template, and use the template in a managed instance group that scales up and down based on the time of day.
Use a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.
Managing GCP Resources
GCP Computing Services
You have a virtual machine that is currently configured with 2 vCPUs and 4 GB of memory. It is running out of memory. You want to upgrade the virtual machine to have 8 GB of memory. What should you do?
Rely on live migration to move the workload to a machine with more memory.
Use gcloud to add metadata to the VM. Set the key to required-memory-size and the value to 8 GB.
Stop the VM, change the machine type to n1-standard-8, and start the VM.
Stop the VM, increase the memory to 8 GB, and start the VM.
Managing GCP Resources
You have a web application deployed as a managed instance group. You have a new version of the application to gradually deploy. Your web application is currently receiving live web traffic. You want to ensure that the available capacity does not decrease during the deployment. What should you do?
Perform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1.
Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0.
Create a new managed instance group with an updated instance template. Add the group to the backend service for the load balancer. When all instances in the new managed instance group are healthy, delete the old managed instance group.
Create a new instance template with the new application version. Update the existing managed instance group with the new instance template. Delete the instances in the managed instance group to allow the managed instance group to recreate the instance using the new instance template.
Managing GCP Resources
GCP Monitoring and Operations
You have a website hosted on App Engine standard environment. You want 1% of your users to see a new test version of the website. You want to minimize complexity. What should you do?
Deploy the new version in the same application and use the --migrate option.
Deploy the new version in the same application and use the --splits option to give a weight of 99 to the current version and a weight of 1 to the new version.
Create a new App Engine application in the same project. Deploy the new version in that application. Use the App Engine library to proxy 1% of the requests to the new version.
Create a new App Engine application in the same project. Deploy the new version in that application. Configure your network load balancer to send 1% of the traffic to that new application.
Managing GCP Resources
GCP Monitoring and Operations
Comments