Google Cloud Certified – Professional Cloud Database Engineer Practice Exam (Q 30)
Question 1
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.
- B. Stop all running queries, and re-create the replicas.
- C. Edit the primary instance to upgrade to a larger disk, and increase vCPU count.
- D. Edit the primary instance to add additional memory.
Correct Answer: B
Question 2
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
- B. roles/spanner.databaseAdmin for Person A roles/spanner.databaseReader for Person B roles/spanner.backupAdmin for Application C
- C. roles/spanner.databaseAdmin for Person A roles/spanner.databaseUser for Person B roles/spanner.databaseReader for Application C
- D. roles/spanner.databaseAdmin for Person A roles/spanner.databaseUser for Person B roles/spanner.backupWriter for Application C
Correct Answer: B
Question 3
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 SL. 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.
- 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.