wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Google Professional Architect 10 - 181 to 197

Total questions: 17

Worksheet time: 17mins

Name
Class
Date
1.
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)
Modify the shutdown script to wait for 30 seconds before triggering the Cloud Function.
b)
Do not use the Cloud Function. Modify the shutdown script to restart if it has not completed in 30 seconds.
c)
Set up a Cloud Monitoring sink that triggers the Cloud Function after an instance removal log message arrives in Cloud Logging.
d)
Modify the shutdown script to wait for 30 seconds and then publish a message to a Pub/Sub queue.
2.
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)
Use Google Cloud Shell in the Google Cloud Console to interact with Google Cloud.
b)
Create a Compute Engine instance and install gcloud on the instance. Connect to this instance via SSH to always use the same gcloud installation when interacting with Google Cloud.
c)
Install gcloud on all of your workstations. Run the command gcloud components auto-update on each workstation
d)
Use a package manager to install gcloud on your workstations instead of installing it manually.
3.
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)
Set up VPC peering and peer each Shared VPC together.
b)
Migrate the projects from the acquired company into your company's Google Cloud organization. Re-launch the instances in your companies Shared VPC.
c)
Set up a Cloud VPN gateway in each Shared VPC and peer Cloud VPNs.
d)
Configure SSH port forwarding on each application to provide connectivity between applications in the different Shared VPCs.
4.
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)
Inspect the logs and metrics from the instances in Cloud Logging and Cloud Monitoring.
b)
Change the Compute Engine Instances behind the application to a machine type with more CPU and memory.
c)
Restore a backup of the application database from a time before the application became slow.
d)
Deploy the applications on a managed instance group with autoscaling enabled. Add a load balancer in front of the managed instance group, and have the users connect to the IP of the load balancer.
5.
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)
Configure liveness and readiness probes in the Pod specification.
b)
Configure health checks on the managed instance group.
c)
Create a Scheduled Task to check whether the application is available.
d)
Configure an uptime alert in Cloud Monitoring.
6.
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)
Create a second GKE cluster for the batch workloads only. Allocate the 200 original nodes across both clusters.
b)
Configure a HorizontalPodAutoscaler for all stateless workloads and for all compatible stateful workloads. Configure the cluster to use node auto scaling.
c)
Configure CPU and memory limits on the namespaces in the cluster. Configure all Pods to have a CPU and memory limits.
d)
Change the node pool to use preemptible VMs.
7.
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)
1. In the BigQuery dataset that contains all the tables to be queried, add a label for each user that can launch a query. 2. Open the Billing page of the project. 3. Select Reports. 4. Select BigQuery as the product and filter by the user you want to check.
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.
c)
1. Create a Cloud Logging sink to export BigQuery data access logs to Cloud Storage. 2. Develop a Dataflow pipeline to compute the cost of queries split by users.
d)
1. Activate billing export into BigQuery. 2. Perform a BigQuery query on the billing table to extract the information you need.
8.
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)
Set up a network peering between vpc-a and vpc-b.
b)
Set up a VPN between vpc-a and vpc-b using Cloud VPN.
c)
Configure IAP TCP forwarding on the instance in vpc-b, and then launch the following gcloud command from one of the instances in vpc-a gcloud: gcloud compute start-iap-tunnel INSTANCE_NAME_IN_VPC_8 22 \ --local-host-port=localhost:22
d)
1. Create an additional instance in vpc-a. 2. Create an additional instance in vpc-b. 3. Install OpenVPN in newly created instances. 4. Configure a VPN tunnel between vpc-a and vpc-b with the help of OpenVPN.
9.
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)
Bucket Lock
b)
Object Versioning
c)
Object change notification
d)
Object Lifecycle Management
10.

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)
Change the Target type to DELTA_PER_MINUTE.
b)
Change the Metric identifier to agent.googleapis.com/memory/bytes_used.
c)
Change the filter to metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state = 'slab'.
d)
Change the filter to metric.label.state = 'free' and the Target utilization to 20.
11.

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)
An HA Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway
b)
Two Classic Cloud VPN gateways connected to two on-premises VPN gateways Configure each Classic Cloud VPN gateway to have two tunnels, each connected to different on-premises VPN gateways
c)
Two HA Cloud VPN gateways connected to two on-premises VPN gateways Configure each HA Cloud VPN gateway to have two tunnels, each connected to different on-premises VPN gateways
d)
A single Cloud VPN gateway connected to an on-premises VPN gateway
12.
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)
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.
b)
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. Assign the Cloud Storage WRITER role to users who upload files.
c)
1. Use the Cloud Storage Signed URL feature to generate a POST URL. 2. Use App Engine default credentials to sign requests against Cloud Storage.
d)
1. Assign the Cloud Storage WRITER role to users who upload files. 2. Use App Engine default credentials to sign requests against Cloud Storage.
13.

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)
Enable Private Google Access on sub-b.
b)
Configure Cloud NAT and select sub-b in the NAT mapping section.
c)
Configure a bastion host instance in sub-a to connect to instances in sub-b.
d)
Enable Identity-Aware Proxy for TCP forwarding for instances in sub-b.
14.
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)
1. Create an image of the on-premises virtual machines and upload into Cloud Storage. 2. Import the image as a virtual disk on Compute Engine.
b)
1. Create standard instances on Compute Engine. 2. Select as the OS the same Microsoft Windows version that is currently in use in the on-premises environment.
c)
1. Create an image of the on-premises virtual machine. 2. Import the image as a virtual disk on Compute Engine. 3. Create a standard instance on Compute Engine, selecting as the OS the same Microsoft Windows version that is currently in use in the on-premises environment. 4. Attach a data disk that includes data that matches the created image.
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.
15.

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:

• 99.99% system availability

• cost optimization

You need to design the connectivity between the locations to meet the business requirements. What should you provision?

a)
An HA Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway.
b)
A Classic Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway.
c)
Two HA Cloud VPN gateways connected to two on-premises VPN gateways. Configure each HA Cloud VPN gateway to have two tunnels, each connected to different on-premises VPN gateways.
d)
A Classic Cloud VPN gateway connected with one tunnel to an on-premises VPN gateway.
16.
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)
Develop a Dataflow job to read data directly from the database and write it into Cloud Storage.
b)
Use the Data Transfer appliance to perform an offline migration.
c)
Use a commercial partner ETL solution to extract the data from the on-premises database and upload it into Cloud Storage.
d)
Upload the data with gcloud storage cp.
17.
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)
Create a retention policy on the bucket for the duration of 5 years. Create a lock on the retention policy.
b)
Create a retention policy organizational constraint constraints/storage.retentionPolicySeconds at the organization level. Set the duration to 5 years.
c)
Use a customer-managed key for the encryption of the bucket. Rotate the key after 5 years.
d)
Create a retention policy organizational constraint constraints/storage.retentionPolicySeconds at the project level. Set the duration to 5 years.