wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PCA-3

Total questions: 50

Worksheet time: 4hrs 10mins

Name
Class
Date
1.

You are migrating your on-premises solution to Google Cloud in several phases. You will use Cloud VPN to maintain a connection between your on-premises systems and Google Cloud until the migration is completed. You want to make sure all your on-premise systems remain reachable during this period. How should you organize your networking in Google Cloud?

a)

  Use the same IP range on Google Cloud as you use on-premises

b)

Use the same IP range on Google Cloud as you use on-premises for your primary IP range and use a secondary range that does not overlap with the range you use on-premises

c)

Use an IP range on Google Cloud that does not overlap with the range you use on-premises

d)

Use an IP range on Google Cloud that does not overlap with the range you use on-premises for your primary IP range and use a secondary range with the same IP range as you use on-premises

2.

You have found an error in your App Engine application caused by missing Cloud Datastore indexes. You have created a YAML file with the required indexes and want to deploy these new indexes to Cloud Datastore. What should you do?

a)

Point gcloud datastore create-indexes to your configuration file

b)

Upload the configuration file to App Engine’s default Cloud Storage bucket, and have App Engine detect the new indexes

c)

In the GCP Console, use Datastore Admin to delete the current indexes and upload the new configuration file

d)

 

  Create an HTTP request to the built-in python module to send the index configuration file to your application

3.

You have an application that will run on Compute Engine. You need to design an architecture that takes into account a disaster recovery plan that requires your application to fail over to another region in case of a regional outage. What should you do?

a)

Deploy the application on two Compute Engine instances in the same project but in a different region. Use the first instance to serve traffic, and use the HTTP load balancing service to fail over to the standby instance in case of a disaster.

b)

Deploy the application on a Compute Engine instance. Use the instance to serve traffic, and use the HTTP load balancing service to fail over to an instance on your premises in case of a disaster.

c)

Deploy the application on two Compute Engine instance groups, each in the same project but in a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to the standby instance group in case of a disaster.

d)

Deploy the application on two Compute Engine instance groups, each in a separate project and a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to the standby instance group in case of a disaster.

4.

You are deploying an application on App Engine that needs to integrate with an on-premises database. For security purposes, your on-premises database must not be accessible through the public internet. What should you do?

a)

Deploy your application on App Engine standard environment and use App Engine firewall rules to limit access to the open on-premises database.

b)

  Deploy your application on App Engine standard environment and use Cloud VPN to limit access to the on-premises database.

c)

  Deploy your application on App Engine flexible environment and use App Engine firewall rules to limit access to the on- premises database.

d)

Deploy your application on App Engine flexible environment and use Cloud VPN to limit access to the on-premises database.

5.

You are working in a highly secured environment where public Internet access from the Compute Engine VMs is not allowed. You do not yet have a VPN connection to access an on-premises file server. You need to install specific software on a Compute Engine instance. How should you install the software?

a)

Upload the required installation files to Cloud Storage. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gsutil.

b)

Upload the required installation files to Cloud Storage and use firewall rules to block all traffic except the IP address range for Cloud Storage. Download the files to the VM using gsutil.

c)

Upload the required installation files to Cloud Source Repositories. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gcloud.

d)

Upload the required installation files to Cloud Source Repositories and use firewall rules to block all traffic except the IP address range for Cloud Source Repositories. Download the files to the VM using gsutil.

6.

Your company is moving 75 TB of data into Google Cloud. You want to use Cloud Storage and follow Google-recommended practices. What should you do?

a)

Move your data onto a Transfer Appliance. Use a Transfer Appliance Rehydrator to decrypt the data into Cloud Storage.

b)

  Move your data onto a Transfer Appliance. Use Cloud Dataprep to decrypt the data into Cloud Storage.

c)

 

Install gsutil on each server that contains data. Use resumable transfers to upload the data into Cloud Storage.

d)

Install gsutil on each server containing data. Use streaming transfers to upload the data into Cloud Storage.

7.

You have an application deployed on Google Kubernetes Engine using a Deployment named echo-deployment. The deployment is exposed using a Service called echo-service. You need to perform an update to the application with minimal downtime to the application. What should you do?

a)

Use kubectl set image deployment/echo-deployment

b)

