ExamGecko
Home Home / Google / Professional Cloud Database Engineer

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

Question list
Search
Search

List of questions

Search

Related questions











You are setting up a Bare Metal Solution environment. You need to update the operating system to the latest version. You need to connect the Bare Metal Solution environment to the internet so you can receive software updates. What should you do?

A.
Setup a static external IP address in your VPC network.
A.
Setup a static external IP address in your VPC network.
Answers
B.
Set up bring your own IP (BYOIP) in your VPC.
B.
Set up bring your own IP (BYOIP) in your VPC.
Answers
C.
Set up a Cloud NAT gateway on the Compute Engine VM.
C.
Set up a Cloud NAT gateway on the Compute Engine VM.
Answers
D.
Set up Cloud NAT service.
D.
Set up Cloud NAT service.
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/bare-metal/docs/bms-setup?hl=en#bms-access-internet-vm-nat The docs specifically says 'Setting up a NAT gateway on a Compute Engine VM' is the way to give BMS internet access.

Your organization is running a MySQL workload in Cloud SQL. Suddenly you see a degradation in database performance. You need to identify the root cause of the performance degradation. What should you do?

A.
Use Logs Explorer to analyze log data.
A.
Use Logs Explorer to analyze log data.
Answers
B.
Use Cloud Monitoring to monitor CPU, memory, and storage utilization metrics.
B.
Use Cloud Monitoring to monitor CPU, memory, and storage utilization metrics.
Answers
C.
Use Error Reporting to count, analyze, and aggregate the data.
C.
Use Error Reporting to count, analyze, and aggregate the data.
Answers
D.
Use Cloud Debugger to inspect the state of an application.
D.
Use Cloud Debugger to inspect the state of an application.
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/sql/docs/mysql/diagnose-issues#:~:text=If%20your%20instance%20stops%20responding%20to%20connections%20or%20performance%20is%20degraded%2C%20make%20sure%20it%20conforms%20to%20the%20Operational%20Guidelines

You work for a large retail and ecommerce company that is starting to extend their business globally. Your company plans to migrate to Google Cloud. You want to use platforms that will scale easily, handle transactions with the least amount of latency, and provide a reliable customer experience. You need a storage layer for sales transactions and current inventory levels. You want to retain the same relational schema that your existing platform uses. What should you do?

A.
Store your data in Firestore in a multi-region location, and place your compute resources in one of the constituent regions.
A.
Store your data in Firestore in a multi-region location, and place your compute resources in one of the constituent regions.
Answers
B.
Deploy Cloud Spanner using a multi-region instance, and place your compute resources close to the default leader region.
B.
Deploy Cloud Spanner using a multi-region instance, and place your compute resources close to the default leader region.
Answers
C.
Build an in-memory cache in Memorystore, and deploy to the specific geographic regions where your application resides.
C.
Build an in-memory cache in Memorystore, and deploy to the specific geographic regions where your application resides.
Answers
D.
Deploy a Bigtable instance with a cluster in one region and a replica cluster in another geographic region.
D.
Deploy a Bigtable instance with a cluster in one region and a replica cluster in another geographic region.
Answers
Suggested answer: B

You host an application in Google Cloud. The application is located in a single region and uses Cloud SQL for transactional dat

a. Most of your users are located in the same time zone and expect the application to be available 7 days a week, from 6 AM to 10 PM. You want to ensure regular maintenance updates to your Cloud SQL instance without creating downtime for your users. What should you do?

A.
Configure a maintenance window during a period when no users will be on the system. Control the order of update by setting non-production instances to earlier and production instances to later.
A.
Configure a maintenance window during a period when no users will be on the system. Control the order of update by setting non-production instances to earlier and production instances to later.
Answers
B.
Create your database with one primary node and one read replica in the region.
B.
Create your database with one primary node and one read replica in the region.
Answers
C.
Enable maintenance notifications for users, and reschedule maintenance activities to a specific time after notifications have been sent.
C.
Enable maintenance notifications for users, and reschedule maintenance activities to a specific time after notifications have been sent.
Answers
D.
Configure your Cloud SQL instance with high availability enabled.
D.
Configure your Cloud SQL instance with high availability enabled.
Answers
Suggested answer: A

