Cost Optimization
Billing, cost management, and resource optimization
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.
You're optimizing a Dataflow pipeline that processes 1TB of data daily. Which TWO approaches can improve performance?
- ✓ Adjust worker machine types and number of workers for parallelization.
- ✓ Use efficient data formats (Avro, Parquet) instead of JSON/CSV.
- ○ Process data sequentially on one worker.
- ○ Increase shuffle file size.
- ○ Disable autoscaling.
You want to set up an uptime check that monitors your API endpoint from multiple global locations and alerts if the endpoint is down. What should you configure?
- ✓ Cloud Monitoring Uptime Checks with multiple regions selected.
- ○ Cron job pinging the endpoint.
- ○ Cloud Scheduler calling the API.
- ○ Manual checks from different locations.
You need to provision 50 identical web servers across three zones in us-central1 with automatic scaling based on CPU utilization and automatic replacement of failed instances. What resource should you create?
- ✓ Managed Instance Group (MIG) with autoscaling and health checks.
- ○ 50 individual Compute Engine instances with startup scripts.
- ○ Unmanaged Instance Group with manual scaling.
- ○ GKE cluster with 50 pods.
Mountkirk Games receives a court order to hold all logs related to a specific player's IP address for potential litigation. The logs are in Cloud Logging. You need to ensure these logs are not deleted by the standard retention policy. What feature should you use?
- ✓ Create a Log Sink to a locked Bucket.
- ○ Apply a Tag to the logs.
- ○ There is no way to hold logs in Cloud Logging.
- ○ Export to BigQuery.
EHR Healthcare's CI/CD pipeline deploys to Cloud Run. You want to ensure that 10% of traffic goes to the new revision 'v2' while 90% stays on 'v1' to monitor for errors before a full rollout. How do you achieve this?
- ○ Use Cloud Deploy to manage the rollout with a canary strategy.
- ○ Manually edit the Traffic settings in Cloud Run console to split 90/10.
- ○ Use Istio VirtualService.
- ✓ Both A and B are valid approaches.
Your organization wants to prevent any project from creating a default VPC network. This must be enforced across the entire organization to prevent accidental non-compliant networks. What should you do?
- ✓ Use an Organization Policy with the constraint `compute.skipDefaultNetworkCreation` set to Enforce.
- ○ Use a Hierarchical Firewall Policy to block all traffic on default networks.
- ○ Use VPC Service Controls to block access to the Compute API.
- ○ Use a Custom IAM Role that denies the `compute.networks.create` permission.