PCA-QA - 169-224 Flashcards

1
Q

Your company places a high value on being responsive and meeting customer needs quickly. Their primary
business objectives are release speed and agility. You want to reduce the chance of security errors being
accidentally introduced.
Which two actions can you take? (Choose two.)

A

B. Use source code security analyzers as part of the CI/CD pipeline
E. Run a vulnerability security scanner as part of your continuous-integration /continuous-delivery (CI/CD)
pipeline

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

You want to enable your running Google Kubernetes Engine cluster to scale as demand for your application
changes.
What should you do?

A

C. Update the existing Kubernetes Engine cluster with the following command: gcloud alpha container clusters
update mycluster - -enable- autoscaling - -min-nodes=1 - -max-nodes=10

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

Your marketing department wants to send out a promotional email campaign. The development team wants to
minimize direct operation management. They project a wide range of possible customer responses, from 100 to
500,000 click-through per day. The link leads to a simple website that explains the promotion and collects user
information and preferences.
Which infrastructure should you recommend? (Choose two.)

A

A. Use Google App Engine to serve the website and Google Cloud Datastore to store user data.
C. Use a managed instance group to serve the website and Google Cloud Bigtable to store user data.

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

Your company just finished a rapid lift and shift to Google Compute Engine for your compute needs. You have
another 9 months to design and deploy a more cloud-native solution. Specifically, you want a system that is no-ops
and auto-scaling.
Which two compute products should you choose? (Choose two.)

A

B. Google Kubernetes Engine with containers
C. Google App Engine Standard Environment

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

One of your primary business objectives is being able to trust the data stored in your application. You want to log
all changes to the application data.
How can you design your logging system to verify authenticity of your logs?

A

C. Digitally sign each timestamp and log entry and store the signature

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

Your company has a Google Workspace account and Google Cloud Organization. Some developers in the company
have created Google Cloud projects outside of the Google Cloud Organization.
You want to create an Organization structure that allows developers to create projects, but prevents them from
modifying production projects. You want to manage policies for all projects centrally and be able to set more
restrictive policies for production projects.
You want to minimize disruption to users and developers when business needs change in the future. You want to
follow Google-recommended practices. Now should you design the Organization structure?

A

C. 1. Create folders under the Organization resource named Development and Production. 2. Grant all
developers the Project Creator IAM role on the Development folder. 3. Move the developer projects into the
Development folder. 4. Set the policies for all projects on the Organization. 5. Additionally, set the production
policies on the Production folder.

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

Your company has an application running on Compute Engine that allows users to play their favorite music. There
are a fixed number of instances. Files are stored in Cloud Storage, and data is streamed directly to users. Users are
reporting that they sometimes need to attempt to play popular songs multiple times before they are successful.
You need to improve the performance of the application. What should you do?

A

D. 1. Create a managed instance group with Compute Engine instances. 2. Create a global load balancer and
configure it with two backends: ג ›—Managed instance group ג ›—Cloud Storage bucket 3. Enable Cloud CDN
on the bucket backend

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

The operations team in your company wants to save Cloud VPN log events for one year. You need to configure the
cloud infrastructure to save the logs. What should you do?

A

A. Set up a filter in Cloud Logging and a Cloud Storage bucket as an export target for the logs you want to
save.

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

You are working with a data warehousing team that performs data analysis. The team needs to process data from
external partners, but the data contains personally identifiable information (PII). You need to process and store the
data without storing any of the PIIE data. What should you do?

A

A. Create a Dataflow pipeline to retrieve the data from the external sources. As part of the pipeline, use the
Cloud Data Loss Prevention (Cloud DLP) API to remove any PII data. Store the result in BigQuery.

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

You want to allow your operations team to store logs from all the production projects in your Organization, without including logs from other projects. All of the production projects are contained in a folder. You want to ensure that all logs for existing and new production projects are captured automatically. What should you do?

A

A. Create an aggregated export on the Production folder. Set the log sink to be a Cloud Storage bucket in an operations project.

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

Your company has an application that is running on multiple instances of Compute Engine. It generates 1 TB per day of logs. For compliance reasons, the logs need to be kept for at least two years. The logs need to be available for active query for 30 days. After that, they just need to be retained for audit purposes. You want to implement a storage solution that is compliant, minimizes costs, and follows Google-recommended practices. What should you do?

