PCA-QA - 71-125 Flashcards

1
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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 Googlerecommended tool for such applications?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

D. Deploy Cloud VPN Gateway in each region. Ensure that each region has at least one VPN tunnel to the onpremises peer gateway

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Case study -
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.

To start the case study -
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an
All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.

Company Overview -
HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.

Executive Statement -
We are the number one local community app; it’s time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other.

Solution Concept -
HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data.

Existing Technical Environment -
HipLocal’s environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows:
* Existing APIs run on Compute Engine virtual machine instances hosted in GCP.
* State is stored in a single instance MySQL database in GCP.
* Data is exported to an on-premises Teradata/Vertica data warehouse.
* Data analytics is performed in an on-premises Hadoop environment.
* The application has no logging.
* There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive.

Business Requirements -
HipLocal’s investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:
* Expand availability of the application to new regions.
* Increase the number of concurrent users that can be supported.
* Ensure a consistent experience for users when they travel to different regions.
* Obtain user activity metrics to better understand how to monetize their product.
* Ensure compliance with regulations in the new regions (for example, GDPR).
* Reduce infrastructure management time and cost.
* Adopt the Google-recommended practices for cloud computing.

Technical Requirements -
* The application and backend must provide usage metrics and monitoring.
* APIs require strong authentication and authorization.
* Logging must be increased, and data should be stored in a cloud analytics platform.
* Move to serverless architecture to facilitate elastic scaling.
* Provide authorized access to internal apps in a secure manner.
HipLocal is configuring their access controls.
Which firewall configuration should they implement?

A

C. Allow traffic on port 443 for a specific tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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

A. StatefulSets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

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

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.

23
Q

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

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

24
Q

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

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

25
Q

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

B. Create an HTTPS load balancer with URL Maps.

26
Q

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

B. Implement retry logic using a truncated exponential backoff strategy

27
Q

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

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

28
Q

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

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

29
Q

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

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

30
Q

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

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.

31
Q

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?

A

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.

32
Q

Your company is building a new architecture to support its data-centric business focus. You are responsible for setting up the network. Your company’s mobile and web-facing applications will be deployed on-premises, and all data analysis will be conducted in GCP. The plan is to process and load 7 years of archived .csv files totaling 900 TB of data and then continue loading 10 TB of data daily. You currently have an existing 100-MB internet connection.
What actions will meet your company’s needs?

A

B. Lease a Transfer Appliance, upload archived files to it, and send it to Google to transfer archived data to Cloud Storage. Establish a connection with Google using a Dedicated Interconnect or Direct Peering connection and use it to upload files daily.

33
Q

You are developing a globally scaled frontend for a legacy streaming backend data API. This API expects events in
strict chronological order with no repeat data for proper processing.
Which products should you deploy to ensure guaranteed-once FIFO (first-in, first-out) delivery of data?

A

B. Cloud Pub/Sub to Cloud Dataflow

34
Q

Your company is planning to perform a lift and shift migration of their Linux RHEL 6.5+ virtual machines. The
virtual machines are running in an on-premises
VMware environment. You want to migrate them to Compute Engine following Google-recommended practices.
What should you do?

A

C. 1. Perform an assessment of virtual machines running in the current VMware environment. 2. Define a migration plan, prepare a Migrate for Compute Engine migration RunBook, and execute the migration

35
Q

You need to deploy an application to Google Cloud. The application receives traffic via TCP and reads and writes data to the filesystem. The application does not support horizontal scaling. The application process requires full control over the data on the file system because concurrent access causes corruption. The business is willing to accept a downtime when an incident occurs, but the application must be available 24/7 to support their business operations. You need to design the architecture of this application on Google Cloud. What should you do?

A

D. Use an unmanaged instance group with an active and standby instance in different zones, use a regional persistent disk, and use a network load balancer in front of the instances.

36
Q

Your company has an application running on multiple Compute Engine instances. You need to ensure that the application can communicate with an on-premises service that requires high throughput via internal IPs, while minimizing latency. What should you do?

A

D. Configure a Cloud Dedicated Interconnect connection between the on-premises environment and Google
Cloud.

37
Q

You are managing an application deployed on Cloud Run for Anthos, and you need to define a strategy for deploying new versions of the application. You want to evaluate the new code with a subset of production traffic to decide whether to proceed with the rollout. What should you do?

A

A. Deploy a new revision to Cloud Run with the new version. Configure traffic percentage between revisions.

38
Q

You are monitoring Google Kubernetes Engine (GKE) clusters in a Cloud Monitoring workspace. As a Site Reliability Engineer (SRE), you need to triage incidents quickly. What should you do?

A

A. Navigate the predefined dashboards in the Cloud Monitoring workspace, and then add metrics and create
alert policies.

39
Q

You are implementing a single Cloud SQL MySQL second-generation database that contains business-critical transaction data. You want to ensure that the minimum amount of data is lost in case of catastrophic failure. Which two features should you implement? (Choose two.)

A

C. Binary logging
D. Automated backups

40
Q

You are working at a sports association whose members range in age from 8 to 30. The association collects a large amount of health data, such as sustained injuries. You are storing this data in BigQuery. Current legislation requires you to delete such information upon request of the subject. You want to design a solution that can accommodate such a request. What should you do?

A

A. Use a unique identifier for each individual. Upon a deletion request, delete all rows from BigQuery with this identifier.

41
Q

Your company has announced that they will be outsourcing operations functions. You want to allow developers to easily stage new versions of a cloud-based application in the production environment and allow the outsourced operations team to autonomously promote staged versions to production. You want to minimize the operational overhead of the solution. Which Google Cloud product should you migrate to?

A

A. App Engine

42
Q

