ExamGecko
Home Home / Google / Professional Cloud Database Engineer

Google Professional Cloud Database Engineer Practice Test - Questions Answers, Page 4

Question list
Search
Search

List of questions

Search

Related questions











You are managing multiple applications connecting to a database on Cloud SQL for PostgreSQL. You need to be able to monitor database performance to easily identify applications with long-running and resource-intensive queries. What should you do?

A.
Use log messages produced by Cloud SQL.
A.
Use log messages produced by Cloud SQL.
Answers
B.
Use Query Insights for Cloud SQL.
B.
Use Query Insights for Cloud SQL.
Answers
C.
Use the Cloud Monitoring dashboard with available metrics from Cloud SQL.
C.
Use the Cloud Monitoring dashboard with available metrics from Cloud SQL.
Answers
D.
Use Cloud SQL instance monitoring in the Google Cloud Console.
D.
Use Cloud SQL instance monitoring in the Google Cloud Console.
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/sql/docs/mysql/using-query-insights#introduction

You are building an application that allows users to customize their website and mobile experiences. The application will capture user information and preferences. User profiles have a dynamic schema, and users can add or delete information from their profile. You need to ensure that user changes automatically trigger updates to your downstream BigQuery data warehouse. What should you do?

A.
Store your data in Bigtable, and use the user identifier as the key. Use one column family to store user profile data, and use another column family to store user preferences.
A.
Store your data in Bigtable, and use the user identifier as the key. Use one column family to store user profile data, and use another column family to store user preferences.
Answers
B.
Use Cloud SQL, and create different tables for user profile data and user preferences from your recommendations model. Use SQL to join the user profile data and preferences
B.
Use Cloud SQL, and create different tables for user profile data and user preferences from your recommendations model. Use SQL to join the user profile data and preferences
Answers
C.
Use Firestore in Native mode, and store user profile data as a document. Update the user profile with preferences specific to that user and use the user identifier to query.
C.
Use Firestore in Native mode, and store user profile data as a document. Update the user profile with preferences specific to that user and use the user identifier to query.
Answers
D.
Use Firestore in Datastore mode, and store user profile data as a document. Update the user profile with preferences specific to that user and use the user identifier to query.
D.
Use Firestore in Datastore mode, and store user profile data as a document. Update the user profile with preferences specific to that user and use the user identifier to query.
Answers
Suggested answer: C

Explanation:

Use Firestore in Datastore mode for new server projects. Firestore in Datastore mode allows you to use established Datastore server architectures while removing fundamental Datastore limitations. Datastore mode can automatically scale to millions of writes per second. Use Firestore in Native mode for new mobile and web apps. Firestore offers mobile and web client libraries with real-time and offline features. Native mode can automatically scale to millions of concurrent clients.

Your application uses Cloud SQL for MySQL. Your users run reports on data that relies on near-real time; however, the additional analytics caused excessive load on the primary database. You created a read replica for the analytics workloads, but now your users are complaining about the lag in data changes and that their reports are still slow. You need to improve the report performance and shorten the lag in data replication without making changes to the current reports. Which two approaches should you implement? (Choose two.)

A.
Create secondary indexes on the replica.
A.
Create secondary indexes on the replica.
Answers
B.
Create additional read replicas, and partition your analytics users to use different read replicas.
B.
Create additional read replicas, and partition your analytics users to use different read replicas.
Answers
C.
Disable replication on the read replica, and set the flag for parallel replication on the read replica. Re-enable replication and optimize performance by setting flags on the primary instance.
C.
Disable replication on the read replica, and set the flag for parallel replication on the read replica. Re-enable replication and optimize performance by setting flags on the primary instance.
Answers
D.
Disable replication on the primary instance, and set the flag for parallel replication on the primary instance. Re-enable replication and optimize performance by setting flags on the read replica.
D.
Disable replication on the primary instance, and set the flag for parallel replication on the primary instance. Re-enable replication and optimize performance by setting flags on the read replica.
Answers
E.
Move your analytics workloads to BigQuery, and set up a streaming pipeline to move data and update BigQuery.
E.
Move your analytics workloads to BigQuery, and set up a streaming pipeline to move data and update BigQuery.
Answers
Suggested answer: B, C

