ExamGecko
Home Home / Google / Professional Cloud Database Engineer

Google Professional Cloud Database Engineer Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











Your organization has a security policy to ensure that all Cloud SQL for PostgreSQL databases are secure. You want to protect sensitive data by using a key that meets specific locality or residency requirements. Your organization needs to control the key's lifecycle activities. You need to ensure that data is encrypted at rest and in transit. What should you do?

A.
Create the database with Google-managed encryption keys.
A.
Create the database with Google-managed encryption keys.
Answers
B.
Create the database with customer-managed encryption keys.
B.
Create the database with customer-managed encryption keys.
Answers
C.
Create the database persistent disk with Google-managed encryption keys.
C.
Create the database persistent disk with Google-managed encryption keys.
Answers
D.
Create the database persistent disk with customer-managed encryption keys.
D.
Create the database persistent disk with customer-managed encryption keys.
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/sql/docs/postgres/configure-cmek#createcmekinstance

Your organization has an existing app that just went viral. The app uses a Cloud SQL for MySQL backend database that is experiencing slow disk performance while using hard disk drives (HDDs). You need to improve performance and reduce disk I/O wait times. What should you do?

A.
Export the data from the existing instance, and import the data into a new instance with solid-state drives (SSDs).
A.
Export the data from the existing instance, and import the data into a new instance with solid-state drives (SSDs).
Answers
B.
Edit the instance to change the storage type from HDD to SSD.
B.
Edit the instance to change the storage type from HDD to SSD.
Answers
C.
Create a high availability (HA) failover instance with SSDs, and perform a failover to the new instance.
C.
Create a high availability (HA) failover instance with SSDs, and perform a failover to the new instance.
Answers
D.
Create a read replica of the instance with SSDs, and perform a failover to the new instance
D.
Create a read replica of the instance with SSDs, and perform a failover to the new instance
Answers
Suggested answer: A

Explanation:

https://stackoverflow.com/questions/72034607/can-i-change-storage-type-from-hdd-to-ssd-on-cloud-sql-after-creating-an-instanc

You are building a data warehouse on BigQuery. Sources of data include several MySQL databases located on-premises.

You need to transfer data from these databases into BigQuery for analytics. You want to use a managed solution that has low latency and is easy to set up. What should you do?

A.
Create extracts from your on-premises databases periodically, and push these extracts to Cloud Storage. Upload the changes into BigQuery, and merge them with existing tables.
A.
Create extracts from your on-premises databases periodically, and push these extracts to Cloud Storage. Upload the changes into BigQuery, and merge them with existing tables.
Answers
B.
Use Cloud Data Fusion and scheduled workflows to extract data from MySQL. Transform this data into the appropriate schema, and load this data into your BigQuery database.
B.
Use Cloud Data Fusion and scheduled workflows to extract data from MySQL. Transform this data into the appropriate schema, and load this data into your BigQuery database.
Answers
C.
Use Datastream to connect to your on-premises database and create a stream. Have Datastream write to Cloud Storage. Then use Dataflow to process the data into BigQuery.
C.
Use Datastream to connect to your on-premises database and create a stream. Have Datastream write to Cloud Storage. Then use Dataflow to process the data into BigQuery.
Answers
D.
Use Database Migration Service to replicate data to a Cloud SQL for MySQL instance. Create federated tables in BigQuery on top of the replicated instances to transform and load the data into your BigQuery database.
D.
Use Database Migration Service to replicate data to a Cloud SQL for MySQL instance. Create federated tables in BigQuery on top of the replicated instances to transform and load the data into your BigQuery database.
Answers
Suggested answer: C

Your company is migrating all legacy applications to Google Cloud. All on-premises applications are using legacy Oracle 12c databases with Oracle Real Application Cluster (RAC) for high availability (HA) and Oracle Data Guard for disaster recovery. You need a solution that requires minimal code changes, provides the same high availability you have today on-premises, and supports a low latency network for migrated legacy applications. What should you do?

A.
Migrate the databases to Cloud Spanner.
A.
Migrate the databases to Cloud Spanner.
Answers
B.
Migrate the databases to Cloud SQL, and enable a standby database.
B.
Migrate the databases to Cloud SQL, and enable a standby database.
Answers
C.
Migrate the databases to Compute Engine using regional persistent disks.
C.
Migrate the databases to Compute Engine using regional persistent disks.
Answers
D.
Migrate the databases to Bare Metal Solution for Oracle.
D.
Migrate the databases to Bare Metal Solution for Oracle.
Answers
Suggested answer: D

Explanation:

BMS is the only Google database service which supports Oracle aside from GCVE. It allows you to use all native Oracle features including RAC. Since GCVE isn't mentioned, it has to be D - Bare Metal Solution.

You are migrating an on-premises application to Compute Engine and Cloud SQL. The application VMs will live in their own project, separate from the Cloud SQL instances which have their own project. What should you do to configure the networks?

A.
Create a new VPC network in each project, and use VPC Network Peering to connect the two together.
A.
Create a new VPC network in each project, and use VPC Network Peering to connect the two together.
Answers
B.
Create a Shared VPC that both the application VMs and Cloud SQL instances will use.
B.
Create a Shared VPC that both the application VMs and Cloud SQL instances will use.
Answers
C.
Use the default networks, and leverage Cloud VPN to connect the two together.
C.
Use the default networks, and leverage Cloud VPN to connect the two together.
Answers
D.
Place both the application VMs and the Cloud SQL instances in the default network of each project.
D.
Place both the application VMs and the Cloud SQL instances in the default network of each project.
Answers
Suggested answer: B

