πŸ”

PCA β€” questions

Page 9 of 17 Β· 337 total questions.

Topic 1 Β· Question 161

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?

  • ASearch for Create VM entry in the Stackdriver alerting console
  • BNavigate to the Activity page in the Home section. Set category to Data Access and search for Create VM entry
  • CIn the Logging section of the console, specify GCE Network as the logging section. Search for the Create Insert entry (correct answer)
  • DConnect to the GCE instance using project SSH keys. Identify previous logins in system logs, and match these with the project owners list
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: In the Logging section of the console, specify GCE Network as the logging section. Search for the Create Insert entry.

Topic 1 Β· Question 162

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?

  • AUse 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.
  • BCreate 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.
  • CCreate an image file from the root disk with Linux dd command, create a new virtual machine instance in the US-East region
  • DCreate 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. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 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.

Explanation

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

Topic 1 Β· Question 163

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?

  • AConfigure a cron job to use the gcloud tool to take regular backups using persistent disk snapshots. (correct answer)
  • BMount a Local SSD volume as the backup location. After the backup is complete, use gsutil to move the backup to Google Cloud Storage.
  • CUse gcsfise to mount a Google Cloud Storage bucket as a volume directly on the instance and write backups to the mounted location using mysqldump.
  • DMount 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
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure a cron job to use the gcloud tool to take regular backups using persistent disk snapshots.

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs.

Topic 1 Β· Question 164 Β· Select all that apply

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. Which three requirements should they include? (Choose three.)

  • AEnsure that the load tests validate the performance of Cloud Bigtable (correct answer)
  • BCreate a separate Google Cloud project to use for the load-testing environment (correct answer)
  • CSchedule the load-testing tool to regularly run against the production environment
  • DEnsure all third-party systems your services use is capable of handling high load
  • EInstrument the production services to record every transaction for replay by the load-testing tool
  • FInstrument the load-testing tool and the target services with detailed logging and metrics collection (correct answer)
Reveal answer & explanation
Correct answer: A, B, F

The correct answer is A, B, F. Option A: Ensure that the load tests validate the performance of Cloud Bigtable Option B: Create a separate Google Cloud project to use for the load-testing environment Option F: Instrument the load-testing tool and the target services with detailed logging and metrics collection

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Topic 1 Β· Question 165

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?

  • AOrg viewer, project owner
  • BOrg viewer, project viewer (correct answer)
  • COrg admin, project browser
  • DProject owner, network admin
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Org viewer, project viewer.

Topic 1 Β· Question 166 Β· Select all that apply

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.)

  • AEnsure every code check-in is peer reviewed by a security SME
  • BUse source code security analyzers as part of the CI/CD pipeline (correct answer)
  • CEnsure you have stubs to unit test all interfaces between components
  • DEnable code signing and a trusted binary repository integrated with your CI/CD pipeline
  • ERun a vulnerability security scanner as part of your continuous-integration /continuous-delivery (CI/CD) pipeline (correct answer)
Reveal answer & explanation
Correct answer: B, E

The correct answer is B, E. Option B: Use source code security analyzers as part of the CI/CD pipeline Option E: Run a vulnerability security scanner as part of your continuous-integration /continuous-delivery (CI/CD) pipeline.

Topic 1 Β· Question 167

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

  • AAdd additional nodes to your Kubernetes Engine cluster using the following command: gcloud container clusters resize CLUSTER_Name "" -size 10
  • BAdd a tag to the instances in the cluster with the following command: gcloud compute instances add-tags INSTANCE - -tags enable- autoscaling max-nodes-10
  • CUpdate the existing Kubernetes Engine cluster with the following command: gcloud alpha container clusters update mycluster - -enable- autoscaling - -min-nodes=1 - -max-nodes=10 (correct answer)
  • DCreate 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
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option 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

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized workloads.

Topic 1 Β· Question 168 Β· Select all that apply

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.)

  • AUse Google App Engine to serve the website and Google Cloud Datastore to store user data. (correct answer)
  • BUse a Google Container Engine cluster to serve the website and store data to persistent disk.
  • CUse a managed instance group to serve the website and Google Cloud Bigtable to store user data. (correct answer)
  • DUse a single Compute Engine virtual machine (VM) to host a web server, backend by Google Cloud SQL.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Use Google App Engine to serve the website and Google Cloud Datastore to store user data. Option C: Use a managed instance group to serve the website and Google Cloud Bigtable to store user data.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. A managed instance group provides autoscaling, autohealing, and rolling updates for VMs. Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Topic 1 Β· Question 169 Β· Select all that apply

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.)

  • ACompute Engine with containers
  • BGoogle Kubernetes Engine with containers (correct answer)
  • CGoogle App Engine Standard Environment (correct answer)
  • DCompute Engine with custom instance types
  • ECompute Engine with managed instance groups
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Google Kubernetes Engine with containers Option C: Google App Engine Standard Environment