Use the rolling update functionality of the Instance Group behind the Kubernetes cluster

c)

Update the deployment yaml file with the new container image. Use kubectl delete deployment/echo-deployment and kubectl create –f

d)

Update the service yaml file which the new container image. Use kubectl delete service/echo-service and kubectl create – f

8.

Your company is using BigQuery as its enterprise data warehouse. Data is distributed over several Google Cloud projects. All queries on BigQuery need to be billed on a single project. You want to make sure that no query costs are incurred on the projects that contain the data. Users should be able to query the datasets, but not edit them. How should you configure users’ access roles?

a)

Add all users to a group. Grant the group the role of BigQuery user on the billing project and BigQuery dataViewer on the projects that contain the data.

b)

Add all users to a group. Grant the group the roles of BigQuery dataViewer on the billing project and BigQuery user on the projects that contain the data.

c)

Add all users to a group. Grant the group the roles of BigQuery jobUser on the billing project and BigQuery dataViewer on the projects that contain the data.

d)

Add all users to a group. Grant the group the roles of BigQuery dataViewer on the billing project and BigQuery jobUser on the projects that contain the data.

9.

You have developed an application using Cloud ML Engine that recognizes famous paintings from uploaded images. You want to test the application and allow specific people to upload images for the next 24 hours. Not all users have a Google Account. How should you have users upload images?

a)

Have users upload the images to Cloud Storage. Protect the bucket with a password that expires after 24 hours.

b)

Have users upload the images to Cloud Storage using a signed URL that expires after 24 hours.

c)

Create an App Engine web application where users can upload images. Configure App Engine to disable the application after 24 hours. Authenticate users via Cloud Identity.

d)

Create an App Engine web application where users can upload images for the next 24 hours. Authenticate users via Cloud Identity.

10.

Your web application must comply with the requirements of the European Union’s General Data Protection Regulation (GDPR). You are responsible for the technical architecture of your web application. What should you do?

a)

  Ensure that your web application only uses native features and services of Google Cloud Platform, because Google already has various certifications and provides “pass-on” compliance when you use native features.

b)

Enable the relevant GDPR compliance setting within the GCPConsole for each of the services in use within your application.

c)

Ensure that Cloud Security Scanner is part of your test planning strategy in order to pick up any compliance gaps.

d)

Define a design for the security of data in your web application that meets GDPR requirements.

11.

You need to set up Microsoft SQL Server on GCP. Management requires that there’s no downtime in case of a data center outage in any of the zones within a GCP region. What should you do?

a)

Configure a Cloud SQL instance with high availability enabled.

b)

Configure a Cloud Spanner instance with a regional instance configuration.

c)

Set up SQL Server on Compute Engine, using Always On Availability Groups using Windows Failover Clustering. Place nodes in different subnets.

d)

Set up SQL Server Always On Availability Groups using Windows Failover Clustering. Place nodes in different zones.

12.

The development team has provided you with a Kubernetes Deployment file. You have no infrastructure yet and need to deploy the application. What should you do?

a)

Use gcloud to create a Kubernetes cluster. Use Deployment Manager to create the deployment.

b)

Use gcloud to create a Kubernetes cluster. Use kubectl to create the deployment.

c)

Use kubectl to create a Kubernetes cluster. Use Deployment Manager to create the deployment.

d)

Use kubectl to create a Kubernetes cluster. Use kubectl to create the deployment.

13.

You need to evaluate your team readiness for a new GCP project. You must perform the evaluation and create a skills gap plan which incorporates the business goal of cost optimization. Your team has deployed two GCP projects successfully to date. What should you do?

a)

Allocate budget for team training. Set a deadline for the new GCP project.

b)

Allocate budget for team training. Create a roadmap for your team to achieve Google Cloud certification based on job role.

c)

Allocate budget to hire skilled external consultants. Set a deadline for the new GCP project.

d)

Allocate budget to hire skilled external consultants. Create a roadmap for your team to achieve Google Cloud certification based on job role.

14.

You are designing an application for use only during business hours. For the minimum viable product release, you’d like to use a managed product that automatically “scales to zero” so you don’t incur costs when there is no activity.

 

Which primary compute resource should you choose?

a)

Cloud Functions

b)

  Compute Engine

