Font size
WorksheetsPCA-5
Total questions: 50
Worksheet time: 3hrs 40mins
Your company has a support ticketing solution that uses App Engine Standard. The project that contains the App Engine application already has a Virtual Private Cloud (VPC) network fully connected to the company's on-premises environment through a Cloud VPN tunnel. You want to enable the App Engine application to communicate with a database that is running in the company's on-premises environment. What should you do?
Configure private Google access for on-premises hosts only.
Configure private Google access.
Configure private services access.
Configure serverless VPC access.
Your company is planning to upload several important files to Cloud Storage. After the upload is completed, they want to verify that the uploaded content is identical to what they have on-premises. You want to minimize the cost and effort of performing this check. What should you do?
A. 1. Use Linux shasum to compute a digest of files you want to upload.
2. Use gsutil -m to upload all the files to Cloud Storage.
3. Use gsutil cp to download the uploaded files.
4. Use Linux shasum to compute a digest of the downloaded files.
5. Compare the hashes.
1. Use gsutil -m to upload the files to Cloud Storage.
2. Develop a custom Java application that computes CRC32C hashes.
3. Use gsutil ls -L gs://[YOUR_BUCKET_NAME] to collect CRC32C hashes of the uploaded files.
4. Compare the hashes.
1. Use gsutil -m to upload all the files to Cloud Storage.
2. Use gsutil cp to download the uploaded files.
3. Use Linux diff to compare the content of the files.
1. Use gsutil -m to upload the files to Cloud Storage.
2. Use gsutil hash -c FILE_NAME to generate CRC32C hashes of all on-premises files.
3. Use gsutil ls -L gs://[YOUR_BUCKET_NAME] to collect CRC32C hashes of the uploaded files.
4. Compare the hashes.
You have deployed an application on Anthos clusters (formerly Anthos GKE). According to the SRE practices at your company, you need to be alerted if request latency is above a certain threshold for a specified amount of time. What should you do?
Install Anthos Service Mesh on your cluster. Use the Google Cloud Console to define a Service Level Objective (SLO), and create an alerting policy based on this SLO.
Enable the Cloud Trace API on your project, and use Cloud Monitoring Alerts to send an alert based on the Cloud Trace metrics.
Use Cloud Profiler to follow up the request latency. Create a custom metric in Cloud Monitoring based on the results of Cloud Profiler, and create an Alerting policy in case this metric exceeds the threshold.
Configure Anthos Config Management on your cluster, and create a yaml file that defines the SLO and alerting policy you want to deploy in your cluster.
Your company has a stateless web API that performs scientific calculations. The web API runs on a single Google Kubernetes Engine (GKE) cluster. The cluster is currently deployed in us-central1. Your company has expanded to offer your API to customers in Asia. You want to reduce the latency for users in Asia. What should you do?
Create a second GKE cluster in asia-southeast1, and expose both APIs using a Service of type LoadBalancer. Add the public IPs to the Cloud DNS zone.
Use a global HTTP(s) load balancer with Cloud CDN enabled.
Create a second GKE cluster in asia-southeast1, and use kubemci to create a global HTTP(s) load balancer.
Increase the memory and CPU allocated to the application in the cluster.
You are migrating third-party applications from optimized on-premises virtual machines to Google Cloud. You are unsure about the optimum CPU and memory options. The applications have a consistent usage pattern across multiple weeks. You want to optimize resource usage for the lowest cost. What should you do?
Create an instance template with the smallest available machine type, and use an image of the third-party application taken from a current on-premises virtual machine. Create a managed instance group that uses average CPU utilization to autoscale the number of instances in the group. Modify the average CPU utilization threshold to optimize the number of instances running.
Create an App Engine flexible environment, and deploy the third-party application using a Dockerfile and a custom runtime. Set CPU and memory options similar to your application's current onpremises virtual machine in the app.yaml file
Create multiple Compute Engine instances with varying CPU and memory options. Install the Cloud Monitoring agent, and deploy the third-party application on each of them. Run a load test with high traffic levels on the application, and use the results to determine the optimal settings.
Create a Compute Engine instance with CPU and memory options similar to your application's current on-premises virtual machine. Install the Cloud Monitoring agent, and deploy the third-party application. Run a load test with normal traffic levels on the application, and follow the Rightsizing Recommendations in the Cloud Console.
Your company has a Google Cloud project that uses BigQuery for data warehousing. They have a VPN tunnel between the on-premises environment and Google Cloud that is configured with Cloud VPN.
The security team wants to avoid data exfiltration by malicious insiders, compromised code, and accidental oversharing. What should they do?
Configure Private Google Access for on-premises only.
Perform the following tasks:
1. Create a service account.
2. Give the BigQuery JobUser role and Storage Reader role to the service account.
3. Remove all other IAM access from the project.
Configure VPC Service Controls and configure Private Google Access.
Configure Private Google Access.
You are working at an institution that processes medical data. You are migrating several workloads onto Google Cloud. Company policies require all workloads to run on physically separated hardware, and workloads from different clients must also be separated. You created a sole-tenant node group and added a node for each client. You need to deploy the workloads on these dedicated hosts. What should you do?
Add the node group name as a network tag when creating Compute Engine instances in order to host each workload on the correct node group
Add the node name as a network tag when creating Compute Engine instances in order to host each workload on the correct node.
Use node affinity labels based on the node group name when creating Compute Engine instances in order to host each workload on the correct node group.
Use node affinity labels based on the node name when creating Compute Engine instances in order to host each workload on the correct node.
Your company’s test suite is a custom C++ application that runs tests throughout each day on Linux virtual machines. The full test suite takes several hours to complete, running on a limited number of onpremises servers reserved for testing. Your company wants to move the testing infrastructure to the cloud, to reduce the amount of time it takes to fully test a change to the system, while changing the tests as little as possible.
Which cloud infrastructure should you recommend?
Google Compute Engine unmanaged instance groups and Network Load Balancer
Google Compute Engine managed instance groups with auto-scaling
Google Cloud Dataproc to run Apache Hadoop jobs to process each test
Google App Engine with Google StackDriver for logging
A lead software engineer tells you that his new application design uses websockets and HTTP sessions that are not distributed across the web servers. You want to help him ensure his application will run properly on Google Cloud Platform.
What should you do?
Help the engineer to convert his websocket code to use HTTP streaming
Review the encryption requirements for websocket connections with the security team
Meet with the cloud operations team and the engineer to discuss load balancer options
Help the engineer redesign the application to use a distributed user session service that does not rely on websockets and HTTP sessions.
The application reliability team at your company is added a debug feature to their backend service to send all server events to Google Cloud Storage for eventual analysis. The event records are at least 50 KB and at most 15 MB and are expected to peak at 3,000 events per second. You want to minimize data loss.
Which process should you implement?
• Append metadata to file body
• Compress individual files
• Name files with serverName – Timestamp
• Create a new bucket if bucket is older than 1 hour and save individual files to the new bucket. Otherwise, save files to
existing bucket.
• Batch every 10,000 events with a single manifest file for metadata
• Compress event files and manifest file into a single archive file
• Name files using serverName – EventSequence
• Create a new bucket if bucket is older than 1 day and save the single archive file to the new bucket. Otherwise, save the single archive file to existing bucket.
• Compress individual files
• Name files with serverName – EventSequence
• Save files to one bucket
• Set custom metadata headers for each object after saving
Append metadata to file body Compress individual files
Name files with a random prefix pattern Save files to one bucket
A recent audit revealed that a new network was created in your GCP project. In this network, a GCE instance has an SSH port open to the world. You want to discover this network’s origin.
What should you do?
Search for Create VM entry in the Stackdriver alerting console
Navigate to the Activity page in the Home section. Set category to Data Access and search for Create VM entry
In the Logging section of the console, specify GCE Network as the logging section. Search for the Create Insert entry
Connect to the GCE instance using project SSH keys. Identify previous logins in system logs, and match these with the project owners list
You want to make a copy of a production Linux virtual machine in the US-Central region. You want to manage and replace the copy easily if there are changes on the production virtual machine. You will deploy the copy as a new instance in a different project in the US-East region.
What steps must you take?
Use the Linux dd and netcat commands to copy and stream the root disk contents to a new virtual machine instance in the US-East region.
Create a snapshot of the root disk and select the snapshot as the root disk when you create a new virtual machine instance in the US-East region.
Create an image file from the root disk with Linux dd command, create a new virtual machine instance in the US-East region
Create a snapshot of the root disk, create an image file in Google Cloud Storage from the snapshot, and create a new virtual machine instance in the US-East region using the image file the root disk.
Your company runs several databases on a single MySQL instance. They need to take backups of a specific database at regular intervals. The backup activity needs to complete as quickly as possible and cannot be allowed to impact disk performance.
How should you configure the storage?
Configure a cron job to use the gcloud tool to take regular backups using persistent disk snapshots.
Mount a Local SSD volume as the backup location. After the backup is complete, use gsutil to move the backup to Google Cloud Storage.
Use gcsfuse to mount a Google Cloud Storage bucket as a volume directly on the instance and write backups to the mounted location using mysqldump.
Mount additional persistent disk volumes onto each virtual machine (VM) instance in a RAID10 array and use LVM to create snapshots to send to Cloud Storage
You are helping the QA team to roll out a new load-testing tool to test the scalability of your primary cloud services that run on Google Compute Engine with Cloud Bigtable.
Whichthreerequirementsshouldtheyinclude?(Choosethree.)
Ensure that the load tests validate the performance of Cloud Bigtable
Create a separate Google Cloud project to use for the load-testing environment
Schedule the load-testing tool to regularly run against the production environment
Instrument the production services to record every transaction for replay by the load-testing tool
Instrument the load-testing tool and the target services with detailed logging and metrics collection
Your customer is moving their corporate applications to Google Cloud Platform. The security team wants detailed visibility of all projects in the organization. You provision the Google Cloud Resource Manager and set up yourself as the org admin.
What Google Cloud Identity and Access Management (Cloud IAM) roles should you give to the security team?
Org viewer, project owner
Org viewer, project viewer
Org admin, project browser
Project owner, network admin
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.)
Ensure every code check-in is peer reviewed by a security SME
Use source code security analyzers as part of the CI/CD pipeline
Ensure you have stubs to unit test all interfaces between components
. Enable code signing and a trusted binary repository integrated with your CI/CD pipeline
Run a vulnerability security scanner as part of your continuous-integration /continuous-delivery (CI/CD) pipeline
You want to enable your running Google Kubernetes Engine cluster to scale as demand for your application changes. What should you do?
A. Add additional nodes to your Kubernetes Engine cluster using the following command: gcloud container clusters resize CLUSTER_Name – -size 10
Add a tag to the instances in the cluster with the following command: gcloud compute instances add-tags INSTANCE - - tags enableautoscaling max-nodes-10
Update the existing Kubernetes Engine cluster with the following command: gcloud alpha container clusters update mycluster - -enable-autoscaling - -min-nodes=1 - -max-nodes=10
Create a new Kubernetes Engine cluster with the following command: gcloud alpha container clusters create mycluster - -enable-
autoscaling - -min-nodes=1 - -max-nodes=10 and redeploy your application
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.)
Use Google App Engine to serve the website and Google Cloud Datastore to store user data.
Use a Google Container Engine cluster to serve the website and store data to persistent disk.
Use a managed instance group to serve the website and Google Cloud Bigtable to store user data.
Use a single Compute Engine virtual machine (VM) to host a web server, backend by Google Cloud SQL.
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.)
Compute Engine with containers
Google Kubernetes Engine with containers
Google App Engine Standard Environment
Compute Engine with custom instance types
Compute Engine with managed instance groups
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?
Write the log concurrently in the cloud and on premises
Use a SQL database and limit who can modify the log table
Digitally sign each timestamp and log entry and store the signature
Create a JSON dump of each log entry and store it in Google Cloud Storage
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. 1. Create a second Google Workspace account and Organization.
2. Grant all developers the Project Creator IAM role on the new Organization.
3. Move the developer projects into the new Organization.
4. Set the policies for all projects on both Organizations.
5. Additionally, set the production policies on the original Organization.
1. Create a folder under the Organization resource named “Production.” 2. Grant all developers the Project Creator IAM role on the new Organization.
3. Move the developer projects into the new Organization.
4. Set the policies for all projects on the Organization.
5. Additionally, set the production policies on the “Production” folder.
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.
1. Designate the Organization for production projects only.
2. Ensure that developers do not have the Project Creator IAM role on the Organization.
3. Create development projects outside of the Organization using the developer Google Workspace accounts.
4. Set the policies for all projects on the Organization.
5. Additionally, set the production policies on the individual production projects.
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?
1. Mount the Cloud Storage bucket using gcsfuse on all backend Compute Engine instances.
2. Serve music files directly from the backend Compute Engine instance.
1. Create a Cloud Filestore NFS volume and attach it to the backend Compute Engine instances.
2. Download popular songs in Cloud Filestore.
ServemusicfilesdirectlyfromthebackendComputeEngineinstance
1. Copy popular songs into CloudSQL as a blob.
2. Update application code to retrieve data from CloudSQL when Cloud Storage is overloaded
1. Create a managed instance group with Compute Engine instances.
2. Create a global load balancer and configure it with two backends:
a) Managed instance group
b) Cloud Storage bucket
3. Enable Cloud CDN on the bucket backend.
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?
Set up a filter in Cloud Logging and a Cloud Storage bucket as an export target for the logs you want to save.
Enable the Compute Engine API, and then enable logging on the firewall rules that match the traffic you want to save.
Set up a Cloud Logging Dashboard titled Cloud VPN Logs, and then add a chart that queries for the VPN metrics over a one-year time period.
Set up a filter in Cloud Logging and a topic in Pub/Sub to publish the logs.
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?
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.
Create a Dataflow pipeline to retrieve the data from the external sources. As part of the pipeline, store all non-PII data in BigQuery and store all PII data in a Cloud Storage bucket that has a retention policy set.
Ask the external partners to upload all data on Cloud Storage. Configure Bucket Lock for the bucket. Create a Dataflow pipeline to read the data from the bucket. As part of the pipeline, use the Cloud Data Loss Prevention (Cloud DLP) API to remove any PII data. Store the result in BigQuery.
Ask the external partners to import all data in your BigQuery dataset. Create a dataflow pipeline to copy the data into a new table. As part of the Dataflow bucket, skip all data in columns that have PII data
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?
Create an aggregated export on the Production folder. Set the log sink to be a Cloud Storage bucket in an operations project.
Create an aggregated export on the Organization resource. Set the log sink to be a Cloud Storage bucket in an operations project.
Create log exports in the production projects. Set the log sinks to be a Cloud Storage bucket in an operations project.
Create log exports in the production projects. Set the log sinks to be BigQuery datasets in the production projects, and grant IAM access to the operations team to run queries on the datasets.
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?
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.
B.
A. 1. Install a Cloud Logging agent on all instances.
2. Create a sink to export logs into a regional Cloud Storage bucket.
1.Write a daily cronjob,running on all instances,that uploads logs into a CloudStoragebucket.
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.
B. 1. Install a Cloud Logging agent on all instances.
2. Create a sink to export logs into a partitioned BigQuery table.
3. Set a time_partitioning_expiration of 30 days.
B. 1. Create a daily cron job, running on all instances, that uploads logs into a partitioned BigQuery table.
2. Set a time_partitioning_expiration of 30 days.
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?
Configure an organization policy to restrict identities by domain.
Configure an organization policy to block creation of service accounts.
Configure Cloud Scheduler to trigger a Cloud Function every hour that removes all users that don’t belong to the Cloud Identity domain from all projects.
B. Create a technical user (e.g., crawler@yourdomain.com), and give it the project owner role at root organization level. Write a bash script that:
• Lists all the IAM rules of all projects within the organization.
• Deletes all users that do not belong to the company domain.
Create a Compute Engine instance in a project within the Organization and configure gcloud to be executed with technical user credentials. Configure a cron job that executes the bash script every hour.
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?
Advise your clients to use HBase APIs instead of NodeJS APIs.
Delete records older than 30 days.
Review your RowKey strategy and ensure that keys are evenly spread across the alphabet.
Double the number of nodes you currently have.
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?
1. From the dataset where you have the source data, create views of tables that you want to share, excluding PII.
2. Assign an appropriate project-level IAM role to the members of the data science team.
3. Assign access controls to the dataset that contains the view.
1. From the dataset where you have the source data, create materialized views of tables that you want to share, excluding PII.
2. Assign an appropriate project-level IAM role to the members of the data science team.
3. Assign access controls to the dataset that contains the view.
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.
1. Create a dataset for the data science team.
2. Create materialized 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.
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 Googlerecommended practices. They want to minimize the cost of this data migration. Which approach should they use?
Use the gsutil mv command to move the data.
Use the Storage Transfer Service to move the data.
Download the data to a Transfer Appliance, and ship it to Google.
Download the data to the on-premises data center, and upload it to the Cloud Storage bucket.
In order to respond to the load on your application, you have a managed instance group for Compute Engine that will add and remove Instances from it. The instances have a shutdown script that removes REDIS database entries associated with the instance. You're seeing that a lot of database entries are missing, 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?
Modify the shutdown script to wait for 30 seconds before triggering the Cloud Function.
Do not use the Cloud Function. Modify the shutdown script to restart if it has not completed in 30 second
Set up a Cloud Monitoring sink that triggers the Cloud Function after an instance removal log message arrives in Cloud Logging.
Modify the shutdown script to wait for 30 seconds and then publish a message to a Pub/Sub queue.
You're managing a number of projects in Google Cloud, which requires you to use the gcloud CL tool every day for BigQuery, Bigtable and Kubernetes Engine. During the week, you're traveling a lot and working on different desks. You're avoiding the need to manually manage gcloud CLI. What should you be doing?
Use Google Cloud Shell in the Google Cloud Console to interact with Google Cloud.
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.
Install gcloud on all of your workstations. Run the command gcloud components auto-update on each workstation
Use a package manager to install gcloud on your workstations instead of installing it manually.
A company with Google Cloud infrastructure has just been acquired by your company. There is a Google Cloud organization for every company. Each The company provides network connectivity to its applications through a shared virtual cloud, which is known as the VPC. Some of the subnets that are used by both companies overlap. The applications need to have a private network connection in order for the two companies to integrate. These applications are
not on overlapping subnets. You want to provide connectivity with minimal re-engineering. What should you do?
Set up VPC peering and peer each Shared VPC together.
Migrate the projects from the acquired company into your company's Google Cloud organization. Re-launch the instances in your
companies Shared VPC.
Set up a Cloud VPN gateway in each Shared VPC and peer Cloud VPNs.
Configure SSH port forwarding on each application to provide connectivity between applications in the different Shared VPCs.
You're managing some of the internal applications that are running on Compute Engine. Business users are reporting that the application is getting very slow in recent days. In order to resolve this problem, you need to find the root cause of it. What are you supposed to do?
Inspect the logs and metrics from the instances in Cloud Logging and Cloud Monitoring.
Change the Compute Engine Instances behind the application to a machine type with more CPU and memory.
Restore a backup of the application database from a time before the application became slow.
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.
Your company has an application running as a Deployment in a Google Kubernetes Engine (GKE) cluster. The team caused the outage when they released new versions of the application through a continuous deployment. Misconfiguration of parameters that are only used in production is the main cause for interruptions. In order to avoid blackouts, you want to put preventive measures in place on the platform. What are you supposed to do?
Configure liveness and readiness probes in the Pod specification.
Configure health checks on the managed instance group.
Create a Scheduled Task to check whether the application is available.
Configure an uptime alert in Cloud Monitoring.
Your company uses Google Kubernetes Engine (GKE) as a platform for all workloads. There is a single large GKE cluster in your company that contains batch, stateful, and stateless workloads. A single node pool with 200 nodes is configured for the GKE cluster. The cost of this cluster needs to be reduced by your company, but you do not want to compromise its availability. What are you supposed to do?
Create a second GKE cluster for the batch workloads only. Allocate the 200 original nodes across both clusters.
Configure CPU and memory limits on the namespaces in the cluster. Configure all Pods to have a CPU and memory limits.
Configure a HorizontalPodAutoscaler for all stateless workloads and for all compatible stateful workloads. Configure the cluster to use
node auto scaling.
Change the node pool to use preemptible VMs.
Your company has a Google Cloud project that uses BigQuery for data warehousing on a pay-per-use basis. To find the most expensive queries and users who spend the most, you want to track them in real time. What are you supposed to do?
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.
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.
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.
1. Activate billing export into BigQuery. 2. Perform a BigQuery query on the billing table to extract the information you need.
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 vPCa instances and one vPCb instance. There are no overlaps between the networks defined in both VPCs. In order to minimise latency and maximise the speed, it is essential that all instances are communicating with each other via an Internal IP. What are you supposed to do?
Set up a network peering between vpc-a and vpc-b.
Set up a VPN between vpc-a and vpc-b using Cloud VPN.
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
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.
In the Cloud Storage buckets, you want to store critical business information. The information is periodically updated, but previous versions have to be repeated in a periodic manner. You'd like to make sure that all changes to the information in these buckets are recorded. You'd like to make it easy to undo accidental changes or deletions. What kind of feature do you want to allow?
Bucket Lock
Object Versioning
Object change notification
Object Lifecycle Management
You've got a compute engine application that you want to scale if the overall memory usage is more than 80%. You're installing 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?
Change the Target type to DELTA_PER_MINUTE.
Change the Metric identifier to agent.googleapis.com/memory/bytes_used.
Change the filter to metric.label.state = 'used' AND metric.label.state = 'buffered' AND metric.label.state = 'cached' AND metric.label.state =
'slab'.
Change the filter to metric.label.state = 'free' and the Target utilization to 20.
You've deployed an application to Google Cloud. The application's part of a system. Applications in Google Cloud must be communicating via a private network with applications that are not hosted by Google Cloud. An average speed of 200 kbps is expected. 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?
An HA Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway
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
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
A single Cloud VPN gateway connected to an on-premises VPN gateway
An application that allows users to upload music files and share them with others is running in your company on the App Engine. You'd like users to be able to upload files directly from their browser session into Cloud Storage. The cargo should not be carried over to the rear end. What should you be doing?
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.
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.
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.
1. Assign the Cloud Storage WRITER role to users who upload files.
2. Use App Engine default credentials to sign requests against Cloud Storage.
You are configuring Google Cloud's network architecture for a newly created project that is hosting applications in Engine Compute. 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. Only personal IP addresses will be available for Instances in Section B. 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?
Enable Private Google Access on sub-b.
Configure Cloud NAT and select sub-b in the NAT mapping section.
Configure a bastion host instance in sub-a to connect to instances in sub-b.
Enable Identity-Aware Proxy for TCP forwarding for instances in sub-b.
Your firm plans to move Windows Server 2022 from their data center on premises to the Google Cloud. You need to bring the
licenses that are currently in use in on-premises virtual machines into the target cloud environment. What are you supposed to do?
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.
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.
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 onpremises environment.
4. Attach a data disk that includes data that matches the created image.
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.
You've deployed an application to Google Cloud. The application belongs to the system. Applications must be able to communicate with applications in an unGoogle Cloud environment through a separate network. An average speed of 200 kbps is expected. The business requires: • 99.99% availability of the system; cost optimization. You need to design the connectivity between the locations to meet the business requirements. What should you provision?
An HA Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway.
A Classic Cloud VPN gateway connected with two tunnels to an on-premises VPN gateway.
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.
A Classic Cloud VPN gateway connected with one tunnel to an on-premises VPN gateway.
Your company is trying to migrate its 10 TB of database export into cloud storage on your premises. The time needed to complete this activity and its overall costs should be reduced. There is 1 Gbps of bandwidth to Google Cloud from the on premises environment. You're going to be following Google recommended practices. What are you supposed to do?
Develop a Dataflow job to read data directly from the database and write it into Cloud Storage.
Use the Data Transfer appliance to perform an offline migration.
Use a commercial partner ETL solution to extract the data from the on-premises database and upload it into Cloud Storage.
Upload the data with gcloud storage cp.
The JencoMart security team requires that all Google Cloud Platform infrastructure use the least privilege model with a separation of responsibilities for governance among production and development resources. What are your recommendations for the structure of Google's domains and projects?
Create two G Suite accounts to manage users: one for development/test/staging and one for production. Each account should contain one
project for every application
Create two G Suite accounts to manage users: one with a single project for all development applications and one with a single project for
all production applications
Create a single G Suite account to manage users with each stage of each application in its own project
Create a single G Suite account to manage users with one project for the development/test/staging environment and one project for the
production environment
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.)
Delete the virtual machine (VM) and disks and create a new one
Delete the instance, attach the disk to a new VM, and investigate
Take a snapshot of the disk and connect to a new machine to investigate
Check inbound firewall rules for the network the machine is connected to
Connect the machine to another network with very simple firewall rules and investigate
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?
Provision service account keys for the on-premises infrastructure and for the GCE virtual machines (VMs)
Authenticate the on-premises infrastructure with a user account and provision service account keys for the VMs
Provision service account keys for the on-premises infrastructure and use Google Cloud Platform (GCP) managed keys for the VM
Deploy a custom authentication service on GCE/Google Kubernetes Engine (GKE) for the on-premises infrastructure and use GCP managed
keys for the VMs
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?
Error rates for requests from Asia
Latency difference between US and Asia
Total visits, error rates, and latency from Asi
Total visits and average latency for users from Asia
The number of character sets present in the database
