πŸ”

PCA β€” questions

Page 5 of 17 Β· 337 total questions.

Topic 1 Β· Question 81

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?

  • AProvision preemptible VMs to reduce cost. Discontinue use of all GCP services and APIs that are not HIPAA-compliant.
  • BProvision preemptible VMs to reduce cost. Disable and then discontinue use of all GCP services and APIs that are not HIPAA-compliant. (correct answer)
  • CProvision standard VMs in the same region to reduce cost. Discontinue use of all GCP services and APIs that are not HIPAA-compliant.
  • DProvision 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Provision preemptible VMs to reduce cost. Disable and then discontinue use of all GCP services and APIs that are not HIPAA-compliant.

Explanation

Preemptible/Spot VMs use spare capacity at a large discount for fault-tolerant, interruptible work.

Topic 1 Β· Question 82

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?

  • AEngage 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.
  • BDeploy intrusion detection software to your virtual machines to detect and log unauthorized access.
  • CSchedule a disaster simulation exercise during which you can shut off all VMs in a zone to see how your application behaves. (correct answer)
  • DConfigure 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Schedule a disaster simulation exercise during which you can shut off all VMs in a zone to see how your application behaves. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 83

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?

  • AConnect Google Data Studio to BigQuery. Create a dimension for the users and a metric for the amount of queries per user.
  • BIn the BigQuery interface, execute a query on the JOBS table to get the required information. (correct answer)
  • CUse 'bq show' to list all jobs. Per job, use 'bq ls' to list job information and get the required information.
  • DUse Cloud Audit Logging to view Cloud Audit Logs, and create a filter on the query operation to get the required information.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: In the BigQuery interface, execute a query on the JOBS table to get the required information.

Explanation

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

Topic 1 Β· Question 84

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?

  • AUse Terraform to create the managed instance group and a startup script to install the OS package dependencies.
  • BCreate a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image. (correct answer)
  • CUse Puppet to create the managed instance group and install the OS package dependencies.
  • DUse Deployment Manager to create the managed instance group and Ansible to install the OS package dependencies.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a custom VM image with all OS package dependencies. Use Deployment Manager to create the managed instance group with the VM image.

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs. Deployment Manager provisions Google Cloud infrastructure as code.

Topic 1 Β· Question 85

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?

  • ACreate 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. (correct answer)
  • BCreate 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.
  • CCreate 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.
  • DCreate 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option 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...

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 86

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?

  • ALocal SSD for customer session state data. Lifecycle-managed Cloud Storage for log archives, thumbnails, and VM boot/data volumes.
  • BMemcache backed by Cloud Datastore for the customer session state data. Lifecycle-managed Cloud Storage for log archives, thumbnails, and VM boot/data volumes.
  • CMemcache 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.
  • DMemcache 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. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option 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.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Persistent Disk provides durable block storage attached to Compute Engine VMs. Local SSDs offer very high-IOPS ephemeral block storage physically attached to the VM. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 87

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?

  • AStatefulSets (correct answer)
  • BRole-based access control
  • CContainer environment variables
  • DPersistent Volumes
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: StatefulSets.

Topic 1 Β· Question 88

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?

  • ACustomize the cache keys to omit the protocol from the key. (correct answer)
  • BShorten the expiration time of the cached objects.
  • CMake sure the HTTP(S) header "Cache-Region" points to the closest region of your users.
  • DReplicate the static content in a Cloud Storage bucket. Point CloudCDN toward a load balancer on that bucket.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Customize the cache keys to omit the protocol from the key.

Topic 1 Β· Question 89

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?

  • AAll admin and VM system logs are automatically collected by Stackdriver.
  • BStackdriver automatically collects admin activity logs for most services. The Stackdriver Logging agent must be installed on each instance to collect system logs. (correct answer)
  • CLaunch a custom syslogd compute instance and configure your GCP project and VMs to forward all logs to it.
  • DInstall the Stackdriver Logging agent on a single compute instance and let it collect all audit and access logs for your environment.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Stackdriver automatically collects admin activity logs for most services. The Stackdriver Logging agent must be installed on each instance to collect system logs.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 90

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?

  • ADeploy the update using the Instance Group Updater to create a partial rollout, which allows for canary testing.
  • BDeploy the update as a new version in the App Engine application, and split traffic between the new and current versions. (correct answer)
  • CDeploy the update in a new VPC, and use Google's global HTTP load balancing to split traffic between the update and current applications.
  • DDeploy 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy the update as a new version in the App Engine application, and split traffic between the new and current versions.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort.