c)

  Google Kubernetes Engine

d)

AppEngine flexible environment

15.

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?

a)

Create the Key object for each Entity and run a batch get operation

b)

Create the Key object for each Entity and run multiple get operations, one operation for each entity

c)

Use the identifiers to create a query filter and run a batch query operation

d)

B.  Use the identifiers to create a query filter and run multiple query operations, one operation for each entity

16.

You need to upload files from your on-premises environment to Cloud Storage. You want the files to be encrypted on CloudStorage using customer-supplied encryption keys. What should you do?

a)

Supply the encryption key in a .boto configuration file. Use gsutil to upload the files.

b)

Supply the encryption key using gcloud config. Use gsutil to upload the files to that bucket.

c)

  Use gsutil to upload the files, and use the flag --encryption-key to supply the encryption key.

d)

  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.

17.

Your customer wants to capture multiple GBs of aggregate real-time key performance indicators (KPIs) from their game servers running on Google Cloud Platform and monitor the KPIs with low latency. How should they capture the KPIs?

a)

Store time-series data from the game servers in Google Bigtable, and view it using Google Data Studio.

b)

Output custom metrics to Stackdriver from the game servers, and create a Dashboard in Stackdriver Monitoring Console to view them.

c)

Schedule BigQuery load jobs to ingest analytics files uploaded to Cloud Storage every ten minutes, and visualize the results in Google Data Studio.

d)

Insert the KPIs into Cloud Datastore entities, and run ad hoc analysis and visualizations of them in Cloud Datalab.

18.

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?

a)

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.

b)

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.

c)

Perform the following:

1.Create a GoogleKubernetesEngine(GKE)clusterwithn1-standard-1typemachines.

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.

d)

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

19.

Your company wants to start using Google Cloud resources but wants to retain their on-premises Active Directory domain controller for identity management. What should you do?

a)

Use the Admin Directory API to authenticate against the Active Directory domain controller.

b)

 Use Google Cloud Directory Sync to synchronize Active Directory usernames with cloud identities and configure SAML SSO.

c)

Use Cloud Identity-Aware Proxy configured to use the on-premises Active Directory domain controller as an identity provider.

d)

Use Compute Engine to create an Active Directory (AD) domain controller that is a replica of the on-premises AD domain controller using Google Cloud Directory Sync.

20.

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?

a)

Review the Stackdriver logs for each Compute Engine instance that is serving as a node in the cluster.

b)

Review the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application.

c)

Connect to the cluster using gcloud credentials and connect to a container in one of the pods to read the logs.

d)

Review the Serial Port logs for each Compute Engine instance that is serving as a node in the cluster.

21.

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?

a)

  Create a read replica instance in a different region

b)

  Create a failover replica instance in a different region

c)

Create a read replica instance in the same region, but in a different zone

d)

Create a failover replica instance in the same region, but in a different zone

22.

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?

a)

  Create a snapshot of the existing disk. Create an instance template from the snapshot. Create an autoscaled managed instance group from the instance template.

b)

  Create a snapshot of the existing disk. Create a custom image from the snapshot. Create an autoscaled managed instance group from the custom image.

c)

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.

d)

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.

23.

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?

a)

Use separate VPCs to restrict traffic

b)

Use firewall rules based on network tags attached to the compute instances

c)

Use Cloud DNS and only allow connections from authorized hostnames

d)

Use service accounts and configure the web application to authorize particular service accounts to have access

24.

A.

 

YouareusingCloudSQLasthedatabasebackendforalargeCRMdeployment.Youwanttoscaleasusageincreasesandensure that you don’t run out of storage, maintain 75% CPU usage cores, and keep replication lag below 60 seconds. Whatarethe correct steps to meet your requirements?

a)

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.

b)

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.

c)

 

  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.

d)

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.

25.

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?

a)

Cloud Spanner, because it is globally distributed

b)

  Cloud Firestore, because it offers real-time synchronization across devices

Cloud SQL, because it is a fully managed relational database

c)

Cloud Firestore, because it offers real-time synchronization across devices

d)

BigQuery, because it is designed for large-scale processing of tabular data

26.

You have deployed an application to Google Kubernetes Engine (GKE), 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?

a)

Use gcloud sql instances restart.