Explanation:

Configure a maintenance window during a period when no users will be on the system. Control the order of update by setting non-production instances to earlier and production instances to later.

Your team recently released a new version of a highly consumed application to accommodate additional user traffic. Shortly after the release, you received an alert from your production monitoring team that there is consistently high replication lag between your primary instance and the read replicas of your Cloud SQL for MySQL instances. You need to resolve the replication lag. What should you do?

A.
Identify and optimize slow running queries, or set parallel replication flags.
A.
Identify and optimize slow running queries, or set parallel replication flags.
Answers
B.
Stop all running queries, and re-create the replicas.
B.
Stop all running queries, and re-create the replicas.
Answers
C.
Edit the primary instance to upgrade to a larger disk, and increase vCPU count.
C.
Edit the primary instance to upgrade to a larger disk, and increase vCPU count.
Answers
D.
Edit the primary instance to add additional memory.
D.
Edit the primary instance to add additional memory.
Answers
Suggested answer: A

Explanation:

https://cloud.google.com/sql/docs/mysql/replication/replication-lag#optimize_queries_and_schema

Your organization operates in a highly regulated industry. Separation of concerns (SoC) and security principle of least privilege (PoLP) are critical. The operations team consists of:

Person A is a database administrator.

Person B is an analyst who generates metric reports.

Application C is responsible for automatic backups.

You need to assign roles to team members for Cloud Spanner. Which roles should you assign?

A.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseReader for Person B roles/spanner.backupWriter for Application C
A.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseReader for Person B roles/spanner.backupWriter for Application C
Answers
B.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseReader for Person B roles/spanner.backupAdmin for Application C
B.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseReader for Person B roles/spanner.backupAdmin for Application C
Answers
C.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseUser for Person B roles/spanner databaseReader for Application C
C.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseUser for Person B roles/spanner databaseReader for Application C
Answers
D.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseUser for Person B roles/spanner.backupWriter for Application C
D.
roles/spanner.databaseAdmin for Person A roles/spanner.databaseUser for Person B roles/spanner.backupWriter for Application C
Answers
Suggested answer: A

Explanation:

https://cloud.google.com/spanner/docs/iam#spanner.backupWriter

You are designing an augmented reality game for iOS and Android devices. You plan to use Cloud Spanner as the primary backend database for game state storage and player authentication. You want to track in-game rewards that players unlock at every stage of the game. During the testing phase, you discovered that costs are much higher than anticipated, but the query response times are within the SLA. You want to follow Google-recommended practices. You need the database to be performant and highly available while you keep costs low. What should you do?


A.
Manually scale down the number of nodes after the peak period has passed.
A.
Manually scale down the number of nodes after the peak period has passed.
Answers
B.
Use interleaving to co-locate parent and child rows.
B.
Use interleaving to co-locate parent and child rows.
Answers
C.
Use the Cloud Spanner query optimizer to determine the most efficient way to execute the SQL query.
C.
Use the Cloud Spanner query optimizer to determine the most efficient way to execute the SQL query.
Answers
D.
Use granular instance sizing in Cloud Spanner and Autoscaler.
D.
Use granular instance sizing in Cloud Spanner and Autoscaler.
Answers
Suggested answer: D

Explanation:

Granular instance is available in Public Preview. With this feature, you can run workloads on Spanner at as low as 1/10th the cost of regular instances, https://cloud.google.com/blog/products/databases/get-more-out-of-spanner-with-granular-instance-sizing

You recently launched a new product to the US market. You currently have two Bigtable clusters in one US region to serve all the traffic. Your marketing team is planning an immediate expansion to APAC. You need to roll out the regional expansion while implementing high availability according to Google-recommended practices. What should you do?

