PCA-QA - 1-70 Flashcards
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?
D. Use separate backend pools for each API path behind the load balancer
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?
A. Load data into Google BigQuery
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.)
C. Instrument the application with a monitoring tool like Stackdriver Debugger
D. Select an automation framework to reliably provision the cloud infrastructure
E. Deploy a continuous integration tool with automated testing in a staging environment
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?
A. The session variable is local to just a single instance
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?
C. Help them define their requirements and assess viable logging tools
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.)
A. Introduce a green-blue deployment model
C. Fragment the monolithic platform into microservices
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.)
A. Use the - -no-auto-delete flag on all persistent disks and stop the VM
D. Use Google BigQuery billing export and labels to associate cost to groups
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?
B. NoSQL
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?
C. Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group.
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?
C. Create a new service account with BigQuery access and execute your script with that user
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?
B. Federate authentication via SAML 2.0 to the existing Identity Provider
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?
B. Google Cloud Dataflow
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?
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
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?
A. In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in
Linux.
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?
A. Create a tokenizer service and store only tokenized data
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?
B. Google Cloud Bigtable
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?
B. Write a lifecycle management rule in JSON and push it to the bucket with gsutil
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?
B. Google Cloud Dataproc
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?
C. Dynamically resize the SSD persistent disk to 500 GB
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?
C. Google Cloud Bigtable
Your company’s user-feedback portal comprises a standard LAMP stack replicated across two zones. It is deployed in the us-central1 region and uses autoscaled managed instance groups on all layers, except the database. Currently, only a small group of select customers have access to the portal. The portal meets a
99,99% availability SLA under these conditions. However next quarter, your company will be making the portal available to all users, including unauthenticated users. You need to develop a resiliency testing strategy to ensure the system maintains the SLA once they introduce additional user load.
What should you do?
B. Create synthetic random user input, replay synthetic load until autoscale logic is triggered on at least one layer, and introduce ג€chaosג€ to the system by terminating random resources on both zones
One of the developers on your team deployed their application in Google Container Engine with the Dockerfile below. They report that their application deployments are taking too long.You want to optimize this Dockerfile for faster deployment times without adversely affecting the app’s functionality.Which two actions should you take? (Choose two.)
C. Use a slimmed-down base image like Alpine Linux
E. Copy the source after the package dependencies (Python and pip) are installed
Your solution is producing performance bugs in production that you did not see in staging and test environments. You want to adjust your test and deployment procedures to avoid this problem in the future.
What should you do?
C. Increase the load on your test and staging environments
A small number of API requests to your microservices-based application take a very long time. You know that each request to the API can traverse many services.
You want to know which service takes the longest in those cases.
What should you do?
D. Instrument your application with Stackdriver Trace in order to break down the request latncies at each microservice
During a high traffic portion of the day, one of your relational databases crashes, but the replica is never promoted
to a master. You want to avoid this in the future.
What should you do?
D. Implement routinely scheduled failovers of your databases
Your organization requires that metrics from all applications be retained for 5 years for future analysis in possible
legal proceedings.
Which approach should you use?
D. Configure Stackdriver Monitoring for all Projects, and export to Google Cloud Storage
Your company has decided to build a backup replica of their on-premises user authentication PostgreSQL
database on Google Cloud Platform. The database is 4
TB, and large updates are frequent. Replication requires private address space communication.
Which networking approach should you use?
A. Google Cloud Dedicated Interconnect
Auditors visit your teams every 12 months and ask to review all the Google Cloud Identity and Access Management
(Cloud IAM) policy changes in the previous 12 months. You want to streamline and expedite the analysis and audit
process.
What should you do?
B. Enable Logging export to Google BigQuery and use ACLs and views to scope the data shared with the auditor