b)

Validate that the Service Account used by the Cloud SQL proxy container still has the Cloud Build Editor role.

c)

In the GCP Console, navigate to Stackdriver Logging. Consult logs for (GKE) and Cloud SQL.

d)

In the GCP Console, navigate to Cloud SQL. Restore the latest backup. Use kubectl to restart all pods.

27.

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?

a)

Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.

b)

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.

c)

Generate an OAuth2 access token for accessing Cloud Pub/Sub, encrypt it, and store it in Cloud Storage for access from each VM.

d)

  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.

28.

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?

a)

Use VPC Network Peering between the VPC and the on-premises network.

b)

Expose the VPC to the on-premises network using IAM and VPC Sharing.

c)

Create a global Cloud VPN Gateway with VPN tunnels from each region to the on-premises peer gateway.

d)

Deploy Cloud VPN Gateway in each region. Ensure that each region has at least one VPN tunnel to the on-premises peer gateway.

29.

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?

a)

Configure the expiration time for your tables at 45 days

b)

Make the tables time-partitioned, and configure the partition expiration at 45 days

c)

Rely on BigQuery’s default behavior to prune application logs older than 45 days

d)

Create a script that uses the BigQuery command line tool (bq) to remove records older than 45 days

30.

You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load. What should you do?

a)

Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.

b)

Configure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the managed instance group for the cluster using the gcloud command.

c)

Create a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster Autoscaler using the gcloud command.

d)

 

Create a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling on the cluster managed instance group from the GCP Console.

31.

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?

a)

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.

b)

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.

c)

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.

d)

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.

32.

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?

a)

Provision preemptible VMs to reduce cost. Discontinue use of all GCP services and APIs that are not HIPAA-compliant.

b)

Provision preemptible VMs to reduce cost. Disable and then discontinue use of all GCP services and APIs that are not HIPAA-compliant.

c)

Provision standard VMs in the same region to reduce cost. Discontinue use of all GCP services and APIs that are not HIPAA-compliant.

d)

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.

33.

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?

a)

Engage with a security company to run web scrapers that look your for users’ authentication data om malicious websites and notify you if any is found.

b)

  Deploy intrusion detection software to your virtual machines to detect and log unauthorized access.

c)

Schedule a disaster simulation exercise during which you can shut off all VMs in a zone to see how your application behaves.

d)

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.

34.

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?

a)

Connect Google Data Studio to BigQuery. Create a dimension for the users and a metric for the amount of queries per user.

b)

  In the BigQuery interface, execute a query on the JOBS table to get the required information.

c)

Use ‘bq show’ to list all jobs. Per job, use ‘bq ls’ to list job information and get the required information.

d)

Use Cloud Audit Logging to view Cloud Audit Logs, and create a filter on the query operation to get the required information.

35.

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 new VMs in the instance group.

 

What should you do?

a)

Use Terraform to create the managed instance group and a startup script to install the OS package dependencies.

b)

Create a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image.

c)

Use Puppet to create the managed instance group and install the OS package dependencies.

d)

Use Deployment Manager to create the managed instance group and Ansible to install the OS package dependencies.

36.

Your company captures all web traffic data in Google Analytics 360 and stores it in BigQuery. Each country has its own dataset. Each dataset has multiple tables. You want analysts from each country to be able to see and query only the data for their respective countries.

 

How should you configure the access rights?

a)

Create a group per country. Add analysts to their respective country-groups. Create a single group ‘all_analysts’, and add all country-groups as members. Grant the ‘all_analysts’ group the IAM role of BigQuery jobUser. Share the appropriate dataset with view access with each respective analyst country-group.

b)

Create a group per country. Add analysts to their respective country-groups. Create a single group ‘all_analysts’, and add all country-groups as members. Grant the ‘all_analysts’ group the IAM role of BigQuery jobUser. Share the appropriate tables with view access with each respective analyst country-group.

c)

 

Create a group per country. Add analysts to their respective country-groups. Create a single group ‘all_analysts’, and add all country-groups as members. Grant the ‘all_analysts’ group the IAM role of BigQuery dataViewer. Share the appropriate dataset with view access with each respective analyst country-group.

d)