Explanation:

https://groups.google.com/g/google-cloud-sql-discuss/c/M5G5_HPXytY?pli=1

You are managing a Cloud SQL for PostgreSQL instance in Google Cloud. You have a primary instance in region 1 and a read replica in region 2. After a failure of region 1, you need to make the Cloud SQL instance available again. You want to minimize data loss and follow Google-recommended practices. What should you do?

A.
Restore the Cloud SQL instance from the automatic backups in region 3.
A.
Restore the Cloud SQL instance from the automatic backups in region 3.
Answers
B.
Restore the Cloud SQL instance from the automatic backups in another zone in region 1.
B.
Restore the Cloud SQL instance from the automatic backups in another zone in region 1.
Answers
C.
Check 'Lag Bytes' in the monitoring dashboard for the primary instance in the read replica instance. Check the replication status using pg_catalog.pg_last_wal_receive_lsn(). Then, fail over to region 2 by promoting the read replica instance.
C.
Check 'Lag Bytes' in the monitoring dashboard for the primary instance in the read replica instance. Check the replication status using pg_catalog.pg_last_wal_receive_lsn(). Then, fail over to region 2 by promoting the read replica instance.
Answers
D.
Check your instance operational log for the automatic failover status. Look for time, type, and status of the operations. If the failover operation is successful, no action is necessary. Otherwise, manually perform gcloud sql instances failover .
D.
Check your instance operational log for the automatic failover status. Look for time, type, and status of the operations. If the failover operation is successful, no action is necessary. Otherwise, manually perform gcloud sql instances failover .
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/sql/docs/postgres/replication/cross-region-replicas#disaster_recovery

You want to migrate an on-premises mission-critical PostgreSQL database to Cloud SQL. The database must be able to withstand a zonal failure with less than five minutes of downtime and still not lose any transactions. You want to follow Google-recommended practices for the migration. What should you do?

A.
Take nightly snapshots of the primary database instance, and restore them in a secondary zone.
A.
Take nightly snapshots of the primary database instance, and restore them in a secondary zone.
Answers
B.
Build a change data capture (CDC) pipeline to read transactions from the primary instance, and replicate them to a secondary instance.
B.
Build a change data capture (CDC) pipeline to read transactions from the primary instance, and replicate them to a secondary instance.
Answers
C.
Create a read replica in another region, and promote the read replica if a failure occurs.
C.
Create a read replica in another region, and promote the read replica if a failure occurs.
Answers
D.
Enable high availability (HA) for the database to make it regional.
D.
Enable high availability (HA) for the database to make it regional.
Answers
Suggested answer: D

You need to issue a new server certificate because your old one is expiring. You need to avoid a restart of your Cloud SQL for MySQL instance. What should you do in your Cloud SQL instance?

A.
Issue a rollback, and download your server certificate.
A.
Issue a rollback, and download your server certificate.
Answers
B.
Create a new client certificate, and download it.
B.
Create a new client certificate, and download it.
Answers
C.
Create a new server certificate, and download it.
C.
Create a new server certificate, and download it.
Answers
D.
Reset your SSL configuration, and download your server certificate.
D.
Reset your SSL configuration, and download your server certificate.
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/sql/docs/sqlserver/configure-ssl-instance#server-certs

You are configuring a new application that has access to an existing Cloud Spanner database. The new application reads from this database to gather statistics for a dashboard. You want to follow Google-recommended practices when granting Identity and Access Management (IAM) permissions. What should you do?

A.
Reuse the existing service account that populates this database.
A.
Reuse the existing service account that populates this database.
Answers
B.
Create a new service account, and grant it the Cloud Spanner Database Admin role.
B.
Create a new service account, and grant it the Cloud Spanner Database Admin role.
Answers
C.
Create a new service account, and grant it the Cloud Spanner Database Reader role.
C.
Create a new service account, and grant it the Cloud Spanner Database Reader role.
Answers
D.
Create a new service account, and grant it the spanner.databases.select permission.
D.
Create a new service account, and grant it the spanner.databases.select permission.
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/iam/docs/overview

Your retail organization is preparing for the holiday season. Use of catalog services is increasing, and your DevOps team is supporting the Cloud SQL databases that power a microservices-based application. The DevOps team has added instrumentation through Sqlcommenter. You need to identify the root cause of why certain microservice calls are failing. What should you do?

A.
Watch Query Insights for long running queries.
A.
Watch Query Insights for long running queries.
Answers
B.
Watch the Cloud SQL instance monitor for CPU utilization metrics.
B.
Watch the Cloud SQL instance monitor for CPU utilization metrics.
Answers
C.
Watch the Cloud SQL recommenders for overprovisioned instances.
C.
Watch the Cloud SQL recommenders for overprovisioned instances.
Answers
D.
Watch Cloud Trace for application requests that are failing.
D.
Watch Cloud Trace for application requests that are failing.
Answers
Suggested answer: A

Explanation:

Cloud Trace doesn't support Cloud SQL. Eliminate D. Cloud SQL recommenders for overprovisioned instances would tell you about Cloud SQL instances which are too large for their workload. Eliminate C. Monitoring CPU utilization wouldn't tell you why microservice calls are failing. Eliminate B. SQLcommenter integrates with Query Insights. So A is the best answer. https://cloud.google.com/blog/topics/developers-practitioners/introducing-sqlcommenter-open-source-orm-auto-instrumentation-library

Total 132 questions
Go to page: of 14