πŸ”

PCA β€” questions

Page 3 of 17 Β· 337 total questions.

Topic 1 Β· Question 41

Your customer support tool logs all email and chat conversations to Cloud Bigtable for retention and analysis. What is the recommended approach for sanitizing this data of personally identifiable information or payment card information before initial storage?

  • AHash all data using SHA256
  • BEncrypt all data using elliptic curve cryptography
  • CDe-identify the data with the Cloud Data Loss Prevention API (correct answer)
  • DUse regular expressions to find and redact phone numbers, email addresses, and credit card numbers
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: De-identify the data with the Cloud Data Loss Prevention API.

Topic 1 Β· Question 42

You are using Cloud Shell and need to install a custom utility for use in a few weeks. Where can you store the file so it is in the default execution path and persists across sessions?

  • A~/bin (correct answer)
  • BCloud Storage
  • C/google/scripts
  • D/usr/local/bin
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: ~/bin.

Topic 1 Β· Question 43

You want to create a private connection between your instances on Compute Engine and your on-premises data center. You require a connection of at least 20 Gbps. You want to follow Google-recommended practices. How should you set up the connection?

  • ACreate a VPC and connect it to your on-premises data center using Dedicated Interconnect. (correct answer)
  • BCreate a VPC and connect it to your on-premises data center using a single Cloud VPN.
  • CCreate a Cloud Content Delivery Network (Cloud CDN) and connect it to your on-premises data center using Dedicated Interconnect.
  • DCreate a Cloud Content Delivery Network (Cloud CDN) and connect it to your on-premises datacenter using a single Cloud VPN.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a VPC and connect it to your on-premises data center using Dedicated Interconnect.

Explanation

Dedicated Interconnect provides a private physical connection into Google's network. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 44

You are analyzing and defining business processes to support your startup's trial usage of GCP, and you don't yet know what consumer demand for your product will be. Your manager requires you to minimize GCP service costs and adhere to Google best practices. What should you do?

  • AUtilize free tier and sustained use discounts. Provision a staff position for service cost management.
  • BUtilize free tier and sustained use discounts. Provide training to the team about service cost management. (correct answer)
  • CUtilize free tier and committed use discounts. Provision a staff position for service cost management.
  • DUtilize free tier and committed use discounts. Provide training to the team about service cost management.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Utilize free tier and sustained use discounts. Provide training to the team about service cost management.

Topic 1 Β· Question 45

You are building a continuous deployment pipeline for a project stored in a Git source repository and want to ensure that code changes can be verified before deploying to production. What should you do?

  • AUse Spinnaker to deploy builds to production using the red/black deployment strategy so that changes can easily be rolled back.
  • BUse Spinnaker to deploy builds to production and run tests on production deployments.
  • CUse Jenkins to build the staging branches and the master branch. Build and deploy changes to production for 10% of users before doing a complete rollout.
  • DUse Jenkins to monitor tags in the repository. Deploy staging tags to a staging environment for testing. After testing, tag the repository for production and deploy that to the production environment. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Jenkins to monitor tags in the repository. Deploy staging tags to a staging environment for testing. After testing, tag the repository for production and deploy that to the production environment.

Topic 1 Β· Question 46

You have an outage in your Compute Engine managed instance group: all instances keep restarting after 5 seconds. You have a health check configured, but autoscaling is disabled. Your colleague, who is a Linux expert, offered to look into the issue. You need to make sure that he can access the VMs. What should you do?

  • AGrant your colleague the IAM role of project Viewer
  • BPerform a rolling restart on the instance group
  • CDisable the health check for the instance group. Add his SSH key to the project-wide SSH Keys (correct answer)
  • DDisable autoscaling for the instance group. Add his SSH key to the project-wide SSH Keys
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Disable the health check for the instance group. Add his SSH key to the project-wide SSH Keys.

Topic 1 Β· Question 47

Your company is migrating its on-premises data center into the cloud. As part of the migration, you want to integrate Google Kubernetes Engine (GKE) for workload orchestration. Parts of your architecture must also be PCI DSS-compliant. Which of the following is most accurate?

  • AApp Engine is the only compute platform on GCP that is certified for PCI DSS hosting.
  • BGKE cannot be used under PCI DSS because it is considered shared hosting.
  • CGKE and GCP provide the tools you need to build a PCI DSS-compliant environment. (correct answer)
  • DAll Google Cloud services are usable because Google Cloud Platform is certified PCI-compliant.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: GKE and GCP provide the tools you need to build a PCI DSS-compliant environment.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads.

Topic 1 Β· Question 48

