πŸ”

PCDBE β€” questions

Page 5 of 9 Β· 170 total questions.

Topic 1 Β· Question 81

Your company wants you to migrate their Oracle, MySQL, Microsoft SQL Server, and PostgreSQL relational databases to Google Cloud. You need a fully managed, flexible database solution when possible. What should you do?

  • AMigrate all the databases to Cloud SQL.
  • BMigrate the Oracle, MySQL, and Microsoft SQL Server databases to Cloud SQL, and migrate the PostgreSQL databases to Compute Engine.
  • CMigrate the MySQL, Microsoft SQL Server, and PostgreSQL databases to Compute Engine, and migrate the Oracle databases to Bare Metal Solution for Oracle.
  • DMigrate the MySQL, Microsoft SQL Server, and PostgreSQL databases to Cloud SQL, and migrate the Oracle databases to Bare Metal Solution for Oracle. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Migrate the MySQL, Microsoft SQL Server, and PostgreSQL databases to Cloud SQL, and migrate the Oracle databases to Bare Metal Solution for Oracle.

Explanation

Bare Metal Solution runs specialized workloads on dedicated hardware next to Google Cloud. Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Topic 1 Β· Question 82

You are managing a Cloud SQL for PostgreSQL instance in Google Cloud. You need to test the high availability of your Cloud SQL instance by performing a failover. You want to use the cloud command. What should you do?

  • AUse gcloud sql instances failover . (correct answer)
  • BUse gcloud sql instances failover .
  • CUse gcloud sql instances promote-replica .
  • DUse gcloud sql instances promote-replica .
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use gcloud sql instances failover.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Topic 1 Β· Question 83

You use Python scripts to generate weekly SQL reports to assess the state of your databases and determine whether you need to reorganize tables or run statistics. You want to automate this report but need to minimize operational costs and overhead. What should you do?

  • ACreate a VM in Compute Engine, and run a cron job.
  • BCreate a Cloud Composer instance, and create a directed acyclic graph (DAG).
  • CCreate a Cloud Function, and call the Cloud Function using Cloud Scheduler. (correct answer)
  • DCreate a Cloud Function, and call the Cloud Function from a Cloud Tasks queue.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a Cloud Function, and call the Cloud Function using Cloud Scheduler.

Topic 1 Β· Question 84

Your company is using Cloud SQL for MySQL with an internal (private) IP address and wants to replicate some tables into BigQuery in near-real time for analytics and machine learning. You need to ensure that replication is fast and reliable and uses Google-managed services. What should you do?

  • ADevelop a custom data replication service to send data into BigQuery.
  • BUse Cloud SQL federated queries.
  • CUse Database Migration Service to replicate tables into BigQuery.
  • DUse Datastream to capture changes, and use Dataflow to write those changes to BigQuery. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Datastream to capture changes, and use Dataflow to write those changes to 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. Datastream provides serverless change-data-capture and replication into Google Cloud. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 85

You are designing a physician portal app in Node.js. This application will be used in hospitals and clinics that might have intermittent internet connectivity. If a connectivity failure occurs, the app should be able to query the cached data. You need to ensure that the application has scalability, strong consistency, and multi-region replication. What should you do?

  • AUse Firestore and ensure that the PersistenceEnabled option is set to true. (correct answer)
  • BUse Memorystore for Memcached.
  • CUse Pub/Sub to synchronize the changes from the application to Cloud Spanner.
  • DUse Table.read with the exactStaleness option to perform a read of rows in Cloud Spanner.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Firestore and ensure that the PersistenceEnabled option is set to true.

Explanation

Firestore is a serverless, autoscaling NoSQL document database ideal for app and user data.

Topic 1 Β· Question 86

You manage a production MySQL database running on Cloud SQL at a retail company. You perform routine maintenance on Sunday at midnight when traffic is slow, but you want to skip routine maintenance during the year-end holiday shopping season. You need to ensure that your production system is available 24/7 during the holidays. What should you do?

  • ADefine a maintenance window on Sundays between 12 AM and 1 AM, and deny maintenance periods between November 1 and January 15. (correct answer)
  • BDefine a maintenance window on Sundays between 12 AM and 5 AM, and deny maintenance periods between November 1 and February 15.
  • CBuild a Cloud Composer job to start a maintenance window on Sundays between 12 AM and 1AM, and deny maintenance periods between November 1 and January 15.
  • DCreate a Cloud Scheduler job to start maintenance at 12 AM on Sundays. Pause the Cloud Scheduler job between November 1 and January 15.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Define a maintenance window on Sundays between 12 AM and 1 AM, and deny maintenance periods between November 1 and January 15.

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

