Case Studies

Real-world scenario-based questions like EHR Healthcare & Mountkirk Games

1

Set 1

0 questions • ~25 min

Start Set 1

All Questions

0 questions • Flexible time

Start All

Quick Drill

15 questions • ~15 min

Quick Drill
Choose Different Domain

Sample GCP PCA questions with explanations

These six general GCP PCA questions come from the full practice bank; they are not filtered to the selected domain. Review the answers and explanations for cross-domain practice, then choose a focused set above.

Question 1 General

You are using Transfer Appliance to migrate data. You have received the appliance, copied data, and shipped it back. Where does the data end up?

  • ✓ A Cloud Storage Bucket you specified.
  • ○ Flexible Compute Engine Disk.
  • ○ Google Drive.
  • ○ A new Bucket created by Google.
Answer: A. A Cloud Storage Bucket you specified.
During the order/setup, you specify the destination Cloud Storage bucket (and path). Google uploads the data from the appliance to that bucket.
Question 2 General

You notice that a Dataflow job is running slowly. The pipeline has many stages, and you want to identify which stage is the bottleneck. What should you check?

  • ✓ View the Dataflow job graph in the Cloud Console to see per-stage processing time and throughput.
  • ○ Check Cloud Logging for Dataflow logs.
  • ○ Use Cloud Trace.
  • ○ Increase worker count without investigation.
Answer: A. View the Dataflow job graph in the Cloud Console to see per-stage processing time and throughput.
Dataflow provides a visual job graph showing each stage's processing time, throughput, data watermark, and system lag. This identifies bottlenecks. Logging (B) provides details but not visual performance analysis. Trace (C) is for distributed tracing, not pipeline stages. Blindly increasing workers (D) may not address the actual bottleneck.
Question 3 General

Your company wants to migrate a legacy monolithic application to Google Cloud. The application has tight coupling between components and uses file-based configuration. The migration timeline is 3 months. What migration strategy should you recommend?

  • ○ Refactor the application into microservices before migration.
  • ✓ Lift and shift to Compute Engine, then gradually refactor.
  • ○ Rewrite the entire application using Cloud Run.
  • ○ Migrate to App Engine Standard immediately.
Answer: B. Lift and shift to Compute Engine, then gradually refactor.
The lift-and-shift approach to Compute Engine allows you to meet the 3-month timeline by minimizing changes. You can then gradually refactor components into managed services or microservices. Complete refactoring would exceed the timeline significantly.
Question 4 General

You have a Terraform module that provisions a Cloud Storage bucket. You want to prevent accidental deletion of the bucket even if terraform destroy is run. What should you add to the resource?

  • ✓ Add lifecycle { prevent_destroy = true } to the bucket resource.
  • ○ Terraform cannot prevent resource deletion.
  • ○ Use Cloud Console deletion protection only.
  • ○ Manually backup everything before each terraform run.
Answer: A. Add lifecycle { prevent_destroy = true } to the bucket resource.
The prevent_destroy lifecycle meta-argument causes Terraform to refuse to destroy the resource, providing protection against accidental deletion.
Question 5 General Choose 2

Your data pipeline uses Dataflow jobs that run daily for 2 hours. Which TWO optimizations reduce costs?

  • ✓ Use Spot VMs (formerly Preemptible VMs) for Dataflow workers.
  • ✓ Right-size worker machine types based on job requirements.
  • ○ Run jobs continuously 24/7.
  • ○ Use the largest machine types available.
  • ○ Disable autoscaling.
Answer: A. Use Spot VMs (formerly Preemptible VMs) for Dataflow workers. | B. Right-size worker machine types based on job requirements.
Spot VMs (A) provide significant discounts for Dataflow batch jobs. Right-sizing workers (B) prevents over-provisioning. Continuous running (C) wastes resources. Largest machines (D) are expensive and often unnecessary. Autoscaling (E helps optimize costs, disabling it is counterproductive.
Question 6 General

Your Cloud Run service is consuming excessive memory and crashing. You need to identify which functions are allocating the most memory. What tool should you use?

  • ✓ Cloud Profiler to analyze memory allocation.
  • ○ Cloud Trace for memory tracking.
  • ○ Cloud Logging to read crash logs.
  • ○ Cloud Monitoring for memory metrics.
Answer: A. Cloud Profiler to analyze memory allocation.
Cloud Profiler provides continuous profiling of CPU and memory allocation in production applications, showing exactly which functions/methods consume resources. Cloud Trace is for latency, Cloud Logging shows logs but not allocation details, and Cloud Monitoring shows memory usage over time but not per-function allocation.

Open the full GCP PCA question-and-answer guide