Your company has multiple on-premises systems that serve as sources for reporting. The data has not been maintained well and has become degraded over time. You want to use Google-recommended practices to detect anomalies in your company data. What should you do?

  • AUpload your files into Cloud Storage. Use Cloud Datalab to explore and clean your data.
  • BUpload your files into Cloud Storage. Use Cloud Dataprep to explore and clean your data. (correct answer)
  • CConnect Cloud Datalab to your on-premises systems. Use Cloud Datalab to explore and clean your data.
  • DConnect Cloud Dataprep to your on-premises systems. Use Cloud Dataprep to explore and clean your data.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Upload your files into Cloud Storage. Use Cloud Dataprep to explore and clean your data.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Dataprep visually explores, cleans, and prepares data for analysis with no code.

Topic 1 Β· Question 49

Google Cloud Platform resources are managed hierarchically using organization, folders, and projects. When Cloud Identity and Access Management (IAM) policies exist at these different levels, what is the effective policy at a particular node of the hierarchy?

  • AThe effective policy is determined only by the policy set at the node
  • BThe effective policy is the policy set at the node and restricted by the policies of its ancestors
  • CThe effective policy is the union of the policy set at the node and policies inherited from its ancestors (correct answer)
  • DThe effective policy is the intersection of the policy set at the node and policies inherited from its ancestors
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The effective policy is the union of the policy set at the node and policies inherited from its ancestors.

Topic 1 Β· Question 50

You are migrating your on-premises solution to Google Cloud in several phases. You will use Cloud VPN to maintain a connection between your on-premises systems and Google Cloud until the migration is completed. You want to make sure all your on-premise systems remain reachable during this period. How should you organize your networking in Google Cloud?

  • AUse the same IP range on Google Cloud as you use on-premises
  • BUse the same IP range on Google Cloud as you use on-premises for your primary IP range and use a secondary range that does not overlap with the range you use on-premises
  • CUse an IP range on Google Cloud that does not overlap with the range you use on-premises (correct answer)
  • DUse an IP range on Google Cloud that does not overlap with the range you use on-premises for your primary IP range and use a secondary range with the same IP range as you use on-premises
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use an IP range on Google Cloud that does not overlap with the range you use on-premises.

Topic 1 Β· Question 51

You have found an error in your App Engine application caused by missing Cloud Datastore indexes. You have created a YAML file with the required indexes and want to deploy these new indexes to Cloud Datastore. What should you do?

  • APoint gcloud datastore create-indexes to your configuration file (correct answer)
  • BUpload the configuration file to App Engine's default Cloud Storage bucket, and have App Engine detect the new indexes
  • CIn the GCP Console, use Datastore Admin to delete the current indexes and upload the new configuration file
  • DCreate an HTTP request to the built-in python module to send the index configuration file to your application
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Point gcloud datastore create-indexes to your configuration file

Explanation

Datastore (Firestore in Datastore mode) is a serverless NoSQL database for user profiles and app state.

Topic 1 Β· Question 52

You have an application that will run on Compute Engine. You need to design an architecture that takes into account a disaster recovery plan that requires your application to fail over to another region in case of a regional outage. What should you do?

  • ADeploy the application on two Compute Engine instances in the same project but in a different region. Use the first instance to serve traffic, and use the HTTP load balancing service to fail over to the standby instance in case of a disaster.
  • BDeploy the application on a Compute Engine instance. Use the instance to serve traffic, and use the HTTP load balancing service to fail over to an instance on your premises in case of a disaster.
  • CDeploy the application on two Compute Engine instance groups, each in the same project but in a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to the standby instance group in case of a disaster. (correct answer)
  • DDeploy the application on two Compute Engine instance groups, each in a separate project and a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to the standby instance group in case of a disaster.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Deploy the application on two Compute Engine instance groups, each in the same project but in a different region. Use the first instance group to serve traffic, and use the HTTP load balancing service to fail over to...

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS. A load balancer distributes traffic across healthy backends in multiple zones for availability and scale. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 53

You are deploying an application on App Engine that needs to integrate with an on-premises database. For security purposes, your on-premises database must not be accessible through the public internet. What should you do?

  • ADeploy your application on App Engine standard environment and use App Engine firewall rules to limit access to the open on-premises database.
  • BDeploy your application on App Engine standard environment and use Cloud VPN to limit access to the on-premises database.
  • CDeploy your application on App Engine flexible environment and use App Engine firewall rules to limit access to the on-premises database.
  • DDeploy your application on App Engine flexible environment and use Cloud VPN to limit access to the on-premises database. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Deploy your application on App Engine flexible environment and use Cloud VPN to limit access to the on-premises database.

Explanation

App Engine Flexible runs containers on managed Compute Engine VMs for more control. App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. Cloud VPN provides encrypted IPsec connectivity between on premises and a VPC.

Topic 1 Β· Question 54

You are working in a highly secured environment where public Internet access from the Compute Engine VMs is not allowed. You do not yet have a VPN connection to access an on-premises file server. You need to install specific software on a Compute Engine instance. How should you install the software?

  • AUpload the required installation files to Cloud Storage. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gsutil. (correct answer)
  • BUpload the required installation files to Cloud Storage and use firewall rules to block all traffic except the IP address range for Cloud Storage. Download the files to the VM using gsutil.
  • CUpload the required installation files to Cloud Source Repositories. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gcloud.
  • DUpload the required installation files to Cloud Source Repositories and use firewall rules to block all traffic except the IP address range for Cloud Source Repositories. Download the files to the VM using gsutil.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Upload the required installation files to Cloud Storage. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using...

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Private Google Access lets internal instances reach Google APIs without external IPs.