Your company is running its application workloads on Compute Engine. The applications have been deployed in
production, acceptance, and development environments. The production environment is business-critical and is
used 24/7, while the acceptance and development environments are only critical during office hours. Your CFO has
asked you to optimize these environments to achieve cost savings during idle times. What should you do?

A

B. Use Cloud Scheduler to trigger a Cloud Function that will stop the development and acceptance environments after office hours and start them just before office hours.

43
Q

You are moving an application that uses MySQL from on-premises to Google Cloud. The application will run on Compute Engine and will use Cloud SQL. You want to cut over to the Compute Engine deployment of the application with minimal downtime and no data loss to your customers. You want to migrate the application with minimal modification. You also need to determine the cutover strategy. What should you do?

A

C. 1. Set up Cloud VPN to provide private network connectivity between the Compute Engine application and the on-premises MySQL server. 2. Stop the on-premises application. 3. Start the Compute Engine application, configured to read and write to the on-premises MySQL server. 4. Create the replication configuration in Cloud SQL. 5. Configure the source database server to accept connections from the Cloud SQL replica. 6. Finalize the Cloud SQL replica configuration. 7. When replication has been completed, stop the Compute Engine application. 8. Promote the Cloud SQL replica to a standalone instance. 9. Restart the Compute Engine application, configured to read and write to the Cloud SQL standalone instance.

44
Q

Your organization has decided to restrict the use of external IP addresses on instances to only approved instances.
You want to enforce this requirement across all of your Virtual Private Clouds (VPCs). What should you do?

A

D. Set an Organization Policy with a constraint on constraints/compute.vmExternalIpAccess. List the approved instances in the allowedValues list.

45
Q

Your company uses the Firewall Insights feature in the Google Network Intelligence Center. You have several
firewall rules applied to Compute Engine instances.
You need to evaluate the efficiency of the applied firewall ruleset. When you bring up the Firewall Insights page in
the Google Cloud Console, you notice that there are no log rows to display. What should you do to troubleshoot the
issue?

A

B. Enable Firewall Rules Logging for the firewall rules you want to monitor.

46
Q

Your company has sensitive data in Cloud Storage buckets. Data analysts have Identity Access Management (IAM) permissions to read the buckets. You want to prevent data analysts from retrieving the data in the buckets from outside the office network. What should you do?

A

A. 1. Create a VPC Service Controls perimeter that includes the projects with the buckets. 2. Create an access level with the CIDR of the office network.

47
Q

You have developed a non-critical update to your application that is running in a managed instance group, and have
created a new instance template with the update that you want to release. To prevent any possible impact to the
application, you don’t want to update any running instances. You want any new instances that are created by the
managed instance group to contain the new update. What should you do?

A

C. Start a new rolling update. Select the Proactive update mode.

48
Q

Your company is designing its application landscape on Compute Engine. Whenever a zonal outage occurs, the
application should be restored in another zone as quickly as possible with the latest application data. You need to
design the solution to meet this requirement. What should you do?

A

B. Configure the Compute Engine instances with an instance template for the application, and use a regional persistent disk for the application data. Whenever a zonal outage occurs, use the instance template to spin up the application in another zone in the same region. Use the regional persistent disk for the application data.

49
Q

Your company has just acquired another company, and you have been asked to integrate their existing Google
Cloud environment into your company’s data center. Upon investigation, you discover that some of the RFC 1918 IP
ranges being used in the new company’s Virtual Private Cloud (VPC) overlap with your data center IP space. What
should you do to enable connectivity and make sure that there are no routing conflicts when connectivity is
established?

A

A. Create a Cloud VPN connection from the new VPC to the data center, create a Cloud Router, and apply new IP addresses so there is no overlapping IP space

50
Q

You need to migrate Hadoop jobs for your company’s Data Science team without modifying the underlying
infrastructure. You want to minimize costs and infrastructure management effort. What should you do?

A

B. Create a Dataproc cluster using preemptible worker instances

51
Q

Your company has a project in Google Cloud with three Virtual Private Clouds (VPCs). There is a Compute Engine
instance on each VPC. Network subnets do not overlap and must remain separated. The network configuration is
shown below

Instance #1 is an exception and must communicate directly with both Instance #2 and Instance #3 via internal IPs.
How should you accomplish this?

A

B. Add two additional NICs to Instance #1 with the following configuration: ג€¢ NIC1 ג—‹ VPC: VPC #2 ג—‹ SUBNETWORK: subnet #2 ג€¢ NIC2 ג—‹ VPC: VPC #3 ג—‹ SUBNETWORK: subnet #3 Update firewall rules to enable traffic between instances.

52
Q

You need to deploy an application on Google Cloud that must run on a Debian Linux environment. The application requires extensive configuration in order to operate correctly. You want to ensure that you can install Debian distribution updates with minimal manual intervention whenever they become available. What should you do?

A

B. Create a Debian-based Compute Engine instance, install and configure the application, and use OS patch management to install available updates.

53
Q

You have an application that runs in Google Kubernetes Engine (GKE). Over the last 2 weeks, customers have reported that a specific part of the application returns errors very frequently. You currently have no logging or monitoring solution enabled on your GKE cluster. You want to diagnose the problem, but you have not been able to replicate the issue. You want to cause minimal disruption to the application. What should you do?

A

A. 1. Update your GKE cluster to use Cloud Operations for GKE. 2. Use the GKE Monitoring dashboard to investigate logs from affected Pods.

54
Q

You need to deploy a stateful workload on Google Cloud. The workload can scale horizontally, but each instance
needs to read and write to the same POSIX filesystem. At high load, the stateful workload needs to support up to
100 MB/s of writes. What should you do?

A

C. Create a Cloud Filestore instance and mount it in each instance.