Pass the Google Cloud Database Engineer Professional-Cloud-Database-Engineer Questions and answers with CertsForce

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

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?

Options:

A.

Use log messages produced by Cloud SQL.


B.

Use Query Insights for Cloud SQL.


C.

Use the Cloud Monitoring dashboard with available metrics from Cloud SQL.


D.

Use Cloud SQL instance monitoring in the Google Cloud Console.


Questions # 22:

You are setting up a new AlloyDB instance and want users to be able to use their existing identity and Access Managemen (IAM) identities to connect to AlloyDB. You have performed the following steps:

Manually enabled IAM authentication on the AlloyDB instance

Granted the allowdb-databaseUser and serviceusage.serviceusageConsumer IAM roles to the users

Created new AllowDB database users based on corresponding IAM identities

Users are able to connect but are reporting that they are not able to SELECT from application tables. What should you do?

Options:

A.

Grant the alloydb.client IAM role to each user.


B.

Grant the alloydb.viewer IAM role to each user.


C.

Grant the new database users access privileges to the appropriate tables.


D.

Grant the alloydb.alloydbreplica IAM role to each user.


Questions # 23:

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?

Options:

A.

Develop a custom data replication service to send data into BigQuery.


B.

Use Cloud SQL federated queries.


C.

Use Database Migration Service to replicate tables into BigQuery.


D.

Use Datastream to capture changes, and use Dataflow to write those changes to BigQuery.


Questions # 24:

You are developing a new application on a VM that is on your corporate network. The application will use Java Database Connectivity (JDBC) to connect to Cloud SQL for PostgreSQL. Your Cloud SQL instance is configured with IP address 192.168.3.48, and SSL is disabled. You want to ensure that your application can access your database instance without requiring configuration changes to your database. What should you do?

Options:

A.

Define a connection string using your Google username and password to point to the external (public) IP address of your Cloud SQL instance.


B.

Define a connection string using a database username and password to point to the internal (private) IP address of your Cloud SQL instance.


C.

Define a connection string using Cloud SQL Auth proxy configured with a service account to point to the internal (private) IP address of your Cloud SQL instance.


D.

Define a connection string using Cloud SQL Auth proxy configured with a service account to point to the external (public) IP address of your Cloud SQL instance.


Questions # 25:

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.)

Options:

A.

Use an auto-incrementing value as the primary key.


B.

Normalize the data model.


C.

Promote low-cardinality attributes in multi-attribute primary keys.


D.

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


E.

Use bit-reverse sequential value as the primary key.


Questions # 26:

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?

Options:

A.

Replicate Cloud SQL databases across different zones.


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.


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.


D.

Use features like customer-managed encryption keys (CMEK), VPC Service Controls, and Identity and Access Management (IAM) policies.


Questions # 27:

You are working on a new centralized inventory management system to track items available in 200 stores, which each have 500 GB of data. You are planning a gradual rollout of the system to a few stores each week. You need to design an SQL database architecture that minimizes costs and user disruption during each regional rollout and can scale up or down on nights and holidays. What should you do?

Options:

A.

Use Oracle Real Application Cluster (RAC) databases on Bare Metal Solution for Oracle.


B.

Use sharded Cloud SQL instances with one or more stores per database instance.


C.

Use a Biglable cluster with autoscaling.


D.

Use Cloud Spanner with a custom autoscaling solution.


Questions # 28:

Your company is evaluating Google Cloud database options for a mission-critical global payments gateway application. The application must be available 24/7 to users worldwide, horizontally scalable, and support open source databases. You need to select an automatically shardable, fully managed database with 99.999% availability and strong transactional consistency. What should you do?

Options:

A.

Select Bare Metal Solution for Oracle.


B.

Select Cloud SQL.


C.

Select Bigtable.


D.

Select Cloud Spanner.


Questions # 29:

You are deploying a Cloud SOL for MySQL database to serve a non-critical application. The database size is 10 GB and will be updated every night with data stored in a Cloud Storage bucket. The database serves read-only traffic from the application during the day. The data locally requirement of This application mandates that data must reside in a single region. You want to minimize the cost of running this database while maintaining an RTO of 1 day. What should you do?

Options:

A.

Create a Cloud SQL for MySQL instance with high availability (HA) enabled. Configure automated backups of the Cloud SQL instance and use the default backup location.


B.

Create a Cloud SQL for MySQL instance with high availability (HA) disabled. Create a read replica in the same zone.


C.

Create a Cloud SQL for MySQL instance with high availability (HA) disabled. Configure automated backups of the Cloud SQL instance and use a custom backup location to store backups in a Cloud Storage bucket in the same region.


D.

Create a Cloud SQL for MySQL instance with high availability (HA) disabled. Create a read replica in a second region.


Questions # 30:

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?

Options:

A.

Manually scale down the number of nodes after the peak period has passed.


B.

Use interleaving to co-locate parent and child rows.


C.

Use the Cloud Spanner query optimizer to determine the most efficient way to execute the SQL query.


D.

Use granular instance sizing in Cloud Spanner and Autoscaler.


Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions