Community Q&A

PCDBE — frequently asked questions

Community-vetted answers to 20 common questions about this exam, each traced back to a specific practice question.

Questions from real practice questions

Each Q&A comes from a specific question — follow the link for the full analysis

Scheduling Cloud SQL Exports with Cloud Scheduler and Pub/Sub

Can I use Cloud Functions directly without Pub/Sub?

While Cloud Functions can be triggered by HTTP or other events, Google's recommended pattern for scheduled Cloud SQL exports uses Pub/Sub as an intermediary to decouple the scheduler from the function, improving reliability and scalability.

Why not just use Cloud Composer for all scheduling tasks?

Cloud Composer is designed for complex DAGs with dependencies. For simple, independent daily tasks like exports, it adds unnecessary cost and maintenance complexity compared to Serverless options.

Using Service Accounts for Cloud SQL Auth Proxy on Compute Engine

Can I use a user account for Cloud SQL Auth Proxy?

No. User accounts are for humans. Workloads must use service accounts to authenticate via OAuth2 tokens generated by the metadata server.

Should I use one service account for all apps on the VM?

No. Best practice is to create dedicated service accounts for each distinct workload or application to enforce least privilege.

Migrating On-Premises MySQL to BigQuery with Low Latency

Why not use Datastream and Dataflow?

While Datastream and Dataflow provide robust streaming, they require building and maintaining a complex pipeline. Database Migration Service is more 'managed' and 'easy to set up' for the initial replication step.

What are federated tables in BigQuery?

Federated tables allow BigQuery to query data stored in other systems, such as Cloud SQL, without physically moving the data. This reduces latency and setup effort.

Secure Cloud SQL Migration Connectivity and Access

Why is Private Service Connect preferred over external IPs?

PSC keeps traffic within Google's private network backbone, avoiding the public internet and reducing the attack surface for sensitive data.

Can I use Cloud Interconnect instead of PSC?

Yes, Cloud Interconnect is also valid for hybrid connectivity, but PSC is often simpler to configure for specific service connections like Cloud SQL.

Migrating Cloud SQL PostgreSQL PITR Logs to Cloud Storage

Does upgrading from Enterprise to Enterprise Plus cause downtime?

Upgrading the edition of a Cloud SQL instance is generally a non-disruptive operation. However, it is best practice to verify the specific maintenance window settings.

Can I use Cloud Storage for WALs with Standard Edition?

No, Standard and Enterprise editions store WALs on the instance's local persistent disk. Only Enterprise Plus supports native Cloud Storage retention for WALs.

Designing Global High-Availability Bigtable Solutions

Why not use AlloyDB for time-series data?

AlloyDB is optimized for transactional PostgreSQL workloads. Bigtable is specifically designed for high-throughput, low-latency access to large amounts of versioned time-series data.

Does autoscaling replace the need for multi-region deployment?

No. Autoscaling manages resource allocation within a cluster or region. Multi-region deployment provides geographic redundancy, lower latency for global users, and protection against regional failures.

Connecting GKE to AlloyDB Across Isolated VPCs

Does Private Service Access connect my VPC to another VPC?

No. PSA connects your VPC to Google's managed services. It does not create routes between two customer-owned VPCs unless they are already peered.

Can I use AlloyDB Auth Proxy without a public IP?

Yes, the proxy uses Google Cloud APIs to authenticate and create a secure tunnel, but it still requires network connectivity to the database instance.

Migrating Oracle Stored Procedures to AlloyDB with Minimal Downtime

What is the difference between a legacy and modern conversion workspace in DMS?

Modern conversion workspaces use advanced compilers to automatically translate Oracle PL/SQL code, reducing manual effort. Legacy workspaces may require more manual intervention or offer less sophisticated translation capabilities.

Why is CDC important for minimizing downtime during migration?

Change Data Capture (CDC) allows continuous replication of data changes from the source to the target while the migration is ongoing. This ensures that only minimal changes need to be applied during the final cutover, reducing downtime.

Google Cloud SQL Enterprise Plus Advanced DR Setup

What is the minimum edition required for Advanced DR?

Advanced DR is available only in the Cloud SQL for MySQL Enterprise Plus edition. It is not supported in Standard or Basic editions.

Can I use a different major version for the DR replica?

No, the read replica must run the same minor version as the primary instance to maintain compatibility and support the designated failover role.

Memorystore Regional Outage Recovery Strategy

Do read replicas protect against regional outages?

No, read replicas in Memorystore Standard Tier are confined to the same region. They protect against zone failures but not regional ones.

Can I restore from a local RDB snapshot in another region?

Local snapshots are not automatically available in other regions. You must explicitly schedule exports to a Cloud Storage bucket in the target region or a dual-region bucket.