You want to migrate an on-premises 100 TB Microsoft SQL Server database to Google Cloud over a 1 Gbps network link. You have 48 hours allowed downtime to migrate this database. What should you do? (Choose two.)

  • AUse a change data capture (CDC) migration strategy. (correct answer)
  • BMove the physical database servers from on-premises to Google Cloud.
  • CKeep the network bandwidth at 1 Gbps, and then perform an offline data migration.
  • DIncrease the network bandwidth to 2 Gbps, and then perform an offline data migration.
  • EIncrease the network bandwidth to 10 Gbps, and then perform an offline data migration. (correct answer)
Reveal answer & explanation
Correct answer: A, E

The correct answer is A, E. Option A: Use a change data capture (CDC) migration strategy. Option E: Increase the network bandwidth to 10 Gbps, and then perform an offline data migration.

Topic 1 Β· Question 88

You need to provision several hundred Cloud SQL for MySQL instances for multiple project teams over a one-week period. You must ensure that all instances adhere to company standards such as instance naming conventions, database flags, and tags. What should you do?

  • AAutomate instance creation by writing a Dataflow job.
  • BAutomate instance creation by setting up Terraform scripts. (correct answer)
  • CCreate the instances using the Google Cloud Console UI.
  • DCreate clones from a template Cloud SQL instance.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Automate instance creation by setting up Terraform scripts.

Explanation

Terraform provisions Google Cloud infrastructure as code repeatably.

Topic 1 Β· Question 89

Your organization is migrating 50 TB Oracle databases to Bare Metal Solution for Oracle. Database backups must be available for quick restore. You also need to have backups available for 5 years. You need to design a cost-effective architecture that meets a recovery time objective (RTO) of 2 hours and recovery point objective (RPO) of 15 minutes. What should you do?

  • A1 Create the database on a Bare Metal Solution server with the database running on flash storage.2. Keep a local backup copy on all flash storage.3. Keep backups older than one day stored in Actifio OnVault storage.
  • B1 Create the database on a Bare Metal Solution server with the database running on flash storage.2. Keep a local backup copy on standard storage.3. Keep backups older than one day stored in Actifio OnVault storage. (correct answer)
  • C1. Create the database on a Bare Metal Solution server with the database running on flash storage.2. Keep a local backup copy on standard storage.3. Use the Oracle Recovery Manager (RMAN) backup utility to move backups older than one day to a Coldline Storage bucket.
  • D1. Create the database on a Bare Metal Solution server with the database running on flash storage.2. Keep a local backup copy on all flash storage.3. Use the Oracle Recovery Manager (RMAN) backup utility to move backups older than one day to an Archive Storage bucket.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1 Create the database on a Bare Metal Solution server with the database running on flash storage.2. Keep a local backup copy on standard storage.3. Keep backups older than one day stored in Actifio OnVault storage.

Explanation

Bare Metal Solution runs specialized workloads on dedicated hardware next to Google Cloud. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 90

You are a DBA on a Cloud Spanner instance with multiple databases. You need to assign these privileges to all members of the application development team on a specific database: Can read tables, views, and DDL - Can write rows to the tables - Can add columns and indexes - Cannot drop the database - What should you do?

  • AAssign the Cloud Spanner Database Reader and Cloud Spanner Backup Writer roles.
  • BAssign the Cloud Spanner Database Admin role.
  • CAssign the Cloud Spanner Database User role. (correct answer)
  • DAssign the Cloud Spanner Admin role.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Assign the Cloud Spanner Database User role.

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach.

Topic 1 Β· Question 91

Your project is using Bigtable to store data that should not be accessed from the public internet under any circumstances, even if the requestor has a valid service account key. You need to secure access to this data. What should you do?

  • AUse Identity and Access Management (IAM) for Bigtable access control.
  • BUse VPC Service Controls to create a trusted network for the Bigtable service. (correct answer)
  • CUse customer-managed encryption keys (CMEK).
  • DUse Google Cloud Armor to add IP addresses to an allowlist.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use VPC Service Controls to create a trusted network for the Bigtable service.

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads. VPC Service Controls create a security perimeter around managed services to prevent data exfiltration. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 92

Your organization has a ticketing system that needs an online marketing analytics and reporting application. You need to select a relational database that can manage hundreds of terabytes of data to support this new application. Which database should you use?

  • ACloud SQL
  • BBigQuery (correct answer)
  • CCloud Spanner
  • DBigtable
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: BigQuery

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 93

You are designing for a write-heavy application. During testing, you discover that the write workloads are performant in a regional Cloud Spanner instance but slow down by an order of magnitude in a multi-regional instance. You want to make the write workloads faster in a multi-regional instance. What should you do?

  • APlace the bulk of the read and write workloads closer to the default leader region. (correct answer)
  • BUse staleness of at least 15 seconds.
  • CAdd more read-write replicas.
  • DKeep the total CPU utilization under 45% in each region.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Place the bulk of the read and write workloads closer to the default leader region.

Topic 1 Β· Question 94

Your company wants to migrate an Oracle-based application to Google Cloud. The application team currently uses Oracle Recovery Manager (RMAN) to back up the database to tape for long-term retention (LTR). You need a cost-effective backup and restore solution that meets a 2-hour recovery time objective (RTO) and a 15-minute recovery point objective (RPO). What should you do?

  • AMigrate the Oracle databases to Bare Metal Solution for Oracle, and store backups on tapes on-premises.
  • BMigrate the Oracle databases to Bare Metal Solution for Oracle, and use Actifio to store backup files on Cloud Storage using the Nearline Storage class. (correct answer)
  • CMigrate the Oracle databases to Bare Metal Solution for Oracle, and back up the Oracle databases to Cloud Storage using the Standard Storage class.
  • DMigrate the Oracle databases to Compute Engine, and store backups on tapes on-premises.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Migrate the Oracle databases to Bare Metal Solution for Oracle, and use Actifio to store backup files on Cloud Storage using the Nearline Storage class.

Explanation

Bare Metal Solution runs specialized workloads on dedicated hardware next to Google Cloud. Cloud Storage provides durable, scalable object storage that is fully managed. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 95

You are migrating a telehealth care company's on-premises data center to Google Cloud. The migration plan specifies: PostgreSQL databases must be migrated to a multi-region backup configuration with cross-region replicas to allow restore and failover in multiple scenarios. MySQL databases handle personally identifiable information (PII) and require data residency compliance at the regional level. You want to set up the environment with minimal administrative effort. What should you do?

  • ASet up Cloud Logging and Cloud Monitoring with Cloud Functions to send an alert every time a new database instance is created, and manually validate the region.
  • BSet up different organizations for each database type, and apply policy constraints at the organization level.
  • CSet up Pub/Sub to ingest data from Cloud Logging, send an alert every time a new database instance is created, and manually validate the region.
  • DSet up different projects for PostgreSQL and MySQL databases, and apply organizational policy constraints at a project level. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Set up different projects for PostgreSQL and MySQL databases, and apply organizational policy constraints at a project level.

Topic 1 Β· Question 96

You have a Cloud SQL instance (DB-1) with two cross-region read replicas (DB-2 and DB-3). During a business continuity test, the primary instance (DB-1) was taken offline and a replica (DB-2) was promoted. The test has concluded and you want to return to the pre-test configuration. What should you do?

  • ABring DB-1 back online.
  • BDelete DB-1, and re-create DB-1 as a read replica in the same region as DB-1.
  • CDelete DB-2 so that DB-1 automatically reverts to the primary instance.
  • DCreate DB-4 as a read replica in the same region as DB-1, and promote DB-4 to primary. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create DB-4 as a read replica in the same region as DB-1, and promote DB-4 to primary.

Topic 1 Β· Question 97

Your team is building a new inventory management application that will require read and write database instances in multiple Google Cloud regions around the globe. Your database solution requires 99.99% availability and global transactional consistency. You need a fully managed backend relational database to store inventory changes. What should you do?

  • AUse Bigtable.
  • BUse Firestore.
  • CUse Cloud SQL for MySQL
  • DUse Cloud Spanner. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Cloud Spanner.

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach.

Topic 1 Β· Question 98

You are the database administrator of a Cloud SQL for PostgreSQL instance that has pgaudit disabled. Users are complaining that their queries are taking longer to execute and performance has degraded over the past few months. You need to collect and analyze query performance data to help identity slow-running queries. What should you do?

  • AView Cloud SQL operations to view historical query information.
  • BWhite a Logs Explorer query to identify database queries with high execution times.
  • CReview application logs to identify database calls.
  • DUse the Query Insights dashboard to identify high execution times. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the Query Insights dashboard to identify high execution times.

Topic 1 Β· Question 99

You are configuring a brand new PostgreSQL database instance in Cloud SQL. Your application team wants to have an optimal and highly available environment with automatic failover to avoid any unplanned outage. What should you do?

  • ACreate one regional Cloud SQL instance with a read replica in another region.
  • BCreate one regional Cloud SQL instance in one zone with a standby instance in another zone in the same region. (correct answer)
  • CCreate two read-write Cloud SQL instances in two different zones with a standby instance in another region.
  • DCreate two read-write Cloud SQL instances in two different regions with a standby instance in another zone.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create one regional Cloud SQL instance in one zone with a standby instance in another zone in the same region.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 100

During an internal audit, you realized that one of your Cloud SQL for MySQL instances does not have high availability (HA) enabled. You want to follow Google-recommended practices to enable HA on your existing instance. What should you do?

  • ACreate a new Cloud SQL for MySQL instance, enable HA, and use the export and import option to migrate your data.
  • BCreate a new Cloud SQL for MySQL instance, enable HA, and use Cloud Data Fusion to migrate your data.
  • CUse the gcloud instances patch command to update your existing Cloud SQL for MySQL instance. (correct answer)
  • DShut down your existing Cloud SQL for MySQL instance, and enable HA.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the gcloud instances patch command to update your existing Cloud SQL for MySQL instance.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Showing questions 81–100 of 170 Β· Page 5 of 9