A

A. 1. Install a Cloud Logging agent on all instances. 2. Create a sink to export logs into a regional Cloud Storage bucket. 3. Create an Object Lifecycle rule to move files into a Coldline Cloud Storage bucket after one month. 4. Configure a retention policy at the bucket level using bucket lock.

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

Your company has just recently activated Cloud Identity to manage users. The Google Cloud Organization has been configured as well. The security team needs to secure projects that will be part of the Organization. They want to prohibit IAM users outside the domain from gaining permissions from now on. What should they do?

A

A. Configure an organization policy to restrict identities by domain.

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

Your company has an application running on Google Cloud that is collecting data from thousands of physical devices that are globally distributed. Data is published to Pub/Sub and streamed in real time into an SSD Cloud Bigtable cluster via a Dataflow pipeline. The operations team informs you that your Cloud
Bigtable cluster has a hotspot, and queries are taking longer than expected. You need to resolve the problem and prevent it from happening in the future. What should you do?

A

C. Review your RowKey strategy and ensure that keys are evenly spread across the alphabet.

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

Your company has a Google Cloud project that uses BigQuery for data warehousing. There are some tables that contain personally identifiable information (PII).
Only the compliance team may access the PII. The other information in the tables must be available to the data science team. You want to minimize cost and the time it takes to assign appropriate access to the tables. What should you do?

A

C. 1. Create a dataset for the data science team. 2. Create views of tables that you want to share, excluding PII. 3. Assign an appropriate project-level IAM role to the members of the data science team. 4. Assign access controls to the dataset that contains the view. 5. Authorize the view to access the source dataset.

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

Your operations team currently stores 10 TB of data in an object storage service from a third-party provider. They want to move this data to a Cloud Storage bucket as quickly as possible, following Google-recommended practices. They want to minimize the cost of this data migration. Which approach should they use?

A

B. Use the Storage Transfer Service to move the data.

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

You have a Compute Engine managed instance group that adds and removes Compute Engine instances from the
group in response to the load on your application. The instances have a shutdown script that removes REDIS
database entries associated with the instance. You see that many database entries have not been removed, and
you suspect that the shutdown script is the problem. You need to ensure that the commands in the shutdown script
are run reliably every time an instance is shut down. You create a Cloud Function to remove the database entries.
What should you do next?

A

C. Set up a Cloud Monitoring sink that triggers the Cloud Function after an instance removal log message
arrives in Cloud Logging.

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

You are managing several projects on Google Cloud and need to interact on a daily basis with BigQuery, Bigtable,
and Kubernetes Engine using the gcloud CL tool. You are travelling a lot and work on different workstations during
the week. You want to avoid having to manage the gcloud CLI manually. What should you do?

A

A. Use Google Cloud Shell in the Google Cloud Console to interact with Google Cloud.

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

Your company recently acquired a company that has infrastructure in Google Cloud. Each company has its own Google Cloud organization. Each company is using a Shared Virtual Private Cloud (VPC) to provide network connectivity for its applications. Some of the subnets used by both companies overlap. In order for both businesses to integrate, the applications need to have private network connectivity. These applications are not on overlapping subnets. You want to provide connectivity with minimal re-engineering. What should you do?

A

C. Set up a Cloud VPN gateway in each Shared VPC and peer Cloud VPNs.

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

You are managing several internal applications that are deployed on Compute Engine. Business users inform you that an application has become very slow over the past few days. You want to find the underlying cause in order to solve the problem. What should you do first?

A

A. Inspect the logs and metrics from the instances in Cloud Logging and Cloud Monitoring

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

Your company has an application running as a Deployment in a Google Kubernetes Engine (GKE) cluster. When releasing new versions of the application via a rolling deployment, the team has been causing outages. The root
cause of the outages is misconfigurations with parameters that are only used in production. You want to put
preventive measures for this in the platform to prevent outages. What should you do?

A

A. Configure liveness and readiness probes in the Pod specification

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

