Professional Cloud Database Engineer
Professional Cloud Database Engineer
Question #: 1
Q: 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?
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.
Answer: C
Question #: 2
Q: Your digital-native business runs its database workloads on Cloud SQL. Your website must be
globally accessible 24/7. You need to prepare your Cloud SQL instance for high availability (HA).
You want to follow Google-recommended practices. What should you do? (Choose two.)
Answer: D E
Question #: 3
Q: Your company wants to move to Google Cloud. Your current data center is closing in six
months. You are running a large, highly transactional Oracle application footprint on VMWare. You
need to design a solution with minimal disruption to the current architecture and provide ease of
migration to Google Cloud. What should you do?
Answer: A
Question #: 4
Q: Your customer has a global chat application that uses a multi-regional Cloud Spanner instance.
The application has recently experienced degraded performance after a new version of the
application was launched. Your customer asked you for assistance. During initial troubleshooting,
you observed high read latency. What should you do?
Answer: C
Question #: 5
Q: Your company has PostgreSQL databases on-premises and on Amazon Web Services (AWS).
You are planning multiple database migrations to Cloud SQL in an effort to reduce costs and
downtime. You want to follow Google-recommended practices and use Google native data
migration tools. You also want to closely monitor the migrations as part of the cutover strategy.
What should you do?
Answer: A
Question #: 6
Q: 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?
Answer: C
Question #: 7
Q: 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?
Answer: B
Question #: 8
Q: 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.
B. Deploy Cloud Spanner using a multi-region instance, and place your compute
resources close to the default leader region.
C. Build an in-memory cache in Memorystore, and deploy to the specific geographic regions
where your application resides.
D. Deploy a Bigtable instance with a cluster in one region and a replica cluster in another
geographic region.
Answer: B
Question #: 9
Q: You host an application in Google Cloud. The application is located in a single region and uses
Cloud SQL for transactional data. 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?
Answer: A
Question #: 10
Q: 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.
Answer: A
Question #: 11
Q: 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?
Answer: A
Question #: 12
Q: 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.
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.
Answer: D
Question #: 13
Q: 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?
Answer: D
Question #: 14
Q: 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.
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.
C. Use Memorystore to handle your low-latency requirements and for real-time analytics.
D. Stream your data into BigQuery and use Dataproc and the BigQuery Storage API to analyze
large volumes of data.
Answer: A
Question #: 15
Q: 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 hotspots in the Cloud Spanner database. You want to follow
Google-recommended schema design practices to avoid performance degradation. What should
you do? (Choose two.)
Answer: D E
Question #: 16
Q: 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?
Answer: B
Question #: 17
Q: 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.
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
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.
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.
Answer: C
Question #: 18
Q: 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.)
Question #: 19
Q: 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?
Answer: D
Question #: 20
Q: 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.
B. Use the mysqldump utility to take a backup of the existing on-premises database, and then
import it into Cloud SQL.
C. Create a Compute Engine VM, install MySQL on the VM, and then import the dump file.
D. Create an external replica, and use Cloud SQL to synchronize the data to the
replica.
Answer: D
Question #: 21
Q: Your team uses thousands of connected IoT devices to collect device maintenance data for
your oil and gas customers in real time. You want to design inspection routines, device repair, and
replacement schedules based on insights gathered from the data produced by these devices. You
need a managed solution that is highly scalable, supports a multi-cloud strategy, and offers low
latency for these IoT devices. What should you do?
Answer: D
Question #: 22
Q: Your application follows a microservices architecture and uses a single large Cloud SQL
instance, which is starting to have performance issues as your application grows. in the Cloud
Monitoring dashboard, the CPU utilization looks normal You want to follow Google-recommended
practices to resolve and prevent these performance issues while avoiding any major refactoring.
What should you do?
Answer: C
Question #: 23
Q: You need to perform a one-time migration of data from a running Cloud SQL for MySQL
instance in the us-central1 region to a new Cloud SQL for MySQL instance in the us-east1 region.
You want to follow Google-recommended practices to minimize performance impact on the
currently running instance. What should you do?
A. Create and run a Dataflow job that uses JdbcIO to copy data from one Cloud SQL instance to
another.
B. Create two Datastream connection profiles, and use them to create a stream from one
Cloud SQL instance to another.
C. Create a SQL dump file in Cloud Storage using a temporary instance, and then
use that file to import into a new instance.
D. Create a CSV file by running the SQL statement SELECT...INTO OUTFILE, copy the file to a
Cloud Storage bucket, and import it into a new instance.
Answer: C
Question #: 24
Q: You are running a mission-critical application on a Cloud SQL for PostgreSQL database with a
multi-zonal setup. The primary and read replica instances are in the same region but in different
zones. You need to ensure that you split the application load between both instances. What
should you do?
A. Use Cloud Load Balancing for load balancing between the Cloud SQL primary and read
replica instances.
B. Use PgBouncer to set up database connection pooling between the Cloud SQL
primary and read replica instances.
C. Use HTTP(S) Load Balancing for database connection pooling between the Cloud SQL
primary and read replica instances.
D. Use the Cloud SQL Auth proxy for database connection pooling between the Cloud SQL
primary and read replica instances.
Answer: B
Question #: 25
Q: Your organization deployed a new version of a critical application that uses Cloud SQL for
MySQL with high availability (HA) and binary logging enabled to store transactional information.
The latest release of the application had an error that caused massive data corruption in your
Cloud SQL for MySQL database. You need to minimize data loss. What should you do?
A. Open the Google Cloud Console, navigate to SQL > Backups, and select the last version of
the automated backup before the corruption.
B. Reload the Cloud SQL for MySQL database using the LOAD DATA command to load data
from CSV files that were used to initialize the instance.
C. Perform a point-in-time recovery of your Cloud SQL for MySQL database,
selecting a date and time before the data was corrupted.
D. Fail over to the Cloud SQL for MySQL HA instance. Use that instance to recover the
transactions that occurred before the corruption.
Answer: C
Question #: 26
Q: You plan to use Database Migration Service to migrate data from a PostgreSQL on-premises
instance to Cloud SQL. You need to identify the prerequisites for creating and automating the
task. What should you do? (Choose two.)
Answer: C E
Question #: 27
Q: You are using Compute Engine on Google Cloud and your data center to manage a set of
MySQL databases in a hybrid configuration. You need to create replicas to scale reads and to
offload part of the management operation. What should you do?
Answer: C
Question #: 28
Q: Your company is shutting down their data center and migrating several MySQL and PostgreSQL
databases to Google Cloud. Your database operations team is severely constrained by ongoing
production releases and the lack of capacity for additional on-premises backups. You want to
ensure that the scheduled migrations happen with minimal downtime and that the Google Cloud
databases stay in sync with the on-premises data changes until the applications can cut over.
What should you do? (Choose two.)
Question #: 29
Q: Your company is migrating the existing infrastructure for a highly transactional application to
Google Cloud. You have several databases in a MySQL database instance and need to decide how
to transfer the data to Cloud SQL. You need to minimize the downtime for the migration of your
500 GB instance. What should you do?
A. 1. Create a Cloud SQL for MySQL instance for your databases, and configure Datastream to
stream your database changes to Cloud SQL.
2. Select the Backfill historical data check box on your stream configuration to initiate
Datastream to backfill any data that is out of sync between the source and destination.
3. Delete your stream when all changes are moved to Cloud SQL for MySQL, and update your
application to use the new instance.
B. 1. Create migration job using Database Migration Service.
2. Set the migration job type to Continuous, and allow the databases to complete
the full dump phase and start sending data in change data capture (CDC) mode.
3. Wait for the replication delay to minimize, initiate a promotion of the new Cloud
SQL instance, and wait for the migration job to complete.
4. Update your application connections to the new instance.
C. 1. Create migration job using Database Migration Service.
2. Set the migration job type to One-time, and perform this migration during a maintenance
window.
3. Stop all write workloads to the source database and initiate the dump. Wait for the dump to
be loaded into the Cloud SQL destination database and the destination database to be
promoted to the primary database.
4. Update your application connections to the new instance.
D. 1. Use the mysqldump utility to manually initiate a backup of MySQL during the application
maintenance window.
2. Move the files to Cloud Storage, and import each database into your Cloud SQL instance.
3. Continue to dump each database until all the databases are migrated.
4. Update your application connections to the new instance.
Answer: B
Question #: 30
Q: Your company uses the Cloud SQL out-of-disk recommender to analyze the storage utilization
trends of production databases over the last 30 days. Your database operations team uses these
recommendations to proactively monitor storage utilization and implement corrective actions.
You receive a recommendation that the instance is likely to run out of disk space. What should
you do to address this storage alert?
Answer: C
Question #: 31
Q: You are managing a mission-critical Cloud SQL for PostgreSQL instance. Your application team
is running important transactions on the database when another DBA starts an on-demand
backup. You want to verify the status of the backup. What should you do?
Answer: B
Question #: 32
Q: You support a consumer inventory application that runs on a multi-region instance of Cloud
Spanner. A customer opened a support ticket to complain about slow response times. You notice
a Cloud Monitoring alert about high CPU utilization. You want to follow Google-recommended
practices to address the CPU performance issue. What should you do first?
Answer: A
Question #: 33
Q: Your company uses Bigtable for a user-facing application that displays a low-latency real-time
dashboard. You need to recommend the optimal storage type for this read-intensive database.
What should you do?
Answer: A
Question #: 34
Q: Your organization has a critical business app that is running with a Cloud SQL for MySQL
backend database. Your company wants to build the most fault-tolerant and highly available
solution possible. You need to ensure that the application database can survive a zonal and
regional failure with a primary region of us-central1 and the backup region of us-east1. What
should you do?
Answer: B
Question #: 35
Q: You are building an Android game that needs to store data on a Google Cloud serverless
database. The database will log user activity, store user preferences, and receive in-game
updates. The target audience resides in developing countries that have intermittent internet
connectivity. You need to ensure that the game can synchronize game data to the backend
database whenever an internet network is available. What should you do?
A. Use Firestore.
B. Use Cloud SQL with an external (public) IP address.
C. Use an in-app embedded database.
D. Use Cloud Spanner.
Answer: A
Question #: 36
Q: You released a popular mobile game and are using a 50 TB Cloud Spanner instance to store
game data in a PITR-enabled production environment. When you analyzed the game statistics,
you realized that some players are exploiting a loophole to gather more points to get on the
leaderboard. Another DBA accidentally ran an emergency bugfix script that corrupted some of the
data in the production environment. You need to determine the extent of the data corruption and
restore the production environment. What should you do? (Choose two.)
A. If the corruption is significant, use backup and restore, and specify a recovery
timestamp.
B. If the corruption is significant, perform a stale read and specify a recovery timestamp. Write
the results back.
C. If the corruption is significant, use import and export.
D. If the corruption is insignificant, use backup and restore, and specify a recovery timestamp.
E. If the corruption is insignificant, perform a stale read and specify a recovery
timestamp. Write the results back.
Answer: A E
Question #: 37
Q: You are starting a large CSV import into a Cloud SQL for MySQL instance that has many open
connections. You checked memory and CPU usage, and sufficient resources are available. You
want to follow Google-recommended practices to ensure that the import will not time out. What
should you do?
A. Close idle connections or restart the instance before beginning the import
operation.
B. Increase the amount of memory allocated to your instance.
C. Ensure that the service account has the Storage Admin role.
D. Increase the number of CPUs for the instance to ensure that it can handle the additional
import operation.
Answer: A
Question #: 38
Q: You are migrating your data center to Google Cloud. You plan to migrate your applications to
Compute Engine and your Oracle databases to Bare Metal Solution for Oracle. You must ensure
that the applications in different projects can communicate securely and efficiently with the
Oracle databases. What should you do?
A. Set up a Shared VPC, configure multiple service projects, and create firewall
rules.
B. Set up Serverless VPC Access.
C. Set up Private Service Connect.
D. Set up Traffic Director.
Answer: A
Question #: 39
Q: You are running an instance of Cloud Spanner as the backend of your ecommerce website. You
learn that the quality assurance (QA) team has doubled the number of their test cases. You need
to create a copy of your Cloud Spanner database in a new test environment to accommodate the
additional test cases. You want to follow Google-recommended practices. What should you do?
Answer: C
Question #: 40
Q: You need to redesign the architecture of an application that currently uses Cloud SQL for
PostgreSQL. The users of the application complain about slow query response times. You want to
enhance your application architecture to offer sub-millisecond query latency. What should you
do?
Answer: D
Question #: 41
Q: You need to migrate existing databases from Microsoft SQL Server 2016 Standard Edition on a
single Windows Server 2019 Datacenter Edition to a single Cloud SQL for SQL Server instance.
During the discovery phase of your project, you notice that your on-premises server peaks at
around 25,000 read IOPS. You need to ensure that your Cloud SQL instance is sized appropriately
to maximize read performance. What should you do?
A. Create a SQL Server 2019 Standard on Standard machine type with 4 vCPUs, 15 GB of RAM,
and 800 GB of solid-state drive (SSD).
B. Create a SQL Server 2019 Standard on High Memory machine type with at least 16 vCPUs,
104 GB of RAM, and 200 GB of SSD.
C. Create a SQL Server 2019 Standard on High Memory machine type with 16
vCPUs, 104 GB of RAM, and 4 TB of SSD.
D. Create a SQL Server 2019 Enterprise on High Memory machine type with 16 vCPUs, 104 GB
of RAM, and 500 GB of SSD.
Answer: C
Question #: 42
Q: You are managing a small Cloud SQL instance for developers to do testing. The instance is not
critical and has a recovery point objective (RPO) of several days. You want to minimize ongoing
costs for this instance. What should you do?
Answer: C
Question #: 43
Q: You manage a meeting booking application that uses Cloud SQL. During an important launch,
the Cloud SQL instance went through a maintenance event that resulted in a downtime of more
than 5 minutes and adversely affected your production application. You need to immediately
address the maintenance issue to prevent any unplanned events in the future. What should you
do?
Answer: A
Question #: 44
Q: You are designing a highly available (HA) Cloud SQL for PostgreSQL instance that will be used
by 100 databases. Each database contains 80 tables that were migrated from your on-premises
environment to Google Cloud. The applications that use these databases are located in multiple
regions in the US, and you need to ensure that read and write operations have low latency. What
should you do?
A. Deploy 2 Cloud SQL instances in the us-central1 region with HA enabled, and
create read replicas in us-east1 and us-west1.
B. Deploy 2 Cloud SQL instances in the us-central1 region, and create read replicas in us-east1
and us-west1.
C. Deploy 4 Cloud SQL instances in the us-central1 region with HA enabled, and create read
replicas in us-central1, us-east1, and us-west1.
D. Deploy 4 Cloud SQL instances in the us-central1 region, and create read replicas in us-
central1, us-east1 and us-west1.
Answer: A
Question #: 45
Q: You work in the logistics department. Your data analysis team needs daily extracts from Cloud
SQL for MySQL to train a machine learning model. The model will be used to optimize next-day
routes. You need to export the data in CSV format. You want to follow Google-recommended
practices. What should you do?
A. Use Cloud Scheduler to trigger a Cloud Function that will run a select * from table(s) query
to call the cloudsql.instances.export API.
B. Use Cloud Scheduler to trigger a Cloud Function through Pub/Sub to call the
cloudsql.instances.export API.
C. Use Cloud Composer to orchestrate an export by calling the cloudsql.instances.export API.
D. Use Cloud Composer to execute a select * from table(s) query and export results.
Answer: B
Question #: 46
Q: You are choosing a database backend for a new application. The application will ingest data
points from IoT sensors. You need to ensure that the application can scale up to millions of
requests per second with sub-10ms latency and store up to 100 TB of history. What should you
do?
Answer: D
Question #: 47
Q: You are designing a payments processing application on Google Cloud. The application must
continue to serve requests and avoid any user disruption if a regional failure occurs. You need to
use AES-256 to encrypt data in the database, and you want to control where you store the
encryption key. What should you do?
Answer: A
Question #: 48
Q: You are managing a Cloud SQL for MySQL environment in Google Cloud. You have deployed a
primary instance in Zone A and a read replica instance in Zone B, both in the same region. You
are notified that the replica instance in Zone B was unavailable for 10 minutes. You need to
ensure that the read replica instance is still working. What should you do?
A. Use the Google Cloud Console or gcloud CLI to manually create a new clone database.
B. Use the Google Cloud Console or gcloud CLI to manually create a new failover replica from
backup.
C. Verify that the new replica is created automatically.
D. Start the original primary instance and resume replication.
Answer: C
Question #: 49
Q: You are migrating an on-premises application to Google Cloud. The application requires a high
availability (HA) PostgreSQL database to support business-critical functions. Your company's
disaster recovery strategy requires a recovery time objective (RTO) and recovery point objective
(RPO) within 30 minutes of failure. You plan to use a Google Cloud managed service. What should
you do to maximize uptime for your application?
A. Deploy Cloud SQL for PostgreSQL in a regional configuration. Create a read replica in a
different zone in the same region and a read replica in another region for disaster recovery.
B. Deploy Cloud SQL for PostgreSQL in a regional configuration with HA enabled. Take periodic
backups, and use this backup to restore to a new Cloud SQL for PostgreSQL instance in
another region during a disaster recovery event.
C. Deploy Cloud SQL for PostgreSQL in a regional configuration with HA enabled.
Create a cross-region read replica, and promote the read replica as the primary
node for disaster recovery.
D. Migrate the PostgreSQL database to multi-regional Cloud Spanner so that a single region
outage will not affect your application. Update the schema to support Cloud Spanner data
types, and refactor the application.
Answer: C
Question #: 50
Q: Your team is running a Cloud SQL for MySQL instance with a 5 TB database that must be
available 24/7. You need to save database backups on object storage with minimal operational
overhead or risk to your production workloads. What should you do?
Answer: A
Question #: 51
Q: You are deploying a new Cloud SQL instance on Google Cloud using the Cloud SQL Auth proxy.
You have identified snippets of application code that need to access the new Cloud SQL instance.
The snippets reside and execute on an application server running on a Compute Engine machine.
You want to follow Google-recommended practices to set up Identity and Access Management
(IAM) as quickly and securely as possible. What should you do?
Answer: C
Question #: 52
Q: Your organization is running a low-latency reporting application on Microsoft SQL Server. In
addition to the database engine, you are using SQL Server Analysis Services (SSAS), SQL Server
Reporting Services (SSRS), and SQL Server Integration Services (SSIS) in your on-premises
environment. You want to migrate your Microsoft SQL Server database instances to Google Cloud.
You need to ensure minimal disruption to the existing architecture during migration. What should
you do?
Answer: C
Question #: 53
Q: An analytics team needs to read data out of Cloud SQL for SQL Server and update a table in
Cloud Spanner. You need to create a service account and grant least privilege access using
predefined roles. What roles should you assign to the service account?
Answer: A
Question #: 54
Q: You are responsible for designing a new database for an airline ticketing application in Google
Cloud. This application must be able to:
Work with transactions and offer strong consistency.
Work with structured and semi-structured (JSON) data.
Scale transparently to multiple regions globally as the operation grows.
You need a Google Cloud database that meets all the requirements of the application. What
should you do?
A. Use Cloud SQL for PostgreSQL with both cross-region read replicas.
B. Use Cloud Spanner in a multi-region configuration.
C. Use Firestore in Datastore mode.
D. Use a Bigtable instance with clusters in multiple regions.
Answer: B
Question #: 55
Q: You are writing an application that will run on Cloud Run and require a database running in the
Cloud SQL managed service. You want to secure this instance so that it only receives connections
from applications running in your VPC environment in Google Cloud. What should you do?
Answer: D
Question #: 56
Q: You are troubleshooting a connection issue with a newly deployed Cloud SQL instance on
Google Cloud. While investigating the Cloud SQL Proxy logs, you see the message Error 403:
Access Not Configured. What should you do?
Answer: C
Question #: 57
Q: 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?
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.
Answer: D
Question #: 58
Q: Your organization has strict policies on tracking rollouts to production and periodically shares
this information with external auditors to meet compliance requirements. You need to enable
auditing on several Cloud Spanner databases. What should you do?
Answer: C
Question #: 59
Q: Your organization has a production Cloud SQL for MySQL instance. Your instance is configured
with 16 vCPUs and 104 GB of RAM that is running between 90% and 100% CPU utilization for
most of the day. You need to scale up the database and add vCPUs with minimal interruption and
effort. What should you do?
A. Issue a gcloud sql instances patch command to increase the number of vCPUs.
B. Update a MySQL database flag to increase the number of vCPUs.
C. Issue a gcloud compute instances update command to increase the number of vCPUs.
D. Back up the database, create an instance with additional vCPUs, and restore the database.
Answer: A
Question #: 60
Q: You are configuring a brand new Cloud SQL for PostgreSQL database instance in Google Cloud.
Your application team wants you to deploy one primary instance, one standby instance, and one
read replica instance. You need to ensure that you are following Google-recommended practices
for high availability. What should you do?
A. Configure the primary instance in zone A, the standby instance in zone C, and the
read replica in zone B, all in the same region.
B. Configure the primary and standby instances in zone A and the read replica in zone B, all in
the same region.
C. Configure the primary instance in one region, the standby instance in a second region, and
the read replica in a third region.
D. Configure the primary, standby, and read replica instances in zone A, all in the same region.
Answer: A
Question #: 61
Q: You are running a transactional application on Cloud SQL for PostgreSQL in Google Cloud. The
database is running in a high availability configuration within one region. You have encountered
issues with data and want to restore to the last known pristine version of the database. What
should you do?
A. Create a clone database from a read replica database, and restore the clone in the same
region.
B. Create a clone database from a read replica database, and restore the clone into a different
zone.
C. Use the Cloud SQL point-in-time recovery (PITR) feature. Restore the copy from
two hours ago to a new database instance.
D. Use the Cloud SQL database import feature. Import last week's dump file from Cloud
Storage.
Answer: C
Question #: 62
Q: 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?
Answer: B
Question #: 63
Q: 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).
B. Edit the instance to change the storage type from HDD to SSD.
C. Create a high availability (HA) failover 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
Answer: A
Question #: 64
Q: 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?
Answer: C
Question #: 65
Q: 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?
Answer: A
Question #: 66
Q: You are designing a database architecture for a global application that stores information
about public parks worldwide. The application uses the database for read-only purposes, and a
centralized batch job updates the database nightly. You want to select an open source, SQL-
compliant database. What should you do?
Answer: C
Question #: 67
Q: Your company is migrating their MySQL database to Cloud SQL and cannot afford any planned
downtime during the month of December. The company is also concerned with cost, so you need
the most cost-effective solution. What should you do?
A. Open a support ticket in Google Cloud to prevent any maintenance in that MySQL instance
during the month of December.
B. Use Cloud SQL maintenance settings to prevent any maintenance during the
month of December.
C. Create MySQL read replicas in different zones so that, if any downtime occurs, the read
replicas will act as the primary instance during the month of December.
D. Create a MySQL regional instance so that, if any downtime occurs, the standby instance will
act as the primary instance during the month of December.
Answer: B
Question #: 68
Q: Your online delivery business that primarily serves retail customers uses Cloud SQL for MySQL
for its inventory and scheduling application. The required recovery time objective (RTO) and
recovery point objective (RPO) must be in minutes rather than hours as a part of your high
availability and disaster recovery design. You need a high availability configuration that can
recover without data loss during a zonal or a regional failure. What should you do?
Answer: A
Question #: 69
Q: Your hotel booking company is expanding into Country A, where personally identifiable
information (PII) must comply with regional data residency requirements and audits. You need to
isolate customer data in Country A from the rest of the customer data. You want to design a
multi-tenancy strategy to efficiently manage costs and operations. What should you do?
Answer: B
Question #: 70
Q: You work for a financial services company that wants to use fully managed database services.
Traffic volume for your consumer services products has increased annually at a constant rate with
occasional spikes around holidays. You frequently need to upgrade the capacity of your database.
You want to use Cloud Spanner and include an automated method to increase your hardware
capacity to support a higher level of concurrency. What should you do?
Answer: A
Question #: 71
Q: Your organization has a busy transactional Cloud SQL for MySQL instance. Your analytics team
needs access to the data so they can build monthly sales reports. You need to provide data
access to the analytics team without adversely affecting performance. What should you do?
A. Create a read replica of the database, provide the database IP address, username, and
password to the analytics team, and grant read access to required tables to the team.
B. Create a read replica of the database, enable the cloudsql.iam_authentication
flag on the replica, and grant read access to required tables to the analytics team.
C. Enable the cloudsql.iam_authentication flag on the primary database instance, and grant
read access to required tables to the analytics team.
D. Provide the database IP address, username, and password of the primary database instance
to the analytics, team, and grant read access to required tables to the team.
Answer: B
Question #: 72
Q: Your organization stores marketing data such as customer preferences and purchase history
on Bigtable. The consumers of this database are predominantly data analysts and operations
users. You receive a service ticket from the database operations department citing poor database
performance between 9 AM-10 AM every day. The application team has confirmed no latency
from their logs. A new cohort of pilot users that is testing a dataset loaded from a third-party data
provider is experiencing poor database performance. Other users are not affected. You need to
troubleshoot the issue. What should you do?
A. Isolate the data analysts and operations user groups to use different Bigtable instances.
B. Check the Cloud Monitoring table/bytes_used metric from Bigtable.
C. Use Key Visualizer for Bigtable.
D. Add more nodes to the Bigtable cluster.
Answer: C
Question #: 73
Q: Your company is developing a new global transactional application that must be ACID-
compliant and have 99.999% availability. You are responsible for selecting the appropriate
Google Cloud database to serve as a datastore for this new application. What should you do?
A. Use Firestore.
B. Use Cloud Spanner.
C. Use Cloud SQL.
D. Use Bigtable.
Answer: B
Question #: 74
Q: You want to migrate your PostgreSQL database from another cloud provider to Cloud SQL. You
plan on using Database Migration Service and need to assess the impact of any known
limitations. What should you do? (Choose two.)
Answer: B E
Question #: 75
Q: Your organization is running a Firestore-backed Firebase app that serves the same top ten
news stories on a daily basis to a large global audience. You want to optimize content delivery
while decreasing cost and latency. What should you do?
A. Enable serializable isolation in the Firebase app.
B. Deploy a US multi-region Firestore location.
C. Build a Firestore bundle, and deploy bundles to Cloud CDN.
D. Create a Firestore index on the news story date.
Answer: C
Question #: 76
Q: 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.
B. Use Migrate for Compute Engine to complete the migration.
C. Use Datastream to complete the migration.
D. Use Database Migration Service to complete the migration.
Answer: D
Question #: 77
Q: 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.
B. Change the storage tier of the automated backups from solid-state drive (SSD) to hard disk
drive (HDD).
C. Select a different region to store your backups.
D. Reduce the number of automated backups that are retained to two (2).
Answer: D
Question #: 78
Q: 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?
Answer: D
Question #: 79
Q: 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.
B. Use Cloud Spanner in a multi-region configuration.
C. Use Cloud SQL with cross-region replicas.
D. Use highly available Cloud SQL with multiple zones.
Answer: A
Question #: 80
Q: 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?
Answer: D
Question #: 81
Q: Your company wants you to migrate their Oracle, MySQL, Microsoft SQL Server, and
PostgreSQL relational databases to Google Cloud. You need a fully managed, flexible database
solution when possible. What should you do?
Answer: D
Question #: 82
Q: You are managing a Cloud SQL for PostgreSQL instance in Google Cloud. You need to test the
high availability of your Cloud SQL instance by performing a failover. You want to use the cloud
command. What should you do?
Answer: A
Question #: 83
Q: You use Python scripts to generate weekly SQL reports to assess the state of your databases
and determine whether you need to reorganize tables or run statistics. You want to automate this
report but need to minimize operational costs and overhead. What should you do?
Answer: C
Question #: 84
Q: 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?
Answer: D
Question #: 85
Q: You are designing a physician portal app in Node.js. This application will be used in hospitals
and clinics that might have intermittent internet connectivity. If a connectivity failure occurs, the
app should be able to query the cached data. You need to ensure that the application has
scalability, strong consistency, and multi-region replication. What should you do?
A. Use Firestore and ensure that the PersistenceEnabled option is set to true.
B. Use Memorystore for Memcached.
C. Use Pub/Sub to synchronize the changes from the application to Cloud Spanner.
D. Use Table.read with the exactStaleness option to perform a read of rows in Cloud Spanner.
Answer: A
Question #: 86
Q: You manage a production MySQL database running on Cloud SQL at a retail company. You
perform routine maintenance on Sunday at midnight when traffic is slow, but you want to skip
routine maintenance during the year-end holiday shopping season. You need to ensure that your
production system is available 24/7 during the holidays. What should you do?
Answer: A
Question #: 87
Q: You want to migrate an on-premises 100 TB Microsoft SQL Server database to Google Cloud
over a 1 Gbps network link. You have 48 hours allowed downtime to migrate this database. What
should you do? (Choose two.)
Answer: A C
Question #: 88
Q: You need to provision several hundred Cloud SQL for MySQL instances for multiple project
teams over a one-week period. You must ensure that all instances adhere to company standards
such as instance naming conventions, database flags, and tags. What should you do?
Answer: B
Question #: 89
Q: Your organization is migrating 50 TB Oracle databases to Bare Metal Solution for Oracle.
Database backups must be available for quick restore. You also need to have backups available
for 5 years. You need to design a cost-effective architecture that meets a recovery time objective
(RTO) of 2 hours and recovery point objective (RPO) of 15 minutes. What should you do?
A. 1 Create the database on a Bare Metal Solution server with the database running on flash
storage.
2. Keep a local backup copy on all flash storage.
3. Keep backups older than one day stored in Actifio OnVault storage.
B. 1 Create the database on a Bare Metal Solution server with the database running on flash
storage.
2. Keep a local backup copy on standard storage.
3. Keep backups older than one day stored in Actifio OnVault storage.
C. 1. Create the database on a Bare Metal Solution server with the database running on flash
storage.
2. Keep a local backup copy on standard storage.
3. Use the Oracle Recovery Manager (RMAN) backup utility to move backups older than one
day to a Coldline Storage bucket.
D. 1. Create the database on a Bare Metal Solution server with the database
running on flash storage.
2. Keep a local backup copy on all flash storage.
3. Use the Oracle Recovery Manager (RMAN) backup utility to move backups older
than one day to an Archive Storage bucket.
Answer: D
Question #: 90
Q: You are a DBA on a Cloud Spanner instance with multiple databases. You need to assign these
privileges to all members of the application development team on a specific database:
A. Assign the Cloud Spanner Database Reader and Cloud Spanner Backup Writer roles.
B. Assign the Cloud Spanner Database Admin role.
C. Assign the Cloud Spanner Database User role.
D. Assign the Cloud Spanner Admin role.
Answer: C
Question #: 91
Q: Your project is using Bigtable to store data that should not be accessed from the public
internet under any circumstances, even if the requestor has a valid service account key. You
need to secure access to this data. What should you do?
A. Use Identity and Access Management (IAM) for Bigtable access control.
B. Use VPC Service Controls to create a trusted network for the Bigtable service.
C. Use customer-managed encryption keys (CMEK).
D. Use Google Cloud Armor to add IP addresses to an allowlist.
Answer: B
Question #: 92
Q: Your organization has a ticketing system that needs an online marketing analytics and
reporting application. You need to select a relational database that can manage hundreds of
terabytes of data to support this new application. Which database should you use?
A. Cloud SQL
B. BigQuery
C. Cloud Spanner
D. Bigtable
Answer: B
Question #: 93
Q: You are designing for a write-heavy application. During testing, you discover that the write
workloads are performant in a regional Cloud Spanner instance but slow down by an order of
magnitude in a multi-regional instance. You want to make the write workloads faster in a multi-
regional instance. What should you do?
A. Place the bulk of the read and write workloads closer to the default leader
region.
B. Use staleness of at least 15 seconds.
C. Add more read-write replicas.
D. Keep the total CPU utilization under 45% in each region.
Answer: A
Question #: 94
Q: Your company wants to migrate an Oracle-based application to Google Cloud. The application
team currently uses Oracle Recovery Manager (RMAN) to back up the database to tape for long-
term retention (LTR). You need a cost-effective backup and restore solution that meets a 2-hour
recovery time objective (RTO) and a 15-minute recovery point objective (RPO). What should you
do?
A. Migrate the Oracle databases to Bare Metal Solution for Oracle, and store backups on tapes
on-premises.
B. Migrate the Oracle databases to Bare Metal Solution for Oracle, and use Actifio
to store backup files on Cloud Storage using the Nearline Storage class.
C. Migrate the Oracle databases to Bare Metal Solution for Oracle, and back up the Oracle
databases to Cloud Storage using the Standard Storage class.
D. Migrate the Oracle databases to Compute Engine, and store backups on tapes on-premises.
Answer: B
Question #: 95
Q: You are migrating a telehealth care company's on-premises data center to Google Cloud. The
migration plan specifies:
PostgreSQL databases must be migrated to a multi-region backup configuration with cross-region
replicas to allow restore and failover in multiple scenarios.
MySQL databases handle personally identifiable information (PII) and require data residency
compliance at the regional level.
You want to set up the environment with minimal administrative effort. What should you do?
A. Set up Cloud Logging and Cloud Monitoring with Cloud Functions to send an alert every time
a new database instance is created, and manually validate the region.
B. Set up different organizations for each database type, and apply policy constraints at the
organization level.
C. Set up Pub/Sub to ingest data from Cloud Logging, send an alert every time a new database
instance is created, and manually validate the region.
D. Set up different projects for PostgreSQL and MySQL databases, and apply
organizational policy constraints at a project level.
Answer: D
Question #: 96
Q: You have a Cloud SQL instance (DB-1) with two cross-region read replicas (DB-2 and DB-3).
During a business continuity test, the primary instance (DB-1) was taken offline and a replica (DB-
2) was promoted. The test has concluded and you want to return to the pre-test configuration.
What should you do?
A. Bring DB-1 back online.
B. Delete DB-1, and re-create DB-1 as a read replica in the same region as DB-1.
C. Delete DB-2 so that DB-1 automatically reverts to the primary instance.
D. Create DB-4 as a read replica in the same region as DB-1, and promote DB-4 to
primary.
Answer: D
Question #: 97
Q: Your team is building a new inventory management application that will require read and write
database instances in multiple Google Cloud regions around the globe. Your database solution
requires 99.99% availability and global transactional consistency. You need a fully managed
backend relational database to store inventory changes. What should you do?
A. Use Bigtable.
B. Use Firestore.
C. Use Cloud SQL for MySQL
D. Use Cloud Spanner.
Answer: D
Question #: 98
Q: You are the database administrator of a Cloud SQL for PostgreSQL instance that has pgaudit
disabled. Users are complaining that their queries are taking longer to execute and performance
has degraded over the past few months. You need to collect and analyze query performance data
to help identity slow-running queries. What should you do?
Answer: D
Question #: 99
Q: You are configuring a brand new PostgreSQL database instance in Cloud SQL. Your application
team wants to have an optimal and highly available environment with automatic failover to avoid
any unplanned outage. What should you do?
A. Create one regional Cloud SQL instance with a read replica in another region.
B. Create one regional Cloud SQL instance in one zone with a standby instance in
another zone in the same region.
C. Create two read-write Cloud SQL instances in two different zones with a standby instance in
another region.
D. Create two read-write Cloud SQL instances in two different regions with a standby instance
in another zone.
Answer: B
Question #: 100
Q: During an internal audit, you realized that one of your Cloud SQL for MySQL instances does not
have high availability (HA) enabled. You want to follow Google-recommended practices to enable
HA on your existing instance. What should you do?
A. Create a new Cloud SQL for MySQL instance, enable HA, and use the export and import
option to migrate your data.
B. Create a new Cloud SQL for MySQL instance, enable HA, and use Cloud Data Fusion to
migrate your data.
C. Use the gcloud instances patch command to update your existing Cloud SQL for
MySQL instance.
D. Shut down your existing Cloud SQL for MySQL instance, and enable HA.
Answer: C
Question #: 101
Q: You are managing a set of Cloud SQL databases in Google Cloud. Regulations require that
database backups reside in the region where the database is created. You want to minimize
operational costs and administrative effort. What should you do?
Answer: A
Question #: 102
Q: Your ecommerce application connecting to your Cloud SQL for SQL Server is expected to have
additional traffic due to the holiday weekend. You want to follow Google-recommended practices
to set up alerts for CPU and memory metrics so you can be notified by text message at the first
sign of potential issues. What should you do?
A. Use a Cloud Function to pull CPU and memory metrics from your Cloud SQL instance and to
call a custom service to send alerts.
B. Use Error Reporting to monitor CPU and memory metrics and to configure SMS notification
channels.
C. Use Cloud Logging to set up a log sink for CPU and memory metrics and to configure a sink
destination to send a message to Pub/Sub.
D. Use Cloud Monitoring to set up an alerting policy for CPU and memory metrics
and to configure SMS notification channels.
Answer: D
Question #: 103
Q: You finished migrating an on-premises MySQL database to Cloud SQL. You want to ensure that
the daily export of a table, which was previously a cron job running on the database server,
continues. You want the solution to minimize cost and operations overhead. What should you do?
A. Use Cloud Scheduler and Cloud Functions to run the daily export.
B. Create a streaming Datatlow job to export the table.
C. Set up Cloud Composer, and create a task to export the table daily.
D. Run the cron job on a Compute Engine instance to continue the export.
Answer: A
Question #: 104
Q: Your organization needs to migrate a critical, on-premises MySQL database to Cloud SQL for
MySQL. The on-premises database is on a version of MySQL that is supported by Cloud SQL and
uses the InnoDB storage engine. You need to migrate the database while preserving transactions
and minimizing downtime. What should you do?
Answer: A
Question #: 105
Q: Your company is developing a global ecommerce website on Google Cloud. Your development
team is working on a shopping cart service that is durable and elastically scalable with live traffic.
Business disruptions from unplanned downtime are expected to be less than 5 minutes per
month. In addition, the application needs to have very low latency writes. You need a data
storage solution that has high write throughput and provides 99.99% uptime. What should you
do?
Answer: B
Question #: 106
Q: Your organization has hundreds of Cloud SQL for MySQL instances. You want to follow Google-
recommended practices to optimize platform costs. What should you do?
Answer: C
Question #: 107
Q: Your organization is running a critical production database on a virtual machine (VM) on
Compute Engine. The VM has an ext4-formatted persistent disk for data files. The database will
soon run out of storage space. You need to implement a solution that avoids downtime. What
should you do?
A. In the Google Cloud Console, increase the size of the persistent disk, and use the
resize2fs command to extend the disk.
B. In the Google Cloud Console, increase the size of the persistent disk, and use the fdisk
command to verify that the new space is ready to use
C. In the Google Cloud Console, create a snapshot of the persistent disk, restore the snapshot
to a new larger disk, unmount the old disk, mount the new disk, and restart the database
service.
D. In the Google Cloud Console, create a new persistent disk attached to the VM, and
configure the database service to move the files to the new disk.
Answer: A
Question #: 108
Q: You want to migrate your on-premises PostgreSQL database to Compute Engine. You need to
migrate this database with the minimum downtime possible. What should you do?
A. Perform a full backup of your on-premises PostgreSQL, and then, in the migration window,
perform an incremental backup.
B. Create a read replica on Cloud SQL, and then promote it to a read/write standalone
instance.
C. Use Database Migration Service to migrate your database.
D. Create a hot standby on Compute Engine, and use PgBouncer to switch over the
connections.
Answer: D
Question #: 109
Q: You have an application that sends banking events to Bigtable cluster-a in us-east. You decide
to add cluster-b in us-central1. Cluster-a replicates data to cluster-b. You need to ensure that
Bigtable continues to accept read and write requests if one of the clusters becomes unavailable
and that requests are routed automatically to the other cluster. What deployment strategy should
you use?
Answer: C
Question #: 110
Q: Your organization works with sensitive data that requires you to manage your own encryption
keys. You are working on a project that stores that data in a Cloud SQL database. You need to
ensure that stored data is encrypted with your keys. What should you do?
Answer: D
Question #: 111
Q: Your team is building an application that stores and analyzes streaming time series financial
data. You need a database solution that can perform time series-based scans with sub-second
latency. The solution must scale into the hundreds of terabytes and be able to write up to 10k
records per second and read up to 200 MB per second. What should you do?
A. Use Firestore.
B. Use Bigtable
C. Use BigQuery.
D. Use Cloud Spanner.
Answer: B
Question #: 112
Q: You are designing a new gaming application that uses a highly transactional relational
database to store player authentication and inventory data in Google Cloud. You want to launch
the game in multiple regions. What should you do?
Answer: A
Question #: 113
Q: You are designing a database strategy for a new web application in one region. You need to
minimize write latency. What should you do?
Question #: 114
Q: You are running a large, highly transactional application on Oracle Real Application Cluster
(RAC) that is multi-tenant and uses shared storage. You need a solution that ensures high-
performance throughput and a low-latency connection between applications and databases. The
solution must also support existing Oracle features and provide ease of migration to Google
Cloud. What should you do?
Answer: B
Question #: 115
Q: You are choosing a new database backend for an existing application. The current database is
running PostgreSQL on an on-premises VM and is managed by a database administrator and
operations team. The application data is relational and has light traffic. You want to minimize
costs and the migration effort for this application. What should you do?
Answer: B
Question #: 116
Q: Your organization is currently updating an existing corporate application that is running in
another public cloud to access managed database services in Google Cloud. The application will
remain in the other public cloud while the database is migrated to Google Cloud. You want to
follow Google-recommended practices for authentication. You need to minimize user disruption
during the migration. What should you do?
Answer: A
Question #: 117
Q: You are configuring the networking of a Cloud SQL instance. The only application that connects
to this database resides on a Compute Engine VM in the same project as the Cloud SQL instance.
The VM and the Cloud SQL instance both use the same VPC network, and both have an external
(public) IP address and an internal (private) IP address. You want to improve network security.
What should you do?
Answer: D
Question #: 118
Q: You are managing two different applications: Order Management and Sales Reporting. Both
applications interact with the same Cloud SQL for MySQL database. The Order Management
application reads and writes to the database 24/7, but the Sales Reporting application is read-
only. Both applications need the latest data. You need to ensure that the Performance of the
Order Management application is not affected by the Sales Reporting application. What should
you do?
Answer: A
Question #: 119
Q: You are the DBA of an online tutoring application that runs on a Cloud SQL for PostgreSQL
database. You are testing the implementation of the cross-regional failover configuration. The
database in region R1 fails over successfully to region R2, and the database becomes available
for the application to process data. During testing, certain scenarios of the application work as
expected in region R2, but a few scenarios fail with database errors. The application-related
database queries, when executed in isolation from Cloud SQL for PostgreSQL in region R2, work
as expected. The application performs completely as expected when the database fails back to
region R1. You need to identify the cause of the database errors in region R2. What should you
do?
A. Determine whether the versions of Cloud SQL for PostgreSQL in regions R1 and R2 are
different.
B. Determine whether the database patches of Cloud SQI for PostgreSQL in regions R1 and R2
are different.
C. Determine whether the failover of Cloud SQL for PostgreSQL from region R1 to region R2 is
in progress or has completed successfully.
D. Determine whether Cloud SQL for PostgreSQL in region R2 is a near-real-time
copy of region R1 but not an exact copy.
Answer: D
Question #: 120
Q: Your company wants to migrate its MySQL, PostgreSQL, and Microsoft SQL Server on-premises
databases to Google Cloud. You need a solution that provides near-zero downtime, requires no
application changes, and supports change data capture (CDC). What should you do?
A. Use the native export and import functionality of the source database.
B. Create a database on Google Cloud, and use database links to perform the migration.
C. Create a database on Google Cloud, and use Dataflow for database migration.
D. Use Database Migration Service.
Answer: D
Question #: 121
Q: 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.
B. Restore the Cloud SQL instance from the automatic backups in another zone in region 1.
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.
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 .
Answer: C
Question #: 122
Q: 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?
Answer: C
Question #: 123
Q: 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?
Answer: D
Question #: 124
Q: 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?
Answer: D
Question #: 125
Q: You are a DBA of Cloud SQL for PostgreSQL. You want the applications to have password-less
authentication for read and write access to the database. Which authentication mechanism
should you use?
Answer: A
Question #: 126
Q: You are migrating your 2 TB on-premises PostgreSQL cluster to Compute Engine. You want to
set up your new environment in an Ubuntu virtual machine instance in Google Cloud and seed the
data to a new instance. You need to plan your database migration to ensure minimum downtime.
What should you do?
Answer: C
Question #: 127
Q: You have deployed a Cloud SQL for SQL Server instance. In addition, you created a cross-
region read replica for disaster recovery (DR) purposes. Your company requires you to maintain
and monitor a recovery point objective (RPO) of less than 5 minutes. You need to verify that your
cross-region read replica meets the allowed RPO. What should you do?
Answer: D
Question #: 128
Q: 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.
B. Build a change data capture (CDC) pipeline to read transactions from the primary instance,
and replicate them to a secondary instance.
C. Create a read replica in another region, and promote the read replica if a failure occurs.
D. Enable high availability (HA) for the database to make it regional.
Answer: D
Question #: 129
Q: 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.
B. Create a Shared VPC that both the application VMs and Cloud SQL instances will
use.
C. Use the default networks, and leverage Cloud VPN to connect the two together.
D. Place both the application VMs and the Cloud SQL instances in the default network of each
project.
Answer: B
Question #: 130
Q: Your DevOps team is using Terraform to deploy applications and Cloud SQL databases. After
every new application change is rolled out, the environment is torn down and recreated, and the
persistent database layer is lost. You need to prevent the database from being dropped. What
should you do?
Answer: A
Question #: 131
Q: Your company's mission-critical, globally available application is supported by a Cloud Spanner
database. Experienced users of the application have read and write access to the database, but
new users are assigned read-only access to the database. You need to assign the appropriate
Cloud Spanner Identity and Access Management (IAM) role to new users being onboarded soon.
What roles should you set up?
A. roles/spanner.databaseReader
B. roles/spanner.databaseUser
C. roles/spanner.viewer
D. roles/spanner.backupWriter
Answer: A
Question #: 132
Q: Your company is shutting down their data center and migrating several MySQL and PostgreSQL
databases to Google Cloud. Your database operations team is severely constrained by ongoing
production releases and the lack of capacity for additional on-premises backups. You want to
ensure that the scheduled migrations happen with minimal downtime and that the Google Cloud
databases stay in sync with the on-premises data changes until the applications can cut over.
Answer: C E