A.
Maintain a target of 23% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone europe-west1-d cluster-c in zone asia-east1-b
A.
Maintain a target of 23% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone europe-west1-d cluster-c in zone asia-east1-b
Answers
B.
Maintain a target of 23% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone us-central1-b cluster-c in zone us-east1-a
B.
Maintain a target of 23% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone us-central1-b cluster-c in zone us-east1-a
Answers
C.
Maintain a target of 35% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone australia-southeast1-a cluster-c in zone europe-west1-d cluster-d in zone asia-east1-b
C.
Maintain a target of 35% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone australia-southeast1-a cluster-c in zone europe-west1-d cluster-d in zone asia-east1-b
Answers
D.
Maintain a target of 35% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone us-central2-a cluster-c in zone asia-northeast1-b cluster-d in zone asia-east1-b
D.
Maintain a target of 35% CPU utilization by locating: cluster-a in zone us-central1-a cluster-b in zone us-central2-a cluster-c in zone asia-northeast1-b cluster-d in zone asia-east1-b
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/bigtable/docs/replication-settings#regional-failover

Your ecommerce website captures user clickstream data to analyze customer traffic patterns in real time and support personalization features on your website. You plan to analyze this data using big data tools. You need a low-latency solution that can store 8 TB of data and can scale to millions of read and write requests per second. What should you do?

A.
Write your data into Bigtable and use Dataproc and the Apache Hbase libraries for analysis.
A.
Write your data into Bigtable and use Dataproc and the Apache Hbase libraries for analysis.
Answers
B.
Deploy a Cloud SQL environment with read replicas for improved performance. Use Datastream to export data to Cloud Storage and analyze with Dataproc and the Cloud Storage connector.
B.
Deploy a Cloud SQL environment with read replicas for improved performance. Use Datastream to export data to Cloud Storage and analyze with Dataproc and the Cloud Storage connector.
Answers
C.
Use Memorystore to handle your low-latency requirements and for real-time analytics.
C.
Use Memorystore to handle your low-latency requirements and for real-time analytics.
Answers
D.
Stream your data into BigQuery and use Dataproc and the BigQuery Storage API to analyze large volumes of data.
D.
Stream your data into BigQuery and use Dataproc and the BigQuery Storage API to analyze large volumes of data.
Answers
Suggested answer: A

Explanation:

Start with the lowest tier and smallest size and then grow your instance as needed. Memorystore provides automated scaling using APIs, and optimized node placement across zones for redundancy. Memorystore for Memcached can support clusters as large as 5 TB, enabling millions of QPS at very low latency

Your company uses Cloud Spanner for a mission-critical inventory management system that is globally available. You recently loaded stock keeping unit (SKU) and product catalog data from a company acquisition and observed hot-spots in the Cloud Spanner database. You want to follow Google-recommended schema design practices to avoid performance degradation. What should you do? (Choose two.)

A.
Use an auto-incrementing value as the primary key.
A.
Use an auto-incrementing value as the primary key.
Answers
B.
Normalize the data model.
B.
Normalize the data model.
Answers
C.
Promote low-cardinality attributes in multi-attribute primary keys.
C.
Promote low-cardinality attributes in multi-attribute primary keys.
Answers
D.
Promote high-cardinality attributes in multi-attribute primary keys.
D.
Promote high-cardinality attributes in multi-attribute primary keys.
Answers
E.
Use bit-reverse sequential value as the primary key.
E.
Use bit-reverse sequential value as the primary key.
Answers
Suggested answer: D, E

Explanation:

https://cloud.google.com/spanner/docs/schema-design D because high cardinality means you have more unique values in the collumn. That's a good thing for a hot-spotting issue. E because Spanner specifically has this feature to reduce hot spotting. Basically, it generates unique values https://cloud.google.com/spanner/docs/schema-design#bit_reverse_primary_key

D) Promote high-cardinality attributes in multi-attribute primary keys.

This is a correct answer because promoting high-cardinality attributes in multi-attribute primary keys can help avoid hotspots in Cloud Spanner.High-cardinality attributes are those that have many distinct values, such as UUIDs, email addresses, or timestamps1.By placing high-cardinality attributes first in the primary key, you can ensure that the rows are distributed more evenly across the key space, and avoid having too many requests sent to the same server2.

E) Use bit-reverse sequential value as the primary key.

This is a correct answer because using bit-reverse sequential value as the primary key can help avoid hotspots in Cloud Spanner.Bit-reverse sequential value is a technique that reverses the bits of a monotonically increasing value, such as a timestamp or an auto-incrementing ID1.By reversing the bits, you can create a pseudo-random value that spreads the writes across the key space, and avoid having all the inserts occurring at the end of the table2.

Total 132 questions
Go to page: of 14