Explanation:

Replication lag and slow report performance. E is eliminated because using BigQuery would mean changes to the current reports. Report slowness could be the result of poor indexing or just too much read load (or both!). Since excessive load is mentioned in the question, creating additional read replicas and spreading the analytics workload around makes B correct and eliminates A as a way to speed up reporting. That leaves the replication problem. Cloud SQL enables single threaded replication by default, so it stands to reason enabling parallel replication would help the lag. To do that you disable replication on the replica (not the primary), set flags on the replica and optionally set flags on the primary instance to optimize performance for parallel replication. That makes C correct and D incorrect. https://cloud.google.com/sql/docs/mysql/replication/manage-replicas#configuring-parallel-replication

You are evaluating Cloud SQL for PostgreSQL as a possible destination for your on-premises PostgreSQL instances. Geography is becoming increasingly relevant to customer privacy worldwide. Your solution must support data residency requirements and include a strategy to:

configure where data is stored

control where the encryption keys are stored

govern the access to data

What should you do?

A.
Replicate Cloud SQL databases across different zones.
A.
Replicate Cloud SQL databases across different zones.
Answers
B.
Create a Cloud SQL for PostgreSQL instance on Google Cloud for the data that does not need to adhere to data residency requirements. Keep the data that must adhere to data residency requirements on-premises. Make application changes to support both databases.
B.
Create a Cloud SQL for PostgreSQL instance on Google Cloud for the data that does not need to adhere to data residency requirements. Keep the data that must adhere to data residency requirements on-premises. Make application changes to support both databases.
Answers
C.
Allow application access to data only if the users are in the same region as the Google Cloud region for the Cloud SQL for PostgreSQL database.
C.
Allow application access to data only if the users are in the same region as the Google Cloud region for the Cloud SQL for PostgreSQL database.
Answers
D.
Use features like customer-managed encryption keys (CMEK), VPC Service Controls, and Identity and Access Management (IAM) policies.
D.
Use features like customer-managed encryption keys (CMEK), VPC Service Controls, and Identity and Access Management (IAM) policies.
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/blog/products/identity-security/meet-data-residency-requirements-with-google-cloud

Your customer is running a MySQL database on-premises with read replicas. The nightly incremental backups are expensive and add maintenance overhead. You want to follow Google-recommended practices to migrate the database to Google Cloud, and you need to ensure minimal downtime. What should you do?

A.
Create a Google Kubernetes Engine (GKE) cluster, install MySQL on the cluster, and then import the dump file.
A.
Create a Google Kubernetes Engine (GKE) cluster, install MySQL on the cluster, and then import the dump file.
Answers
B.
Use the mysqldump utility to take a backup of the existing on-premises database, and then import it into Cloud SQL.
B.
Use the mysqldump utility to take a backup of the existing on-premises database, and then import it into Cloud SQL.
Answers
C.
Create a Compute Engine VM, install MySQL on the VM, and then import the dump file.
C.
Create a Compute Engine VM, install MySQL on the VM, and then import the dump file.
Answers
D.
Create an external replica, and use Cloud SQL to synchronize the data to the replica.
D.
Create an external replica, and use Cloud SQL to synchronize the data to the replica.
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/sql/docs/mysql/replication/configure-replication-from-external

You need to migrate a 1 TB PostgreSQL database from a Compute Engine VM to Cloud SQL for PostgreSQL. You want to ensure that there is minimal downtime during the migration. What should you do?

A.
Export the data from the existing database, and load the data into a new Cloud SQL database.
A.
Export the data from the existing database, and load the data into a new Cloud SQL database.
Answers
B.
Use Migrate for Compute Engine to complete the migration.
B.
Use Migrate for Compute Engine to complete the migration.
Answers
C.
Use Datastream to complete the migration.
C.
Use Datastream to complete the migration.
Answers
D.
Use Database Migration Service to complete the migration.
D.
Use Database Migration Service to complete the migration.
Answers
Suggested answer: D