Your company uses Google Kubernetes Engine (GKE) as a platform for all workloads. Your company has a single
large GKE cluster that contains batch, stateful, and stateless workloads. The GKE cluster is configured with a
single node pool with 200 nodes. Your company needs to reduce the cost of this cluster but does not want to
compromise availability. What should you do?

A

C. Configure a HorizontalPodAutoscaler for all stateless workloads and for all compatible stateful workloads.
Configure the cluster to use node auto scaling.

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

Your company has a Google Cloud project that uses BigQuery for data warehousing on a pay-per-use basis. You want to monitor queries in real time to discover the most costly queries and which users spend the most. What should you do?

A

B. 1. Create a Cloud Logging sink to export BigQuery data access logs to BigQuery. 2. Perform a BigQuery query
on the generated table to extract the information you need.

23
Q

Your company and one of its partners each have a Google Cloud project in separate organizations. Your company’s
project (prj-a) runs in Virtual Private Cloud
(vpc-a). The partner’s project (prj-b) runs in vpc-b. There are two instances running on vpc-a and one instance
running on vpc-b. Subnets defined in both VPCs are not overlapping. You need to ensure that all instances
communicate with each other via internal IPs, minimizing latency and maximizing throughput. What should you do?

A

A. Set up a network peering between vpc-a and vpc-b.

24
Q

You want to store critical business information in Cloud Storage buckets. The information is regularly changed, but
previous versions need to be referenced on a regular basis. You want to ensure that there is a record of all changes
to any information in these buckets. You want to ensure that accidental edits or deletions can be easily rolled back.
Which feature should you enable?

A

B. Object Versioning

25
Q

You have a Compute Engine application that you want to autoscale when total memory usage exceeds 80%. You
have installed the Cloud Monitoring agent and configured the autoscaling policy as follows:
✑ Metric identifier: agent.googleapis.com/memory/percent_used
✑ Filter: metric.label.state = ‘used’
✑ Target utilization level: 80
✑ Target type: GAUGE
You observe that the application does not scale under high load. You want to resolve this. What should you do?

A

A. Change the Target type to DELTA_PER_MINUTE.

26
Q

You are deploying an application to Google Cloud. The application is part of a system. The application in Google
Cloud must communicate over a private network with applications in a non-Google Cloud environment. The
expected average throughput is 200 kbps. The business requires:
✑ as close to 100% system availability as possible
✑ cost optimization
You need to design the connectivity between the locations to meet the business requirements. What should you
provision?

A

A. An HA Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway

27
Q

Your company has an application running on App Engine that allows users to upload music files and share them
with other people. You want to allow users to upload files directly into Cloud Storage from their browser session.
The payload should not be passed through the backend. What should you do?

A

A.1. Set a CORS configuration in the target Cloud Storage bucket where the base URL of the App Engine
application is an allowed origin.
2. Use the Cloud Storage Signed URL feature to generate a POST URL.

28
Q

You are configuring the cloud network architecture for a newly created project in Google Cloud that will host applications in Compute Engine. Compute Engine virtual machine instances will be created in two different subnets (sub-a and sub-b) within a single region:
• Instances in sub-a will have public IP addresses.
• Instances in sub-b will have only private IP addresses.

To download updated packages, instances must connect to a public repository outside the boundaries of Google Cloud. You need to allow sub-b to access the external repository. What should you do?

A

B. Configure Cloud NAT and select sub-b in the NAT mapping section.

29
Q

Your company is planning to migrate their Windows Server 2022 from their on-premises data center to Google Cloud. You need to bring the licenses that are currently in use in on-premises virtual machines into the target cloud environment. What should you do?

A

D. 1. Create an image of the on-premises virtual machines.
2. Import the image as a virtual disk on Compute Engine using –os=windows-2022-dc-v.
3. Create a sole-tenancy instance on Compute Engine that uses the imported disk as a boot disk.

30
Q

Your company wants to migrate their 10-TB on-premises database export into Cloud Storage. You want to minimize
the time it takes to complete this activity and the overall cost. The bandwidth between the on-premises
environment and Google Cloud is 1 Gbps. You want to follow Google-recommended practices. What should you do?

A

D. Upload the data with gcloud storage cp.

31
Q