Create a group per country. Add analysts to their respective country-groups. Create a single group ‘all_analysts’, and add all country-groups as members. Grant the ‘all_analysts’ group the IAM role of BigQuery dataViewer. Share the appropriate table with view access with each respective analyst country-group.

37.

You have been engaged by your client to lead the migration of their application infrastructure to GCP. One of their current problems is that the on-premises high performance SAN is requiring frequent and expensive upgrades to keep up with the variety of workloads that are identified as follows: 20 TB of log archives retained for legal reasons; 500 GB of VM boot/data volumes and templates; 500 GB of image thumbnails; 200 GB of customer session state data that allows customers to restart sessions even if off-line for several days.

Which of the following best reflects your recommendations for a cost-effective storage allocation?

a)

Local SSD for customer session state data. Lifecycle-managed Cloud Storage for log archives, thumbnails, and VM boot/data volumes.

b)

Memcache backed by Cloud Datastore for the customer session state data. Lifecycle-managed Cloud Storage for log archives, thumbnails, and VM boot/data volumes.

c)

Memcache backed by Cloud SQL for customer session state data. Assorted local SSD-backed instances for VM boot/data volumes. Cloud Storage for log archives and thumbnails.

d)

Memcache backed by Persistent Disk SSD storage for customer session state data. Assorted local SSD-backed instances for VM boot/data volumes. Cloud Storage for log archives and thumbnails.

38.

Your web application uses Google Kubernetes Engine to manage several workloads. One workload requires a consistent set of hostnames even after pod scaling and relaunches.

 

Which feature of Kubernetes should you use to accomplish this?

a)

 StatefulSets

b)

Role-based access control

c)

Container environment variables

d)

Persistent Volumes

39.

You are using Cloud CDN to deliver static HTTP(S) website content hosted on a Compute Engine instance group. You want to improve the cache hit ratio.

 

What should you do?

a)

Customize the cache keys to omit the protocol from the key.

b)

Shorten the expiration time of the cached objects.

c)

Make sure the HTTP(S) header “Cache-Region” points to the closest region of your users.

d)

Replicate the static content in a Cloud Storage bucket. Point CloudCDN toward a load balancer on that bucket.

40.

Your architecture calls for the centralized collection of all admin activity and VM system logs within your project.

How should you collect these logs from both VMs and services?

a)

All admin and VM system logs are automatically collected by Stackdriver.

b)

Stackdriver automatically collects admin activity logs for most services. The Stackdriver Logging agent must be installed on each instance to collect system logs.

c)

Launch a custom syslogd compute instance and configure your GCP project and VMs to forward all logs to it.

d)

Install the Stackdriver Logging agent on a single compute instance and let it collect all audit and access logs for your environment.

41.

You have an App Engine application that needs to be updated. You want to test the update with production traffic before replacing the current application version.

 

What should you do?

a)

Deploy the update using the Instance Group Updater to create a partial rollout, which allows for canary testing.

b)

Deploy the update as a new version in the App Engine application, and split traffic between the new and current versions.

c)

Deploy the update in a new VPC, and use Google’s global HTTP load balancing to split traffic between the update and current applications.

d)

Deploy the update as a new App Engine application, and use Google’s global HTTP load balancing to split traffic between the new and current applications.

42.

All Compute Engine instances in your VPC should be able to connect to an Active Directory server on specific ports. Any other traffic emerging from your instances is not allowed. You want to enforce this using VPC firewall rules.

 

How should you configure the firewall rules?

a)

Create an egress rule with priority 1000 to deny all traffic for all instances. Create another egress rule with priority 100 to allow the Active Directory traffic for all instances.

b)

Create an egress rule with priority 100 to deny all traffic for all instances. Create another egress rule with priority 1000 to allow the Active Directory traffic for all instances.

c)

Create an egress rule with priority 1000 to allow the Active Directory traffic. Rely on the implied deny egress rule with priority 100 to block all traffic for all instances.

d)

Create an egress rule with priority 100 to allow the Active Directory traffic. Rely on the implied deny egress rule with priority 1000 to block all traffic for all instances.

43.

Your customer runs a web service used by e-commerce sites to offer product recommendations to users. The company has begun experimenting with a machine learning model on Google Cloud Platform to improve the quality of results.

 

What should the customer do to improve their model’s results over time?

