πŸ”

PCA β€” all questions

337 practice questions with answers and explanations.

Topic 1 Β· Question 1

Your company has decided to make a major revision of their API in order to create better experiences for their developers. They need to keep the old version of the API available and deployable, while allowing new customers and testers to try out the new API. They want to keep the same SSL and DNS records in place to serve both APIs. What should they do?

  • AConfigure a new load balancer for the new version of the API
  • BReconfigure old clients to use a new endpoint for the new API
  • CHave the old API forward traffic to the new API based on the path
  • DUse separate backend pools for each API path behind the load balancer (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use separate backend pools for each API path behind the load balancer

Explanation

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

Topic 1 Β· Question 2

Your company plans to migrate a multi-petabyte data set to the cloud. The data set must be available 24hrs a day. Your business analysts have experience only with using a SQL interface. How should you store the data to optimize it for ease of analysis?

  • ALoad data into Google BigQuery (correct answer)
  • BInsert data into Google Cloud SQL
  • CPut flat files into Google Cloud Storage
  • DStream data into Google Cloud Datastore
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Load data into Google BigQuery

Explanation

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

Topic 1 Β· Question 3 Β· Select all that apply

The operations manager asks you for a list of recommended practices that she should consider when migrating a J2EE application to the cloud. Which three practices should you recommend? (Choose three.)

  • APort the application code to run on Google App Engine
  • BIntegrate Cloud Dataflow into the application to capture real-time metrics
  • CInstrument the application with a monitoring tool like Stackdriver Debugger (correct answer)
  • DSelect an automation framework to reliably provision the cloud infrastructure (correct answer)
  • EDeploy a continuous integration tool with automated testing in a staging environment (correct answer)
  • FMigrate from MySQL to a managed NoSQL database like Google Cloud Datastore or Bigtable
Reveal answer & explanation
Correct answer: C, D, E

The correct answer is C, D, E. Option C: Instrument the application with a monitoring tool like Stackdriver Debugger Option D: Select an automation framework to reliably provision the cloud infrastructure Option E: Deploy a continuous integration tool with automated testing in a staging environment

Explanation

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

Topic 1 Β· Question 4

A news feed web service has the following code running on Google App Engine. During peak load, users report that they can see news articles they already viewed. What is the most likely cause of this problem?

  • AThe session variable is local to just a single instance (correct answer)
  • BThe session variable is being overwritten in Cloud Datastore
  • CThe URL of the API needs to be modified to prevent caching
  • DThe HTTP Expires header needs to be set to -1 stop caching
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The session variable is local to just a single instance.

Topic 1 Β· Question 5

An application development team believes their current logging tool will not meet their needs for their new cloud-based product. They want a better tool to capture errors and help them analyze their historical log data. You want to help them find a solution that meets their needs. What should you do?

  • ADirect them to download and install the Google StackDriver logging agent
  • BSend them a list of online resources about logging best practices
  • CHelp them define their requirements and assess viable logging tools (correct answer)
  • DHelp them upgrade their current tool to take advantage of any new features
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Help them define their requirements and assess viable logging tools.

Topic 1 Β· Question 6 Β· Select all that apply

You need to reduce the number of unplanned rollbacks of erroneous production deployments in your company's web hosting platform. Improvement to the QA/ Test processes accomplished an 80% reduction. Which additional two approaches can you take to further reduce the rollbacks? (Choose two.)

  • AIntroduce a green-blue deployment model (correct answer)
  • BReplace the QA environment with canary releases (correct answer)
  • CFragment the monolithic platform into microservices
  • DReduce the platform's dependency on relational database systems
  • EReplace the platform's relational database systems with a NoSQL database
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Introduce a green-blue deployment model Option B: Replace the QA environment with canary releases.

Topic 1 Β· Question 7 Β· Select all that apply

To reduce costs, the Director of Engineering has required all developers to move their development infrastructure resources from on-premises virtual machines (VMs) to Google Cloud Platform. These resources go through multiple start/stop events during the day and require state to persist. You have been asked to design the process of running a development environment in Google Cloud while providing cost visibility to the finance department. Which two steps should you take? (Choose two.)

  • AUse the - -no-auto-delete flag on all persistent disks and stop the VM (correct answer)
  • BUse the - -auto-delete flag on all persistent disks and terminate the VM
  • CApply VM CPU utilization label and include it in the BigQuery billing export
  • DUse Google BigQuery billing export and labels to associate cost to groups (correct answer)
  • EStore all state into local SSD, snapshot the persistent disks, and terminate the VM
  • FStore all state in Google Cloud Storage, snapshot the persistent disks, and terminate the VM
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Use the - -no-auto-delete flag on all persistent disks and stop the VM Option D: Use Google BigQuery billing export and labels to associate cost to groups

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 8

Your company wants to track whether someone is present in a meeting room reserved for a scheduled meeting. There are 1000 meeting rooms across 5 offices on 3 continents. Each room is equipped with a motion sensor that reports its status every second. The data from the motion detector includes only a sensor ID and several different discrete items of information. Analysts will use this data, together with information about account owners and office locations. Which database type should you use?

  • AFlat file
  • BNoSQL (correct answer)
  • CRelational
  • DBlobstore
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: NoSQL.

Topic 1 Β· Question 9

You set up an autoscaling instance group to serve web traffic for an upcoming launch. After configuring the instance group as a backend service to an HTTP(S) load balancer, you notice that virtual machine (VM) instances are being terminated and re-launched every minute. The instances do not have a public IP address. You have verified the appropriate web response is coming from each instance using the curl command. You want to ensure the backend is configured correctly. What should you do?

  • AEnsure that a firewall rules exists to allow source traffic on HTTP/HTTPS to reach the load balancer.
  • BAssign a public IP to each instance and configure a firewall rule to allow the load balancer to reach the instance public IP.
  • CEnsure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group. (correct answer)
  • DCreate a tag on each instance with the name of the load balancer. Configure a firewall rule with the name of the load balancer as the source and the instance tag as the destination.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group.

Explanation

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

Topic 1 Β· Question 10

You write a Python script to connect to Google BigQuery from a Google Compute Engine virtual machine. The script is printing errors that it cannot connect to BigQuery. What should you do to fix the script?

  • AInstall the latest BigQuery API client library for Python
  • BRun your script on a new virtual machine with the BigQuery access scope enabled
  • CCreate a new service account with BigQuery access and execute your script with that user (correct answer)
  • DInstall the bq component for gcloud with the command gcloud components install bq.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a new service account with BigQuery access and execute your script with that user

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 11

Your customer is moving an existing corporate application to Google Cloud Platform from an on-premises data center. The business owners require minimal user disruption. There are strict security team requirements for storing passwords. What authentication strategy should they use?

  • AUse G Suite Password Sync to replicate passwords into Google
  • BFederate authentication via SAML 2.0 to the existing Identity Provider (correct answer)
  • CProvision users in Google using the Google Cloud Directory Sync tool
  • DAsk users to set their Google password to match their corporate password
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Federate authentication via SAML 2.0 to the existing Identity Provider.

Topic 1 Β· Question 12

Your company has successfully migrated to the cloud and wants to analyze their data stream to optimize operations. They do not have any existing code for this analysis, so they are exploring all their options. These options include a mix of batch and stream processing, as they are running some hourly jobs and live- processing some data as it comes in. Which technology should they use for this?

  • AGoogle Cloud Dataproc
  • BGoogle Cloud Dataflow (correct answer)
  • CGoogle Container Engine with Bigtable
  • DGoogle Compute Engine with Google BigQuery
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Google Cloud Dataflow

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 Β· Question 13

Your customer is receiving reports that their recently updated Google App Engine application is taking approximately 30 seconds to load for some of their users. This behavior was not reported before the update. What strategy should you take?

  • AWork with your ISP to diagnose the problem
  • BOpen a support ticket to ask for network capture and flow data to diagnose the problem, then roll back your application
  • CRoll back to an earlier known good release initially, then use Stackdriver Trace and Logging to diagnose the problem in a development/test/staging environment (correct answer)
  • DRoll back to an earlier known good release, then push the release again at a quieter period to investigate. Then use Stackdriver Trace and Logging to diagnose the problem
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Roll back to an earlier known good release initially, then use Stackdriver Trace and Logging to diagnose the problem in a development/test/staging environment

Explanation

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

Topic 1 Β· Question 14

A production database virtual machine on Google Compute Engine has an ext4-formatted persistent disk for data files. The database is about to run out of storage space. How can you remediate the problem with the least amount of downtime?

  • AIn the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in Linux. (correct answer)
  • BShut down the virtual machine, use the Cloud Platform Console to increase the persistent disk size, then restart the virtual machine
  • CIn the Cloud Platform Console, increase the size of the persistent disk and verify the new space is ready to use with the fdisk command in Linux
  • DIn the Cloud Platform Console, create a new persistent disk attached to the virtual machine, format and mount it, and configure the database service to move the files to the new disk
  • EIn the Cloud Platform Console, create a snapshot of the persistent disk restore the snapshot to a new larger disk, unmount the old disk, mount the new disk and restart the database service
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in Linux.

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs.

Topic 1 Β· Question 15

Your application needs to process credit card transactions. You want the smallest scope of Payment Card Industry (PCI) compliance without compromising the ability to analyze transactional data and trends relating to which payment methods are used. How should you design your architecture?

  • ACreate a tokenizer service and store only tokenized data (correct answer)
  • BCreate separate projects that only process credit card data
  • CCreate separate subnetworks and isolate the components that process credit card data
  • DStreamline the audit discovery phase by labeling all of the virtual machines (VMs) that process PCI data
  • EEnable Logging export to Google BigQuery and use ACLs and views to scope the data shared with the auditor
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a tokenizer service and store only tokenized data.

Topic 1 Β· Question 16

You have been asked to select the storage system for the click-data of your company's large portfolio of websites. This data is streamed in from a custom website analytics package at a typical rate of 6,000 clicks per minute. With bursts of up to 8,500 clicks per second. It must have been stored for future analysis by your data science and user experience teams. Which storage infrastructure should you choose?

  • AGoogle Cloud SQL
  • BGoogle Cloud Bigtable (correct answer)
  • CGoogle Cloud Storage
  • DGoogle Cloud Datastore
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Google Cloud Bigtable

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Topic 1 Β· Question 17

You are creating a solution to remove backup files older than 90 days from your backup Cloud Storage bucket. You want to optimize ongoing Cloud Storage spend. What should you do?

  • AWrite a lifecycle management rule in XML and push it to the bucket with gsutil
  • BWrite a lifecycle management rule in JSON and push it to the bucket with gsutil (correct answer)
  • CSchedule a cron script using gsutil ls ""lr gs://backups/** to find and remove items older than 90 days
  • DSchedule a cron script using gsutil ls ""l gs://backups/** to find and remove items older than 90 days and schedule it with cron
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Write a lifecycle management rule in JSON and push it to the bucket with gsutil.

Topic 1 Β· Question 18

Your company is forecasting a sharp increase in the number and size of Apache Spark and Hadoop jobs being run on your local datacenter. You want to utilize the cloud to help you scale this upcoming demand with the least amount of operations work and code change. Which product should you use?

  • AGoogle Cloud Dataflow
  • BGoogle Cloud Dataproc (correct answer)
  • CGoogle Compute Engine
  • DGoogle Kubernetes Engine
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Google Cloud Dataproc

Explanation

Dataproc runs managed Spark and Hadoop clusters for big-data processing.

Topic 1 Β· Question 19

The database administration team has asked you to help them improve the performance of their new database server running on Google Compute Engine. The database is for importing and normalizing their performance statistics and is built with MySQL running on Debian Linux. They have an n1-standard-8 virtual machine with 80 GB of SSD persistent disk. What should they change to get better performance from this system?

  • AIncrease the virtual machine's memory to 64 GB
  • BCreate a new virtual machine running PostgreSQL
  • CDynamically resize the SSD persistent disk to 500 GB (correct answer)
  • DMigrate their performance metrics warehouse to BigQuery
  • EModify all of their batch jobs to use bulk inserts into the database
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Dynamically resize the SSD persistent disk to 500 GB

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs.

Topic 1 Β· Question 20

You want to optimize the performance of an accurate, real-time, weather-charting application. The data comes from 50,000 sensors sending 10 readings a second, in the format of a timestamp and sensor reading. Where should you store the data?

  • AGoogle BigQuery
  • BGoogle Cloud SQL
  • CGoogle Cloud Bigtable (correct answer)
  • DGoogle Cloud Storage
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Google Cloud Bigtable

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads. This option meets the real-time / low-latency performance requirement.

Showing questions 1–20 of 337 Β· Page 1 of 17