You need to evaluate your team readiness for a new GCP project. You must perform the evaluation and create a skills gap plan incorporates the business goal of cost optimization. Your team has deployed two GCP projects successfully to date. What should you do?
Answer
Allocate budget for team training. Set a deadline for the new GCP project.
Allocate budget for team training. Create a roadmap for your team to achieve Google Cloud certification based on job role.
Allocate budget to hire skilled external consultants. Set a deadline for the new GCP project.
Allocate budget to hire skilled external consultants. Create a roadmap for your team to achieve Google Cloud certification based on job role.
Card 102
Question
You are creating an App Engine application that uses Cloud Datastore as its persistence layer. You need to retrieve several root entities for which you have the identifiers. You want to minimize the overhead in operations performed by Cloud Datastore. What should you do?
Answer
Create the Key object for each Entity and run a batch get operation
Create the Key object for each Entity and run multiple get operations, one operation for each entity
Use the identifiers to create a query filter and run a batch query operation
Use the identifiers to create a query filter and run multiple query operations, one operation for each entity
Card 103
Question
You need to upload files from your on-premises environment to Cloud Storage. You want the files to be encrypted on Cloud Storage using customer-supplied encryption keys. What should you do?
Answer
Supply the encryption key in a .boto configuration file. Use gsutil to upload the files.
Supply the encryption key using gcloud config. Use gsutil to upload the files to that bucket.
Use gsutil to create a bucket, and use the flag --encryption-key to supply the encryption key. Use gsutil to upload the files to that bucket.
Use gsutil to upload the files, and use the flag --encryption-key to supply the encryption key.
Card 104
Question
You have a Python web application with many dependencies that requires 0.1 CPU cores and 128 MB of memory to operate in production. You want to monitor and maximize machine utilization. You also want to reliably deploy new versions of the application. Which set of steps should you take?
Answer
Perform the following: 1. Create a managed instance group with f1-micro type machines. 2. Use a startup script to clone the repository, check out the production branch, install the dependencies, and start the Python app. 3. Restart the instances to automatically deploy new production releases.
Perform the following: 1. Create a managed instance group with n1-standard-1 type machines. 2. Build a Compute Engine image from the production branch that contains all of the dependencies and automatically starts the Python app. 3. Rebuild the Compute Engine image, and update the instance template to deploy new production releases.
Perform the following: 1. Create a Kubernetes Engine cluster with n1-standard-1 type machines. 2. Build a Docker image from the production branch with all of the dependencies, and tag it with the version number. 3. Create a Kubernetes Deployment with the imagePullPolicy set to "IfNotPresent" in the staging namespace, and then promote it to the production namespace after testing.
Perform the following: 1. Create a GKE cluster with n1-standard-4 type machines. 2. Build a Docker image from the master branch with all of the dependencies, and tag it with "latest". 3. Create a Kubernetes Deployment in the default namespace with the imagePullPolicy set to "Always". Restart the pods to automatically deploy new production releases.
Card 105
Question
You are running a cluster on Kubernetes Engine (GKE) to serve a web application. Users are reporting that a specific part of the application is not responding anymore. You notice that all pods of your deployment keep restarting after 2 seconds. The application writes logs to standard output. You want to inspect the logs to find the cause of the issue. Which approach can you take?
Answer
Review the Stackdriver logs for each Compute Engine instance that is serving as a node in the cluster.
Review the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application.
Connect to the cluster using gcloud credentials and connect to a container in one of the pods to read the logs.
Review the Serial Port logs for each Compute Engine instance that is serving as a node in the cluster.
Card 106
Question
You are using a single Cloud SQL instance to serve your application from a specific zone. You want to introduce high availability. What should you do?
Answer
Create a read replica instance in a different region
Create a failover replica instance in a different region
Create a failover replica instance in the same region, but in a different zone
Create a read replica instance in the same region, but in a different zone
Card 107
Question
Your company is running a stateless application on a Compute Engine instance. The application is used heavily during regular business hours and lightly outside of business hours. Users are reporting that the application is slow during peak hours. You need to optimize the application's performance. What should you do?
Answer
Create a snapshot of the existing disk. Create an instance template from the snapshot. Create an autoscaled managed instance group from the instance template.
Create a snapshot of the existing disk. Create a custom image from the snapshot. Create an autoscaled managed instance group from the custom image.
Create a custom image from the existing disk. Create an instance template from the custom image. Create an autoscaled managed instance group from the instance template.
Create an instance template from the existing disk. Create a custom image from the instance template. Create an autoscaled managed instance group from the custom image.
Card 108
Question
Your web application has several VM instances running within a VPC. You want to restrict communications between instances to only the paths and ports you authorize, but you don't want to rely on static IP addresses or subnets because the app can autoscale. How should you restrict communications?
Answer
Use separate VPCs to restrict traffic
Use Cloud DNS and only allow connections from authorized hostnames
Use firewall rules based on network tags attached to the compute instances
Use service accounts and configure the web application particular service accounts to have access
Card 109
Question
You are using Cloud SQL as the database backend for a large CRM deployment. You want to scale as usage increases and ensure that you don't run out of storage, maintain 75% CPU usage cores, and keep replication lag below 60 seconds. What are the correct steps to meet your requirements?
Answer
1. Enable automatic storage increase for the instance. 2. Create a Stackdriver alert when CPU usage exceeds 75%, and change the instance type to reduce CPU usage. 3. Create a Stackdriver alert for replication lag, and shard the database to reduce replication time.
1. Enable automatic storage increase for the instance. 2. Change the instance type to a 32-core machine type to keep CPU usage below 75%. 3. Create a Stackdriver alert for replication lag, and deploy memcache to reduce load on the master.
1. Create a Stackdriver alert when storage exceeds 75%, and increase the available storage on the instance to create more space. 2. Deploy memcached to reduce CPU load. 3. Change the instance type to a 32-core machine type to reduce replication lag.
1. Create a Stackdriver alert when storage exceeds 75%, and increase the available storage on the instance to create more space. 2. Deploy memcached to reduce CPU load. 3. Create a Stackdriver alert for replication lag, and change the instance type to a 32-core machine type to reduce replication lag.
Card 110
Question
You are tasked with building an online analytical processing (OLAP) marketing analytics and reporting tool. This requires a relational database that can operate on hundreds of terabytes of data. What is the Google-recommended tool for such applications?
Answer
Cloud Spanner, because it is globally distributed
Cloud SQL, because it is a fully managed relational database
Cloud Firestore, because it offers real-time synchronization across devices
BigQuery, because it is designed for large-scale processing of tabular data
Card 111
Question
You have deployed an application to Kubernetes Engine, and are using the Cloud SQL proxy container to make the Cloud SQL database available to the services running on Kubernetes. You are notified that the application is reporting database connection issues. Your company policies require a post-mortem. What should you do?
Answer
Use gcloud sql instances restart.
Validate that the Service Account used by the Cloud SQL proxy container still has the Cloud Build Editor role.
In the GCP Console, navigate to Stackdriver Logging. Consult logs for Kubernetes Engine and Cloud SQL.
In the GCP Console, navigate to Cloud SQL. Restore the latest backup. Use kubectl to restart all pods.
Card 112
Question
Your company pushes batches of sensitive transaction data from its application server VMs to Cloud Pub/Sub for processing and storage. What is the Google- recommended way for your application to authenticate to the required Google Cloud services?
Answer
Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
Ensure that VM service accounts do not have access to Cloud Pub/Sub, and use VM access scopes to grant the appropriate Cloud Pub/Sub IAM roles.
Generate an OAuth2 access token for accessing Cloud Pub/Sub, encrypt it, and store it in Cloud Storage for access from each VM.
Create a gateway to Cloud Pub/Sub using a Cloud Function, and grant the Cloud Function service account the appropriate Cloud Pub/Sub IAM roles.
Card 113
Question
You want to establish a Compute Engine application in a single VPC across two regions. The application must communicate over VPN to an on-premises network.
How should you deploy the VPN?
Answer
Use VPC Network Peering between the VPC and the on-premises network.
Expose the VPC to the on-premises network using IAM and VPC Sharing.
Create a global Cloud VPN Gateway with VPN tunnels from each region to the on-premises peer gateway.
Deploy Cloud VPN Gateway in each region. Ensure that each region has at least one VPN tunnel to the on-premises peer gateway.
Card 114
Question
Your applications will be writing their logs to BigQuery for analysis. Each application should have its own table. Any logs older than 45 days should be removed.
You want to optimize storage and follow Google-recommended practices. What should you do?
Answer
Configure the expiration time for your tables at 45 days
Make the tables time-partitioned, and configure the partition expiration at 45 days
Rely on BigQuery's default behavior to prune application logs older than 45 days
Create a script that uses the BigQuery command line tool (bq) to remove records older than 45 days
Card 115
Question
You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load.
What should you do?
Answer
Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
Configure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the managed instance group for the cluster using the gcloud command.
Create a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster Autoscaler using the gcloud command.
Create a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling on the cluster managed instance group from the GCP Console.
Card 116
Question
You need to develop procedures to verify resilience of disaster recovery for remote recovery using GCP. Your production environment is hosted on-premises. You need to establish a secure, redundant connection between your on-premises network and the GCP network.
What should you do?
Answer
Verify that Dedicated Interconnect can replicate files to GCP. Verify that direct peering can establish a secure connection between your networks if Dedicated Interconnect fails.
Verify that Dedicated Interconnect can replicate files to GCP. Verify that Cloud VPN can establish a secure connection between your networks if Dedicated Interconnect fails.
Verify that the Transfer Appliance can replicate files to GCP. Verify that Cloud VPN can establish a secure connection between your networks if the Transfer Appliance fails.
Verify that the Transfer Appliance can replicate files to GCP. Verify that direct peering can establish a secure connection between your networks if the Transfer Appliance fails.
Card 117
Question
Your company operates nationally and plans to use GCP for multiple batch workloads, including some that are not time-critical. You also need to use GCP services that are HIPAA-certified and manage service costs.
How should you design to meet Google best practices?
Answer
Provisioning preemptible VMs to reduce cost. Discontinue use of all GCP services and APIs that are not HIPAA-compliant.
Provisioning preemptible VMs to reduce cost. Disable and then discontinue use of all GCP and APIs that are not HIPAA-compliant.
Provision standard VMs in the same region to reduce cost. Discontinue use of all GCP services and APIs that are not HIPAA-compliant.
Provision standard VMs to the same region to reduce cost. Disable and then discontinue use of all GCP services and APIs that are not HIPAA-compliant.
Card 118
Question
Your customer wants to do resilience testing of their authentication layer. This consists of a regional managed instance group serving a public REST API that reads from and writes to a Cloud SQL instance.
What should you do?
Answer
Engage with a security company to run web scrapers that look your users' authentication data om malicious websites and notify you if any if found.
Schedule a disaster simulation exercise during which you can shut off all VMs in a zone to see how your application behaves.
Deploy intrusion detection software to your virtual machines to detect and log unauthorized access.
Configure a read replica for your Cloud SQL instance in a different zone than the master, and then manually trigger a failover while monitoring KPIs for our REST API.
Card 119
Question
Your BigQuery project has several users. For audit purposes, you need to see how many queries each user ran in the last month. What should you do?
Answer
Connect Google Data Studio to BigQuery. Create a dimension for the users and a metric for the amount of queries per user.
In the BigQuery interface, execute a query on the JOBS table to get the required information.
Use "˜bq show' to list all jobs. Per job, use "˜bq Is' to list job information and get the required information.
Use Cloud Audit Logging to view Cloud Audit Logs, and create a filter on the query operation to get the required information.
Card 120
Question
You want to automate the creation of a managed instance group. The VMs have many OS package dependencies. You want to minimize the startup time for VMs in the instance group.
What should you do?
Answer
Use Terraform to create the managed instance group and a startup script to install the OS package dependencies.
Create a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image.
Use Puppet to create the managed instance group and install the OS package dependencies.
Use Deployment Manager to create the managed instance group and Ansible to install the OS package dependencies.
How to use this set
Read the preview and check whether the content and answers suit your learning goal. You can add the public set to your sets to study it. Your account shows the available actions.