a)

Export Cloud Machine Learning Engine performance metrics from Stackdriver to BigQuery, to be used to analyze the efficiency of the model.

b)

Build a roadmap to move the machine learning model training from Cloud GPUs to Cloud TPUs, which offer better results.

c)

Monitor Compute Engine announcements for availability of newer CPU architectures, and deploy the model to them as soon as they are available for additional performance.

d)

Save a history of recommendations and results of the recommendations in BigQuery, to be used as training data.

44.

A development team at your company has created a dockerized HTTPS web application. You need to deploy the application on Google Kubernetes Engine (GKE) and make sure that the application scales automatically.

 

How should you deploy to GKE?

a)

Use the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance the HTTPS traffic.

b)

Use the Horizontal Pod Autoscaler and enable cluster autoscaling on the Kubernetes cluster. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.

c)

Enable autoscaling on the Compute Engine instance group. Use an Ingress resource to load-balance the HTTPS traffic.

d)

Enable autoscaling on the Compute Engine instance group. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.

45.

You need to design a solution for global load balancing based on the URL path being requested. You need to ensure operations reliability and end-to-end in-transit encryption based on Google best practices.

 

What should you do?

a)

Create a cross-region load balancer with URL Maps.

b)

Create an HTTPS load balancer with URL Maps.

c)

Create appropriate instance groups and instances. Configure SSL proxy load balancing.

d)

Create a global forwarding rule. Configure SSL proxy load balancing.

46.

You have an application that makes HTTP requests to Cloud Storage. Occasionally the requests fail with HTTP status codes of 5xx and 429.

How should you handle these types of errors?

a)

Use gRPC instead of HTTP for better performance.

b)

Implement retry logic using a truncated exponential backoff strategy.

c)

Make sure the Cloud Storage bucket is multi-regional for geo-redundancy.

d)

Monitor https://status.cloud.google.com/feed.atom and only make requests if Cloud Storage is not reporting an incident.

47.

You need to develop procedures to test a disaster plan for a mission-critical application. You want to use Google- recommended practices and native capabilities within GCP.

 

What should you do?

a)

Use Deployment Manager to automate service provisioning. Use Activity Logs to monitor and debug your tests.

b)

Use Deployment Manager to automate service provisioning. Use Stackdriver to monitor and debug your tests.

c)

Use gcloud scripts to automate service provisioning. Use Activity Logs to monitor and debug your tests.

d)

Use gcloud scripts to automate service provisioning. Use Stackdriver to monitor and debug your tests.

48.

Your company creates rendering software which users can download from the company website. Your company has customers all over the world. You want to minimize latency for all your customers. You want to follow Google-recommended practices.

 

How should you store the files?

a)

Save the files in a Multi-Regional Cloud Storage bucket.

b)

Save the files in a Regional Cloud Storage bucket, one bucket per zone of the region.

c)

Save the files in multiple Regional Cloud Storage buckets, one bucket per zone per region.

d)

Save the files in multiple Multi-Regional Cloud Storage buckets, one bucket per multi-region.

49.

Your company acquired a healthcare startup and must retain its customers’ medical information for up to 4 more years, depending on when it was created. Your corporate policy is to securely retain this data, and then delete it as soon as regulations allow.

 

Which approach should you take?

a)

Store the data in Google Drive and manually delete records as they expire.

b)

Anonymize the data using the Cloud Data Loss Prevention API and store it indefinitely.

c)

Store the data in Cloud Storage and use lifecycle management to delete files when they expire.

d)

Store the data in Cloud Storage and run a nightly batch script that deletes all expired data.

50.

You are deploying a PHP App Engine Standard service with Cloud SQL as the backend. You want to minimize the number of queries to the database.

 

What should you do?

a)

Set the memcache service level to dedicated. Create a key from the hash of the query, and return database values from memcache before issuing a query to Cloud SQL.

b)

Set the memcache service level to dedicated. Create a cron task that runs every minute to populate the cache with keys containing query results.

c)

Set the memcache service level to shared. Create a cron task that runs every minute to save all expected queries to a key called “cached_queries”.

d)

 

Set the memcache service level to shared. Create a key called “cached_queries”, and return database values from the key before using a query to Cloud SQL.