GCP GCP-PCA Free Practice Questions — Page 1

Professional Cloud Architect • 5 questions • Answers & explanations included

Question 1

Your company has decided to make a major revision of their API in order to create better experiences for their developers. They need to keep the old version of the API available and deployable, while allowing new customers and testers to try out the new API. They want to keep the same SSL and DNS records in place to serve both APIs. What should they do?

A. Configure a new load balancer for the new version of the API
B. Reconfigure old clients to use a new endpoint for the new API
C. Have the old API forward traffic to the new API based on the path
D. Use separate backend pools for each API path behind the load balancer
Show Answer & Explanation

Correct Answer: D. Use separate backend pools for each API path behind the load balancer

Using separate backend pools for each API version behind a single load balancer is the correct approach. Google Cloud HTTP(S) Load Balancer supports URL map rules that route traffic to different backend services based on the request path (e.g., /v1/* → backend-v1, /v2/* → backend-v2). This keeps the same SSL certificate and DNS records intact, satisfying that requirement. Option A is wrong because adding a new load balancer would require new DNS/SSL configuration. Option B forces old clients to change, which contradicts keeping the old API available transparently. Option C adds unnecessary complexity and coupling between API versions — the old API shouldn't need to know about the new one. Option D cleanly separates concerns at the infrastructure level without touching application code.

Question 2

Your company plans to migrate a multi-petabyte data set to the cloud. The data set must be available 24hrs a day. Your business analysts have experience only with using a SQL interface. How should you store the data to optimize it for ease of analysis?

A. Load data into Google BigQuery
B. Insert data into Google Cloud SQL
C. Put flat files into Google Cloud Storage
D. Stream data into Google Cloud Datastore
Show Answer & Explanation

Correct Answer: A. Load data into Google BigQuery

BigQuery is Google Cloud's fully managed, serverless data warehouse designed for petabyte-scale analytics using standard SQL. It is the best fit because analysts already know SQL and no new tooling is required. BigQuery supports 24/7 availability with built-in redundancy and high durability. Cloud SQL (Option B) is a relational database but is not designed for multi-petabyte datasets — it has storage limits and is optimized for transactional workloads. Cloud Storage (Option C) stores flat files but does not provide a native SQL query interface for analysts. Cloud Datastore (Option D) is a NoSQL document database, not suitable for SQL-based analytics or petabyte-scale structured data.

Question 3

The operations manager asks you for a list of recommended practices that she should consider when migrating a J2EE application to the cloud. Which three practices should you recommend? (Choose three.)

A. Port the application code to run on Google App Engine
B. Integrate Cloud Dataflow into the application to capture real-time metrics
C. Instrument the application with a monitoring tool like Stackdriver Debugger
D. Select an automation framework to reliably provision the cloud infrastructure
E. Deploy a continuous integration tool with automated testing in a staging environment
F. Migrate from MySQL to a managed NoSQL database like Google Cloud Datastore or Bigtable
Show Answer & Explanation

Correct Answers: C. Instrument the application with a monitoring tool like Stackdriver Debugger; D. Select an automation framework to reliably provision the cloud infrastructure; E. Deploy a continuous integration tool with automated testing in a staging environment

These three practices represent cloud migration best practices for enterprise applications. Option C — instrumenting with Stackdriver (now Cloud Monitoring/Debugger) — is essential for observability during and after migration. Option D — using an infrastructure automation framework (like Terraform or Deployment Manager) — ensures repeatable, reliable provisioning and reduces human error. Option E — setting up CI/CD with automated testing in staging — validates that the migrated application behaves correctly before production. Option A is incorrect because rewriting a J2EE app for App Engine is a full re-platform, not a migration practice recommendation. Option B is incorrect because Cloud Dataflow is a data pipeline tool, unrelated to capturing app metrics. Option F is incorrect because migrating from MySQL to NoSQL is an unnecessary architectural change that adds risk and complexity without clear benefit during migration.

Question 4

A news feed web service has the following code running on Google App Engine. During peak load, users report that they can see news articles they already viewed. What is the most likely cause of this problem? pca_004_image.png

Diagram for question 4
A. The session variable is local to just a single instance
B. The session variable is being overwritten in Cloud Datastore
C. The URL of the API needs to be modified to prevent caching
D. The HTTP Expires header needs to be set to -1 stop caching
Show Answer & Explanation

Correct Answer: A. The session variable is local to just a single instance

The sessions variable is a Python dictionary defined at the module level (sessions = {}). In App Engine, multiple instances run simultaneously during peak load. Each instance has its own in-memory copy of sessions — they are not shared between instances. So when a user's request is routed to a different instance than their previous request, that instance has no record of which articles the user already viewed, causing previously viewed articles to appear again. The fix is to store session state in a shared external store like Cloud Datastore, Memorystore (Redis), or Cloud Firestore — accessible by all instances. Option B is wrong — the code never writes to Cloud Datastore. Option C and D are wrong — this is a server-side state problem, not a client-side caching issue.

Question 5

An application development team believes their current logging tool will not meet their needs for their new cloud-based product. They want a better tool to capture errors and help them analyze their historical log data. You want to help them find a solution that meets their needs. What should you do?

A. Direct them to download and install the Google StackDriver logging agent
B. Send them a list of online resources about logging best practices
C. Help them define their requirements and assess viable logging tools
D. Help them upgrade their current tool to take advantage of any new features
Show Answer & Explanation

Correct Answer: C. Help them define their requirements and assess viable logging tools

Before recommending or implementing any tool, the correct engineering approach is to define requirements first, then evaluate options. Option A jumps to a solution (Stackdriver) without understanding their needs. Option B is too passive and unhelpful. Option D assumes the current tool can be fixed, contradicting the team's assessment. A structured requirements-and-assessment process ensures the chosen tool actually solves their problem and avoids costly rework.

Ready for the Full GCP-PCA Experience?

Access all 55 pages of practice questions and simulate the real exam with timed mode.

Start Interactive Quiz →