You are working at a financial institution that stores mortgage loan approval documents on Cloud Storage. Any change to these approval documents must be uploaded as a separate approval file. You need to ensure that these documents cannot be deleted or overwritten for the next 5 years. What should you do?

A

A.Create a retention policy on the bucket for the duration of 5 years. Create a lock on the retention policy.

32
Q

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?

A

D. Use separate backend pools for each API path behind the load balancer

33
Q

You have a Compute Engine application that you want to autoscale when total memory usage exceeds 80%. You
have installed the Cloud Monitoring agent and configured the autoscaling policy as follows:
✑ Metric identifier: agent.googleapis.com/memory/percent_used
✑ Filter: metric.label.state = ‘used’
✑ Target utilization level: 80
✑ Target type: GAUGE
You observe that the application does not scale under high load. You want to resolve this. What should you do?

You observe that the application does not scale under high load. You want to resolve this. What should you do?

A

C.Change the filter to metric.label.state = ‘used’

34
Q

The JencoMart security team requires that all Google Cloud Platform infrastructure is deployed using a least
privilege model with separation of duties for administration between production and development resources.
What Google domain and project structure should you recommend?

A

C. Create a single G Suite account to manage users with each stage of each application in its own project

35
Q

A few days after JencoMart migrates the user credentials database to Google Cloud Platform and shuts down the
old server, the new database server stops responding to SSH connections. It is still serving database requests to
the application servers correctly.
What three steps should you take to diagnose the problem? (Choose three.)

A

C. Take a snapshot of the disk and connect to a new machine to investigate
D. Check inbound firewall rules for the network the machine is connected to
F. Print the Serial Console output for the instance for troubleshooting, activate the interactive console, and
investigate

36
Q

JencoMart has decided to migrate user profile storage to Google Cloud Datastore and the application servers to
Google Compute Engine (GCE). During the migration, the existing infrastructure will need access to Datastore to
upload the data.
What service account key-management strategy should you recommend?

A

C. Provision service account keys for the on-premises infrastructure and use Google Cloud Platform (GCP)
managed keys for the VMs

37
Q

JencoMart has built a version of their application on Google Cloud Platform that serves traffic to Asia. You want to
measure success against their business and technical goals.
Which metrics should you track?

A

C. Total visits, error rates, and latency from Asia

38
Q
A

A. A single VPN tunnel, which limits throughput
C. A copy command that is not suited to operate over long distances
F. Complicated internet connectivity between the on-premises infrastructure and GCP

39
Q

JencoMart wants to move their User Profiles database to Google Cloud Platform.
Which Google Database should they use?

A

D. Google Cloud Datastore

40
Q

Regarding Cloud Storage, which option allows any user to access to a Cloud Storage resource for a limited time,
using a specific URL?

A

C. Signed URLs

41
Q

Of the options given, which is a NoSQL database?

A

A. Cloud Datastore

42
Q

Container Engine allows orchastration of what type of containers?

A

D. Docker

43
Q

Regarding Cloud IAM, what type of role(s) are available?

A

B. Primitive roles and Predefined roles

44
Q

Which of the follow products will allow you to host a static website?

A

C. Cloud Storage

45
Q

Container Engine is built on which open source system?

A

B. Kubernetes

46
Q

Cloud Source Repositories provide a hosted version of which version control system?

A

A. Git

47
Q

Which of the following is an analytics data warehouse?

A

B. Big Query

48
Q

Which service offers the ability to create and run virtual machines?

A

D. Compute Engine

49
Q

Which of the following is not helpful for mitigating the impact of an unexpected failure or reboot?

A

B. Configure tags and labels

50
Q

Single sign-on (SSO) with G Suite is based on _____?

A

A. SAML2

51
Q

Which tool allows you to sync data in your Google domain with Active Directory?

A

A. Google Cloud Directory Sync (GCDS)

52
Q

Regarding Cloud Storage: which of the following allows for time-limited access to buckets and objects without a
Google account?

A

A. Signed URLs

53
Q

Which of the following is a virtual machine instance that can be terminated by Compute Engine without warning?

A

A. A preemptible VM

54
Q

Regarding Compute Engine: What is a managed instance group?

A

B. A managed instance group uses an instance template to create identical instances