Explanation:

https://www.cloudskillsboost.google/focuses/22792?parent=catalog

You have a large Cloud SQL for PostgreSQL instance. The database instance is not mission-critical, and you want to minimize operational costs. What should you do to lower the cost of backups in this environment?

A.
Set the automated backups to occur every other day to lower the frequency of backups.
A.
Set the automated backups to occur every other day to lower the frequency of backups.
Answers
B.
Change the storage tier of the automated backups from solid-state drive (SSD) to hard disk drive (HDD).
B.
Change the storage tier of the automated backups from solid-state drive (SSD) to hard disk drive (HDD).
Answers
C.
Select a different region to store your backups.
C.
Select a different region to store your backups.
Answers
D.
Reduce the number of automated backups that are retained to two (2).
D.
Reduce the number of automated backups that are retained to two (2).
Answers
Suggested answer: D

Explanation:

By default, for each instance, Cloud SQL retains seven automated backups, in addition to on-demand backups. You can configure how many automated backups to retain (from 1 to 365). We charge a lower rate for backup storage than for other types of instances. https://cloud.google.com/sql/docs/mysql/backup-recovery/backups

You are the primary DBA of a Cloud SQL for PostgreSQL database that supports 6 enterprise applications in production. You used Cloud SQL Insights to identify inefficient queries and now need to identify the application that is originating the inefficient queries. You want to follow Google-recommended practices. What should you do?

A.
Shut down and restart each application.
A.
Shut down and restart each application.
Answers
B.
Write a utility to scan database query logs.
B.
Write a utility to scan database query logs.
Answers
C.
Write a utility to scan application logs.
C.
Write a utility to scan application logs.
Answers
D.
Use query tags to add application-centric database monitoring.
D.
Use query tags to add application-centric database monitoring.
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/sql/docs/postgres/using-query-insights#filter_by_query_tags

You are designing a database strategy for a new web application. You plan to start with a small pilot in one country and eventually expand to millions of users in a global audience. You need to ensure that the application can run 24/7 with minimal downtime for maintenance. What should you do?

A.
Use Cloud Spanner in a regional configuration.
A.
Use Cloud Spanner in a regional configuration.
Answers
B.
Use Cloud Spanner in a multi-region configuration.
B.
Use Cloud Spanner in a multi-region configuration.
Answers
C.
Use Cloud SQL with cross-region replicas.
C.
Use Cloud SQL with cross-region replicas.
Answers
D.
Use highly available Cloud SQL with multiple zones.
D.
Use highly available Cloud SQL with multiple zones.
Answers
Suggested answer: A

Explanation:

https://docs.google.com/forms/d/e/1FAIpQLSfZ77ZnuUL0NpU-bOtO5QUkC0cnRCe5YKMiubLXwfV3abBqkg/viewform

Your company is shutting down their on-premises data center and migrating their Oracle databases using Oracle Real Application Clusters (RAC) to Google Cloud. You want minimal to no changes to the applications during the database migration. What should you do?

A.
Migrate the Oracle databases to Cloud Spanner.
A.
Migrate the Oracle databases to Cloud Spanner.
Answers
B.
Migrate the Oracle databases to Compute Engine.
B.
Migrate the Oracle databases to Compute Engine.
Answers
C.
Migrate the Oracle databases to Cloud SQL.
C.
Migrate the Oracle databases to Cloud SQL.
Answers
D.
Migrate the Oracle databases to Bare Metal Solution for Oracle.
D.
Migrate the Oracle databases to Bare Metal Solution for Oracle.
Answers
Suggested answer: D

Explanation:

This answer is correct because Bare Metal Solution for Oracle is a service that provides dedicated physical servers and networking infrastructure for running Oracle databases on Google Cloud1.Bare Metal Solution for Oracle supports Oracle RAC, which is a cluster database that provides high availability, scalability, and performance for Oracle workloads2.By using Bare Metal Solution for Oracle, you can migrate your Oracle databases with minimal to no changes to the applications, and you can leverage the native Google Cloud services and interconnectivity1.

Total 132 questions
Go to page: of 14