Topic 1 Β· Question 91

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?

  • ACreate 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. (correct answer)
  • BCreate 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.
  • CCreate 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.
  • DCreate 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option 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.

Topic 1 Β· Question 92

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?

  • AExport Cloud Machine Learning Engine performance metrics from Stackdriver to BigQuery, to be used to analyze the efficiency of the model.
  • BBuild a roadmap to move the machine learning model training from Cloud GPUs to Cloud TPUs, which offer better results.
  • CMonitor Compute Engine announcements for availability of newer CPU architectures, and deploy the model to them as soon as they are available for additional performance.
  • DSave a history of recommendations and results of the recommendations in BigQuery, to be used as training data. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Save a history of recommendations and results of the recommendations in BigQuery, to be used as training data.

Explanation

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

Topic 1 Β· Question 93

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?

  • AUse the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance the HTTPS traffic. (correct answer)
  • BUse 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.
  • CEnable autoscaling on the Compute Engine instance group. Use an Ingress resource to load-balance the HTTPS traffic.
  • DEnable autoscaling on the Compute Engine instance group. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance the HTTPS traffic.

Topic 1 Β· Question 94

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?

  • ACreate a cross-region load balancer with URL Maps.
  • BCreate an HTTPS load balancer with URL Maps. (correct answer)
  • CCreate appropriate instance groups and instances. Configure SSL proxy load balancing.
  • DCreate a global forwarding rule. Configure SSL proxy load balancing.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an HTTPS load balancer with URL Maps.

Explanation

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

Topic 1 Β· Question 95

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?

  • AUse gRPC instead of HTTP for better performance.
  • BImplement retry logic using a truncated exponential backoff strategy. (correct answer)
  • CMake sure the Cloud Storage bucket is multi-regional for geo-redundancy.
  • DMonitor https://status.cloud.google.com/feed.atom and only make requests if Cloud Storage is not reporting an incident.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Implement retry logic using a truncated exponential backoff strategy.

Topic 1 Β· Question 96

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?

  • AUse Deployment Manager to automate service provisioning. Use Activity Logs to monitor and debug your tests.
  • BUse Deployment Manager to automate service provisioning. Use Stackdriver to monitor and debug your tests. (correct answer)
  • CUse gcloud scripts to automate service provisioning. Use Activity Logs to monitor and debug your tests.
  • DUse gcloud scripts to automate service provisioning. Use Stackdriver to monitor and debug your tests.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Deployment Manager to automate service provisioning. Use Stackdriver to monitor and debug your tests.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability. Deployment Manager provisions Google Cloud infrastructure as code.

Topic 1 Β· Question 97

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?

  • ASave the files in a Multi-Regional Cloud Storage bucket. (correct answer)
  • BSave the files in a Regional Cloud Storage bucket, one bucket per zone of the region.
  • CSave the files in multiple Regional Cloud Storage buckets, one bucket per zone per region.
  • DSave the files in multiple Multi-Regional Cloud Storage buckets, one bucket per multi-region.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Save the files in a Multi-Regional Cloud Storage bucket.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 98

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?

  • AStore the data in Google Drive and manually delete records as they expire.
  • BAnonymize the data using the Cloud Data Loss Prevention API and store it indefinitely.
  • CStore the data in Cloud Storage and use lifecycle management to delete files when they expire. (correct answer)
  • DStore the data in Cloud Storage and run a nightly batch script that deletes all expired data.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Store the data in Cloud Storage and use lifecycle management to delete files when they expire.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 99

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?

  • ASet 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. (correct answer)
  • BSet the memcache service level to dedicated. Create a cron task that runs every minute to populate the cache with keys containing query results.
  • CSet 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".
  • DSet 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option 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.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Topic 1 Β· Question 100

You need to ensure reliability for your application and operations by supporting reliable task scheduling for compute on GCP. Leveraging Google best practices, what should you do?

  • AUsing the Cron service provided by App Engine, publish messages directly to a message-processing utility service running on Compute Engine instances.
  • BUsing the Cron service provided by App Engine, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances. (correct answer)
  • CUsing the Cron service provided by Google Kubernetes Engine (GKE), publish messages directly to a message-processing utility service running on Compute Engine instances.
  • DUsing the Cron service provided by GKE, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Using the Cron service provided by App Engine, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. Compute Engine provides configurable virtual machines when you need full control of the OS. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

Showing questions 81–100 of 337 Β· Page 5 of 17