Explanation

App Engine Standard runs code in a fully managed, autoscaling sandbox with minimal operations. App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. Google Kubernetes Engine runs managed Kubernetes for containerized workloads.

Topic 1 Β· Question 170

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?

  • AWrite the log concurrently in the cloud and on premises
  • BUse a SQL database and limit who can modify the log table
  • CDigitally sign each timestamp and log entry and store the signature (correct answer)
  • DCreate a JSON dump of each log entry and store it in Google Cloud Storage
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Digitally sign each timestamp and log entry and store the signature.

Topic 1 Β· Question 171

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?

  • A1. 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.
  • B1. 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.
  • C1. 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. (correct answer)
  • D1. 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option 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...

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 172

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?

  • A1. Mount the Cloud Storage bucket using gcsfuse on all backend Compute Engine instances. 2. Serve music files directly from the backend Compute Engine instance.
  • B1. Create a Cloud Filestore NFS volume and attach it to the backend Compute Engine instances. 2. Download popular songs in Cloud Filestore. 3. Serve music files directly from the backend Compute Engine instance.
  • C1. Copy popular songs into CloudSQL as a blob. 2. Update application code to retrieve data from CloudSQL when Cloud Storage is overloaded.
  • D1. 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. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option 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 buc...

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs. Compute Engine provides configurable virtual machines when you need full control of the OS. Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 173

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?

  • ASet up a filter in Cloud Logging and a Cloud Storage bucket as an export target for the logs you want to save. (correct answer)
  • BEnable the Compute Engine API, and then enable logging on the firewall rules that match the traffic you want to save.
  • CSet 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.
  • DSet up a filter in Cloud Logging and a topic in Pub/Sub to publish the logs.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Set up a filter in Cloud Logging and a Cloud Storage bucket as an export target for the logs you want to save.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Cloud Logging centralizes, stores, and analyzes logs across services.

Topic 1 Β· Question 174

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?

  • ACreate 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. (correct answer)
  • BCreate 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.
  • CAsk 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.
  • DAsk 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
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option 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.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 Β· Question 175

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?

  • ACreate an aggregated export on the Production folder. Set the log sink to be a Cloud Storage bucket in an operations project. (correct answer)
  • BCreate an aggregated export on the Organization resource. Set the log sink to be a Cloud Storage bucket in an operations project.
  • CCreate log exports in the production projects. Set the log sinks to be a Cloud Storage bucket in an operations project.
  • DCreate 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an aggregated export on the Production folder. Set the log sink to be a Cloud Storage bucket in an operations project.

Explanation

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

Topic 1 Β· Question 176

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?

  • A1. 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. (correct answer)
  • B1. Write a daily cron job, running on all instances, that uploads logs into a Cloud Storage bucket. 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.
  • C1. 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.
  • D1. 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option 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...

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Cloud Logging centralizes, stores, and analyzes logs across services.

Topic 1 Β· Question 177

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?

  • AConfigure an organization policy to restrict identities by domain. (correct answer)
  • BConfigure an organization policy to block creation of service accounts.
  • CConfigure 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.
  • DCreate a technical user (e.g., [email protected]), 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure an organization policy to restrict identities by domain.

Explanation

Organization Policy sets guardrails that constrain how resources can be configured across the org.

Topic 1 Β· Question 178

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?

  • AAdvise your clients to use HBase APIs instead of NodeJS APIs.
  • BDelete records older than 30 days.
  • CReview your RowKey strategy and ensure that keys are evenly spread across the alphabet. (correct answer)
  • DDouble the number of nodes you currently have.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Review your RowKey strategy and ensure that keys are evenly spread across the alphabet. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 179

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?

  • A1. 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.
  • B1. 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.
  • C1. 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. (correct answer)
  • D1. 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option 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...

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 180

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?

  • AUse the gsutil mv command to move the data.
  • BUse the Storage Transfer Service to move the data. (correct answer)
  • CDownload the data to a Transfer Appliance, and ship it to Google.
  • DDownload the data to the on-premises data center, and upload it to the Cloud Storage bucket.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the Storage Transfer Service to move the data.

Explanation

Storage Transfer Service moves large datasets into Cloud Storage online with minimal effort.

Showing questions 161–180 of 337 Β· Page 9 of 17