Topic 1 Β· Question 55

Your company is moving 75 TB of data into Google Cloud. You want to use Cloud Storage and follow Google-recommended practices. What should you do?

  • AMove your data onto a Transfer Appliance. Use a Transfer Appliance Rehydrator to decrypt the data into Cloud Storage. (correct answer)
  • BMove your data onto a Transfer Appliance. Use Cloud Dataprep to decrypt the data into Cloud Storage.
  • CInstall gsutil on each server that contains data. Use resumable transfers to upload the data into Cloud Storage.
  • DInstall gsutil on each server containing data. Use streaming transfers to upload the data into Cloud Storage.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Move your data onto a Transfer Appliance. Use a Transfer Appliance Rehydrator to decrypt the data into Cloud Storage.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Transfer Appliance physically ships large datasets to Google Cloud when bandwidth is limited.

Topic 1 Β· Question 56

You have an application deployed on Google Kubernetes Engine using a Deployment named echo-deployment. The deployment is exposed using a Service called echo-service. You need to perform an update to the application with minimal downtime to the application. What should you do?

  • AUse kubectl set image deployment/echo-deployment (correct answer)
  • BUse the rolling update functionality of the Instance Group behind the Kubernetes cluster
  • CUpdate the deployment yaml file with the new container image. Use kubectl delete deployment/echo-deployment and kubectl create ""f
  • DUpdate the service yaml file which the new container image. Use kubectl delete service/echo-service and kubectl create ""f
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use kubectl set image deployment/echo-deployment.

Topic 1 Β· Question 57

Your company is using BigQuery as its enterprise data warehouse. Data is distributed over several Google Cloud projects. All queries on BigQuery need to be billed on a single project. You want to make sure that no query costs are incurred on the projects that contain the data. Users should be able to query the datasets, but not edit them. How should you configure users' access roles?

  • AAdd all users to a group. Grant the group the role of BigQuery user on the billing project and BigQuery dataViewer on the projects that contain the data.
  • BAdd all users to a group. Grant the group the roles of BigQuery dataViewer on the billing project and BigQuery user on the projects that contain the data.
  • CAdd all users to a group. Grant the group the roles of BigQuery jobUser on the billing project and BigQuery dataViewer on the projects that contain the data. (correct answer)
  • DAdd all users to a group. Grant the group the roles of BigQuery dataViewer on the billing project and BigQuery jobUser on the projects that contain the data.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Add all users to a group. Grant the group the roles of BigQuery jobUser on the billing project and BigQuery dataViewer on the projects that contain the data.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 58

You have developed an application using Cloud ML Engine that recognizes famous paintings from uploaded images. You want to test the application and allow specific people to upload images for the next 24 hours. Not all users have a Google Account. How should you have users upload images?

  • AHave users upload the images to Cloud Storage. Protect the bucket with a password that expires after 24 hours.
  • BHave users upload the images to Cloud Storage using a signed URL that expires after 24 hours. (correct answer)
  • CCreate an App Engine web application where users can upload images. Configure App Engine to disable the application after 24 hours. Authenticate users via Cloud Identity.
  • DCreate an App Engine web application where users can upload images for the next 24 hours. Authenticate users via Cloud Identity.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Have users upload the images to Cloud Storage using a signed URL that expires after 24 hours.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 59

Your web application must comply with the requirements of the European Union's General Data Protection Regulation (GDPR). You are responsible for the technical architecture of your web application. What should you do?

  • AEnsure that your web application only uses native features and services of Google Cloud Platform, because Google already has various certifications and provides "pass-on" compliance when you use native features.
  • BEnable the relevant GDPR compliance setting within the GCPConsole for each of the services in use within your application.
  • CEnsure that Cloud Security Scanner is part of your test planning strategy in order to pick up any compliance gaps.
  • DDefine a design for the security of data in your web application that meets GDPR requirements. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Define a design for the security of data in your web application that meets GDPR requirements.

Topic 1 Β· Question 60

You need to set up Microsoft SQL Server on GCP. Management requires that there's no downtime in case of a data center outage in any of the zones within a GCP region. What should you do?

  • AConfigure a Cloud SQL instance with high availability enabled. (correct answer)
  • BConfigure a Cloud Spanner instance with a regional instance configuration.
  • CSet up SQL Server on Compute Engine, using Always On Availability Groups using Windows Failover Clustering. Place nodes in different subnets.
  • DSet up SQL Server Always On Availability Groups using Windows Failover Clustering. Place nodes in different zones.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure a Cloud SQL instance with high availability enabled.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Showing questions 41–60 of 337 Β· Page 3 of 17