CCNA Pcd Migrate Data Questions

75 of 100 questions · Page 1/2 · Pcd Migrate Data topic · Answers revealed

1
MCQhard

An enterprise is migrating a 10 TB Teradata data warehouse to BigQuery with minimal downtime. They need to transform Teradata BTEQ scripts to equivalent BigQuery SQL. Which approach should the migration team take to handle the SQL dialect differences?

A.Use BigQuery Data Transfer Service for Teradata to automate the migration
B.Use gcloud bigquery command-line tool
C.Use Database Migration Service with Teradata connector
D.Use Cloud Data Fusion to transform BTEQ scripts
AnswerA

DTS for Teradata transfers data and schema, but BTEQ scripts need manual conversion.

Why this answer

BigQuery Data Transfer Service for Teradata is the recommended service for migrating Teradata data to BigQuery. It handles schema and data transfer, but SQL scripts like BTEQ must be manually converted to BigQuery SQL as they are not automatically transformed.

2
MCQmedium

An organization is migrating a MySQL 5.7 database to Cloud SQL for MySQL 8.0. They have many tables using MyISAM engine and want to ensure compatibility. What is the correct approach for handling MyISAM tables?

A.Migrate as-is and change engine after migration using mysqldump with --skip-create-options.
B.Use Database Migration Service which automatically converts MyISAM to InnoDB during migration.
C.Keep MyISAM as is; Cloud SQL fully supports MyISAM in MySQL 8.0.
D.Convert MyISAM tables to InnoDB using ALTER TABLE ENGINE=InnoDB before migration.
AnswerD

Converting to InnoDB ensures transactional integrity and better performance on Cloud SQL.

Why this answer

Cloud SQL for MySQL 8.0 supports InnoDB as the default engine. MyISAM tables are not recommended because they lack transaction support and row-level locking. The best practice is to convert MyISAM tables to InnoDB using ALTER TABLE ...

ENGINE=InnoDB before or after migration.

3
MCQhard

During a live migration from MySQL to Cloud SQL using DMS, the migration job enters a 'failed' state after the full dump. The error log indicates 'Binlog position out of bounds'. What is the most likely cause?

A.The Cloud SQL instance is not using InnoDB engine.
B.The source MySQL binary log retention period is too short.
C.The DMS job is configured for one-time migration instead of continuous.
D.The source database has GTID mode disabled.
AnswerB

Binary logs must be retained long enough for CDC to catch up; if purged, DMS cannot find the binlog position.

Why this answer

DMS CDC requires that binary logs on the source are retained from the point of the full dump until cutover. If the binary logs are purged (e.g., by expiring logs or manual cleanup), the CDC phase cannot continue.

4
Multi-Selectmedium

A team is migrating a MySQL database to Cloud SQL for MySQL. They want to test the migration with a dual-write strategy before cutting over to the new database. Which TWO steps should they take?

Select 2 answers
A.Delete the source database after the first successful write.
B.Direct all reads to Cloud SQL to validate performance.
C.Configure the application to write to both the source and target databases simultaneously.
D.Use Database Migration Service to set up continuous replication.
E.Run comparison queries to verify data consistency between source and target.
AnswersC, E

This is the essence of dual-write: each write operation is performed on both databases.

Why this answer

Shadow writes (dual-write) involve writing to both databases and comparing results. Comparison queries and load testing are validation techniques.

5
MCQhard

A company is migrating a MySQL 5.7 database to Cloud SQL for MySQL 8.0. Their application uses utf8 charset and GROUP BY with nonstandard behavior (e.g., missing expressions in SELECT list). After migration, they notice queries that previously ran now fail. What is the most likely cause?

A.The caching_sha2_password plugin changed authentication.
B.JSON data type behavior changed in MySQL 8.0.
C.ONLY_FULL_GROUP_BY SQL mode is enabled by default in MySQL 8.0.
D.The utf8 charset is not supported in MySQL 8.0.
AnswerC

This causes queries with GROUP BY that don't include all non-aggregated columns in SELECT to fail.

Why this answer

MySQL 5.7 allowed GROUP BY with columns not in the SELECT list by default (ONLY_FULL_GROUP_BY was off), but MySQL 8.0 enables it by default. This change can cause queries to fail if they rely on the old behavior.

6
Multi-Selectmedium

A company is migrating a 1 TB MySQL database to Cloud SQL for MySQL 8.0. The source uses the utf8 charset and MyISAM tables. They need to minimize downtime. Which TWO actions should the team take?

Select 2 answers
A.Convert MyISAM tables to InnoDB.
B.Use Database Migration Service with a one-time migration job.
C.Change the charset from utf8 to utf8mb4.
D.Migrate using mysqldump and mysql import.
E.Enable binary logging on the source MySQL database.
AnswersA, C

Cloud SQL requires InnoDB; MyISAM tables must be converted before migration.

Why this answer

MyISAM must be converted to InnoDB before migration. utf8 must be changed to utf8mb4 to support full Unicode. DMS continuous migration minimizes downtime.

7
Multi-Selecthard

A company is migrating from MySQL 5.7 to Cloud SQL for MySQL 8.0. They have a mix of MyISAM and InnoDB tables, and their application uses utf8 charset. They want to minimize changes to the application code. Which THREE changes should they make during migration? (Choose 3 options.)

Select 3 answers
A.Convert all MyISAM tables to InnoDB.
B.Keep utf8 charset to avoid application code changes.
C.Keep the default authentication plugin as caching_sha2_password.
D.Change the charset from utf8 to utf8mb4.
E.Change the default authentication plugin to mysql_native_password if the application uses an older client.
AnswersA, D, E

MyISAM is deprecated; InnoDB is required for transactional integrity and replication.

Why this answer

MySQL 8.0 changes default authentication to caching_sha2_password, which may break application connections if the client driver does not support it. MyISAM tables should be converted to InnoDB for reliability and features like foreign keys. utf8 charset should be changed to utf8mb4 to avoid truncation of 4-byte characters. The caching_sha2_password plugin is default; if the app uses older connectors, they may need to set the default to mysql_native_password or update the connector.

8
MCQeasy

An organization is migrating an on-premises PostgreSQL database to Cloud SQL. They want to minimize downtime during the cutover. Which Google Cloud service should they use to perform an online migration with near-zero downtime?

A.BigQuery Data Transfer Service
B.Cloud Dataflow
C.Transfer Appliance
D.Database Migration Service
AnswerD

DMS provides continuous migration with CDC, enabling near-zero-downtime cutover.

Why this answer

Database Migration Service (DMS) supports continuous migration jobs that perform a full dump, then CDC (change data capture), allowing for near-zero-downtime cutover by promoting the Cloud SQL replica.

9
Multi-Selecthard

A company is migrating a 2 TB Snowflake data warehouse to BigQuery. The migration must be completed within a month with no downtime. Which THREE actions should the team take?

Select 3 answers
A.Use a one-time full dump and import to avoid complexity.
B.Use BigQuery Data Transfer Service to connect directly to Snowflake.
C.Export data from Snowflake to Cloud Storage in Parquet format.
D.Load data from Cloud Storage into BigQuery using batch load jobs.
E.Convert Snowflake SQL to BigQuery SQL for all queries and views.
AnswersC, D, E

Data is exported from Snowflake to Cloud Storage (e.g., via Snowflake's COPY INTO command).

Why this answer

Option C is correct because exporting Snowflake data to Cloud Storage in Parquet format is an efficient, columnar format that reduces storage costs and speeds up loading into BigQuery. Parquet is natively supported by BigQuery and allows for schema inference, making the migration process seamless. This approach also supports incremental updates if needed, avoiding downtime by keeping the source operational during the export.

Exam trap

Cisco often tests the misconception that BigQuery Data Transfer Service can connect to any database, but it only supports specific Google and third-party sources, not Snowflake; candidates may also mistakenly think a full dump is simpler, ignoring the no-downtime constraint.

10
MCQhard

During a continuous migration job from on-premises MySQL to Cloud SQL, the engineer notices that the migration job fails after the full dump phase with an error about character set mismatch. The source uses utf8 charset, but Cloud SQL defaults to utf8mb4. What is the best action to resolve this?

A.Ignore the error and promote the replica
B.Change Cloud SQL instance charset to utf8
C.Change the source database charset to utf8mb4
D.Use a one-time migration instead
AnswerC

Converting source to utf8mb4 ensures compatibility with Cloud SQL default.

Why this answer

The source charset 'utf8' in MySQL is actually utf8mb3 (3-byte UTF-8). Cloud SQL MySQL 8.0 defaults to utf8mb4. To avoid data loss, the source tables should be converted to utf8mb4 before migration, or the target must be configured to accept utf8mb3 if compatible.

11
MCQhard

A financial services company is migrating a Redshift data warehouse to BigQuery. They need to stage data in Amazon S3 before transferring. Which service should they use to automate the transfer?

A.BigQuery Data Transfer Service
B.Cloud Data Fusion
C.Cloud Storage Transfer Service
D.Cloud Composer
AnswerA

Data Transfer Service supports Amazon S3 as a source for scheduled transfers into BigQuery.

Why this answer

BigQuery Data Transfer Service supports scheduled transfers from Amazon S3 to BigQuery, handling incremental loads. It is the recommended service for this scenario.

12
Multi-Selecthard

An organization is migrating a large Oracle database to Cloud SQL for PostgreSQL. They need to handle Oracle's SEQUENCE objects, which are used for primary key generation. Which THREE approaches are valid for this migration?

Select 3 answers
A.Remove all sequences and use UUIDs generated by the application.
B.Replace Oracle sequences with PostgreSQL SERIAL columns.
C.Use PostgreSQL's IDENTITY columns (GENERATED AS IDENTITY).
D.Create PostgreSQL sequences and use nextval() in INSERT statements.
E.Use Oracle sequences directly in PostgreSQL via a compatibility layer.
AnswersB, C, D

SERIAL is a PostgreSQL feature that creates an auto-incrementing integer column, similar to Oracle sequences used for primary keys.

Why this answer

PostgreSQL has SERIAL, sequences, and IDENTITY columns. Oracle sequences can be converted to PostgreSQL sequences or IDENTITY columns. SERIAL is a shorthand for creating a sequence on a column.

13
MCQeasy

A team is migrating a legacy application database to Cloud SQL. They want to implement versioned schema changes as part of their CI/CD pipeline. Which tool should they use?

A.Liquibase
B.gcloud sql import
C.Cloud Deployment Manager
D.Cloud Build
AnswerA

Liquibase is a database schema change management tool that supports versioning and CI/CD integration.

Why this answer

Both Liquibase and Flyway are popular database schema migration tools that integrate with CI/CD pipelines. They allow version-controlled, repeatable schema changes. The question asks for a tool; either is correct.

But in GCP context, Liquibase and Flyway are both commonly used. The answer should be one of them.

14
MCQmedium

An organization wants to migrate a Redshift data warehouse to BigQuery. They have a large dataset stored in Redshift. What is the most efficient migration approach for the initial data load?

A.Copy Redshift data to Cloud Storage using gsutil, then load into BigQuery.
B.Export data directly from Redshift to BigQuery using a JDBC connection.
C.Unload data from Redshift to Amazon S3, then load from S3 into BigQuery using BigQuery Data Transfer Service.
D.Use the BigQuery Connector for Redshift to stream data directly.
AnswerC

This is the standard pattern: unload to S3, then transfer to BigQuery via Data Transfer Service.

Why this answer

The recommended approach is to unload data from Redshift to Amazon S3 in Parquet or Avro format, then use BigQuery Data Transfer Service or load jobs to ingest from S3. Direct export from Redshift to BigQuery is not possible. Using a Cloud Storage intermediary would require copying from S3 to GCS, adding latency and cost.

15
Multi-Selectmedium

A company is migrating a MySQL database to Cloud SQL. They want to test the migration by sending writes to both the old and new databases simultaneously and comparing results. Which TWO techniques should they use?

Select 2 answers
A.Shadow writes (dual-write to both databases)
B.Rollback plan documentation
C.Load testing with production data shape
D.Database Migration Service continuous migration
E.Comparison queries to validate data consistency
AnswersA, E

Sends writes to both old and new DB for comparison.

Why this answer

Shadow writes, also known as dual-writes, allow the application to send the same write operations to both the old MySQL database and the new Cloud SQL database simultaneously. This technique enables real-time comparison of the results from both databases to verify that the migration is handling writes correctly without disrupting the existing production workload.

Exam trap

Cisco often tests the distinction between techniques that validate data consistency (shadow writes + comparison queries) versus tools that handle replication or performance testing, leading candidates to mistakenly select load testing or continuous migration as methods for write verification.

16
Multi-Selectmedium

A company is migrating a Snowflake data warehouse to BigQuery. They need to convert Snowflake SQL to BigQuery SQL. Which TWO tools or services can assist with this conversion?

Select 2 answers
A.gcloud bigquery copy
B.BigQuery Data Transfer Service
C.Cloud SQL Auth Proxy
D.Cloud Dataflow
E.BigQuery Migration Service
AnswersB, E

Supports automated transfer and schema conversion from Snowflake.

Why this answer

The BigQuery Migration Service (option E) provides a dedicated SQL translation capability that automatically converts Snowflake SQL dialect to BigQuery SQL, including schema, DDL, and DML statements. The BigQuery Data Transfer Service (option B) can be used to schedule and automate the transfer of data from Snowflake to BigQuery, which is a key part of the migration workflow. Together, these two services address both the SQL conversion and the data movement aspects of the migration.

Exam trap

The trap here is that candidates may confuse the BigQuery Data Transfer Service (which moves data) with the BigQuery Migration Service (which translates SQL), and may incorrectly think Cloud Dataflow is the primary tool for SQL conversion when it is actually a data processing engine, not a SQL translator.

17
MCQmedium

A team is migrating a Teradata data warehouse to BigQuery. They use BTEQ scripts for ETL. What is the best approach to migrate the BTEQ scripts?

A.Use a third-party tool like Ora2Pg to convert BTEQ scripts.
B.Rewrite BTEQ scripts as BigQuery SQL using GoogleSQL syntax, manually handling differences.
C.Use BigQuery Data Transfer Service to automatically convert BTEQ scripts to BigQuery SQL.
D.Run BTEQ scripts directly in BigQuery using the BigQuery Connector for Teradata.
AnswerB

Manual rewriting is necessary because BTEQ is a scripting language with Teradata-specific syntax.

Why this answer

Teradata BTEQ scripts use Teradata SQL dialect. BigQuery uses GoogleSQL (or legacy SQL). Direct translation is needed.

The BigQuery Data Transfer Service can automate loading from Teradata but does not convert BTEQ scripts. Manual rewriting or using a SQL translation tool is required. Some BTEQ commands have no BigQuery equivalent (e.g., .EXPORT).

18
MCQhard

An organization is migrating a 5 TB MySQL database from on-premises to Cloud SQL. The source uses MyISAM tables and the utf8 charset. The target must support full Unicode (emojis). The migration should have minimal downtime. What should the organization do?

A.Export the database using mysqldump and import into Cloud SQL; change charset after import.
B.Use DMS continuous migration directly; DMS automatically converts MyISAM to InnoDB and changes charset.
C.Convert MyISAM to InnoDB, change charset to utf8mb4, then use DMS continuous migration.
D.Use DMS one-time migration, convert MyISAM to InnoDB during migration.
AnswerC

Correct: MyISAM to InnoDB conversion, utf8mb4 for full Unicode, and DMS continuous migration for minimal downtime.

Why this answer

Option C is correct because Cloud SQL requires InnoDB tables (MyISAM is not supported) and utf8mb4 charset for full Unicode support including emojis. By first converting the tables and charset on-premises, then using Database Migration Service (DMS) continuous migration, you achieve minimal downtime through ongoing replication.

Exam trap

Cisco often tests the misconception that DMS can automatically fix source incompatibilities like MyISAM tables or charset issues, when in reality the source must be pre-configured to match Cloud SQL requirements.

How to eliminate wrong answers

Option A is wrong because mysqldump import causes significant downtime and does not address the MyISAM-to-InnoDB requirement; changing charset after import still leaves MyISAM tables unsupported. Option B is wrong because DMS does not automatically convert MyISAM to InnoDB or change charset; the source must already be compatible before migration starts. Option D is wrong because DMS one-time migration does not support continuous replication, leading to longer downtime, and it cannot convert MyISAM to InnoDB during migration.

19
MCQeasy

A company is migrating a Redshift data warehouse to BigQuery. They need to stage the data in an intermediate storage before loading into BigQuery. What should they use?

A.Directly connect Redshift to BigQuery using VPN.
B.Use BigQuery Data Transfer Service for Redshift.
C.Use Amazon S3 as intermediate staging, then copy to Cloud Storage.
D.Use Google Cloud Interconnect for direct transfer.
AnswerC

Data is exported from Redshift to S3, transferred to Cloud Storage, then loaded into BigQuery.

Why this answer

The common pattern is to unload Redshift data to Amazon S3, then use Google Cloud Storage Transfer Service to move the files to Cloud Storage, and finally load into BigQuery.

20
MCQmedium

A company is migrating from Amazon Redshift to BigQuery. They need to stage the data in Amazon S3 before transferring to BigQuery. Which service should they use to automate the transfer?

A.BigQuery Data Transfer Service
B.Cloud Storage Transfer Service
C.Database Migration Service
D.Cloud Data Fusion
AnswerA

DTS for Redshift automates data transfer from Redshift to BigQuery via S3 staging.

Why this answer

BigQuery Data Transfer Service supports Redshift as a source and uses Amazon S3 as an intermediate staging location for the data transfer.

21
MCQeasy

A company wants to migrate an on-premises PostgreSQL 9.6 database to Cloud SQL for PostgreSQL with minimal downtime. Which service should they use?

A.Cloud Dataflow
B.BigQuery Data Transfer Service
C.Cloud SQL Auth Proxy
D.Database Migration Service
AnswerD

DMS supports PostgreSQL with continuous migration for minimal downtime.

Why this answer

Database Migration Service (DMS) supports PostgreSQL migrations with continuous CDC for minimal downtime. It manages the full dump and incremental sync.

22
MCQmedium

An organization uses Flyway for versioned schema migrations. They are migrating from PostgreSQL to Cloud SQL for PostgreSQL. What is the best practice for applying schema changes during the migration?

A.Use Database Migration Service to apply schema changes
B.Manually apply schema changes using pgAdmin
C.Use Flyway migration scripts in a CI/CD pipeline
D.Use Cloud SQL import wizard
AnswerC

Flyway provides versioned, automated schema migrations.

Why this answer

Flyway integrates well with Cloud SQL and CI/CD. The best practice is to use Flyway migrations to apply schema changes before or after data migration, ensuring version control and repeatability.

23
MCQhard

An engineer is using Database Migration Service for a continuous migration from on-premises MySQL to Cloud SQL. The source database is not directly reachable from DMS due to network restrictions. Which connectivity option should the engineer configure?

A.Deploy DMS on-premises as a virtual appliance.
B.Set up VPC peering between the on-premises network and the DMS VPC.
C.Use a public IP for the source database with SSL.
D.Configure Cloud SQL Auth Proxy on the source server.
AnswerB

VPC peering allows DMS to connect to the source database if the network is peered.

Why this answer

DMS requires network connectivity to the source. If direct VPC peering is not possible, the Cloud SQL Auth Proxy can be used (though typically for Cloud SQL to client, not for DMS source). The correct method is to use a public IP with authorized networks or a VPN.

However, among the options, Cloud SQL Auth Proxy is not for source connectivity; VPC peering is correct if networks are peered. The best answer here is to use a VPN or VPC peering. Since DMS supports VPC peering and also reverse SSH tunnel (but not listed), the most plausible correct answer is VPC peering.

24
MCQmedium

An organization is migrating from Amazon Redshift to BigQuery. They have large datasets stored in Amazon S3. What is the most efficient method to migrate the data?

A.Create a VPN between AWS and GCP and use federated query in BigQuery to read from Redshift directly.
B.Use Cloud Data Fusion to read from Redshift directly and write to BigQuery.
C.Use AWS Database Migration Service (DMS) to replicate data to Cloud SQL and then use BigQuery federated query.
D.Export Redshift data to S3, copy to Cloud Storage using Storage Transfer Service, then load into BigQuery.
AnswerD

This is efficient and leverages Google's transfer services.

Why this answer

The recommended approach is to export Redshift data to S3, then use BigQuery Data Transfer Service for Redshift to load data directly into BigQuery, or use Cloud Storage as intermediate. The most efficient is to use the BigQuery Data Transfer Service which can read from S3 directly (via a transfer config) or use Cloud Storage as a staging area.

25
MCQmedium

A team is migrating a Teradata data warehouse to BigQuery using the BigQuery Data Transfer Service. They need to schedule regular incremental transfers. What is the correct configuration for the transfer?

A.Export Teradata data to Cloud Storage and use BigQuery load jobs scheduled via Cloud Scheduler.
B.Use Cloud Data Fusion to create a batch pipeline from Teradata to BigQuery.
C.Create a transfer config with source type 'Teradata', target dataset, and schedule frequency.
D.Use a BigQuery scheduled query to SELECT * FROM Teradata via federated query.
AnswerC

This is the correct way to set up periodic incremental transfers from Teradata to BigQuery.

Why this answer

BigQuery Data Transfer Service for Teradata supports scheduled transfers. The correct setup is to configure a transfer config with a schedule (e.g., daily) and specify the dataset and table mappings. The service handles incremental loads based on a watermark column.

26
MCQeasy

A team is planning to migrate a 500 GB MySQL database to Cloud SQL. The application can tolerate up to 2 hours of downtime. Which migration method should they choose?

A.Use mysqldump to export and import manually.
B.Use Cloud SQL replication to set up a read replica, then promote.
C.Use a one-time migration job with Database Migration Service.
D.Use Database Migration Service with a continuous migration job.
AnswerC

A one-time migration is appropriate given the 2-hour downtime tolerance and moderate size.

Why this answer

For a 500 GB database with a 2-hour downtime window, a one-time migration (offline) is sufficient because the dump and restore can complete within the window. Continuous migration is used for minimal downtime but adds complexity. Database Migration Service supports both one-time and continuous jobs.

27
MCQeasy

A company wants to migrate their data warehouse from Teradata to BigQuery. They need to automate the loading of data on a regular schedule. Which Google Cloud service should they use?

A.Dataproc
B.BigQuery Data Transfer Service
C.Cloud Data Fusion
D.Cloud Composer
AnswerB

It provides automated, scheduled data loads from Teradata to BigQuery.

Why this answer

BigQuery Data Transfer Service supports scheduled transfers from Teradata (and other sources) to BigQuery.

28
MCQhard

An organization is planning a re-architect migration of a monolithic Oracle database to a microservices architecture using Cloud SQL for PostgreSQL and Cloud Spanner. They need to split the schema into multiple databases while maintaining data consistency across services. Which approach should they use?

A.Use a single Cloud SQL for PostgreSQL instance with different schemas per service.
B.Use BigQuery to store all data and query across services.
C.Use Cloud SQL for PostgreSQL for each service and implement sagas to handle distributed transactions.
D.Use Cloud Spanner for all services to maintain ACID transactions across databases.
AnswerC

Sagas are the recommended pattern for maintaining data consistency across microservices.

Why this answer

For microservices, each service should own its database. To maintain consistency across services, they should implement compensating transactions (sagas) rather than distributed transactions. Cloud Spanner can be used if strong consistency is required across global scales, but for microservices, the pattern is to use eventual consistency with sagas.

29
MCQmedium

During a MySQL to Cloud SQL migration using DMS, the migration job completes the full dump and CDC phases, but the cutover step fails. The error says 'Source database write operations still occurring'. What should the engineer do to complete cutover?

A.Restart the DMS job from the beginning.
B.Manually apply remaining changes to Cloud SQL using a SQL script.
C.Increase the source database's binary log retention period.
D.Stop all write operations to the source database, then promote the Cloud SQL replica.
AnswerD

Stopping writes allows CDC to catch up; then promote the replica to become the new primary.

Why this answer

For a zero-downtime cutover, you must first stop writes to the source database, then promote the Cloud SQL replica. The error indicates writes are still happening; stopping them allows the CDC to catch up and then cutover.

30
Multi-Selecthard

An organization is migrating an Oracle database to Cloud SQL for PostgreSQL using Database Migration Service. The source has many PL/SQL packages, sequences, and data types (NUMBER, VARCHAR2, DATE, CLOB, RAW). Which THREE conversions are correct?

Select 3 answers
A.Map Oracle RAW to PostgreSQL BYTEA.
B.Map Oracle DATE to PostgreSQL DATE.
C.Map Oracle NUMBER to PostgreSQL NUMERIC.
D.Map Oracle CLOB to PostgreSQL TEXT.
E.Convert Oracle packages to PostgreSQL schemas containing functions.
AnswersC, D, E

NUMBER without precision maps to NUMERIC in PostgreSQL.

Why this answer

Common Oracle to PostgreSQL mappings: NUMBER → NUMERIC, VARCHAR2 → VARCHAR, DATE → TIMESTAMP, CLOB → TEXT, RAW → BYTEA. Sequences and packages require different handling.

31
MCQeasy

You need to migrate an on-premises PostgreSQL database to Cloud SQL using Database Migration Service. The source database is behind a firewall without a public IP. Which connectivity option should you configure?

A.Use a Cloud SQL proxy container on-premises to forward connections.
B.Expose the source database on a public IP with SSL.
C.Use VPC peering with a VPN tunnel between on-premises and Google Cloud.
D.Use Cloud SQL Auth Proxy to connect to the source database.
AnswerC

DMS supports VPC peering for source connection; VPN extends the VPC to on-premises.

Why this answer

For source databases without public IP and behind a firewall, DMS supports connectivity via VPC peering (if the source is in a VPC) or using Cloud SQL Auth Proxy. However, if the source is on-premises, you need to establish connectivity via VPN or Interconnect and then use VPC peering. Cloud SQL Auth Proxy is not for source connectivity in DMS.

The correct option is to use VPC peering with a VPN.

32
Multi-Selectmedium

A company is planning to migrate from MySQL to Cloud SQL for MySQL. They want to ensure the migrated database meets performance and security requirements. Which TWO configurations should they apply to Cloud SQL?

Select 2 answers
A.Configure the Cloud SQL instance to require SSL/TLS for all connections.
B.Migrate all tables to MyISAM storage engine for better performance.
C.Enable automated backups and point-in-time recovery (PITR).
D.Set the database flag 'skip_grant_tables' for faster migration.
E.Disable the query cache to improve concurrency.
AnswersA, C

Enforcing TLS ensures encrypted connections between the application and database, meeting security requirements.

Why this answer

Enabling point-in-time recovery is important for data protection. Enforcing TLS ensures encrypted connections. These are common security and operational requirements.

33
MCQhard

During an Oracle to PostgreSQL migration using Ora2Pg, a developer notices that PL/SQL packages are not being converted correctly. What is the recommended strategy to handle Oracle packages in PostgreSQL?

A.Use pglogical to replicate Oracle data to PostgreSQL and rewrite application code to call PostgreSQL functions directly.
B.Keep the Oracle database as a read replica and use Oracle Foreign Data Wrapper for PostgreSQL.
C.Recreate each procedure/function as a separate function in a dedicated schema, and use temporary tables for package variables.
D.Use PostgreSQL's CREATE PACKAGE extension (available in some forks) to maintain package structure.
AnswerC

This is the standard pattern to mimic Oracle packages in PostgreSQL.

Why this answer

PostgreSQL does not have a direct equivalent of Oracle packages. The recommended approach is to convert package procedures and functions to individual functions in a schema, and package variables to session-level variables or temporary tables. Ora2Pg can attempt conversion but often requires manual adjustments.

34
Multi-Selectmedium

A company is migrating a MySQL database to Cloud SQL for MySQL. They want to use Flyway for versioned schema migrations in CI/CD. Which TWO commands are part of a typical Flyway migration workflow?

Select 2 answers
A.flyway undo
B.flyway clean
C.flyway migrate
D.flyway validate
E.flyway repair
AnswersC, D

Applies pending migrations to the database.

Why this answer

Flyway uses 'migrate' to apply pending migrations and 'validate' to verify the schema state. These are core commands in CI/CD pipelines.

35
MCQhard

An organization is migrating a large Oracle database to Cloud SQL for PostgreSQL using Ora2Pg. They have complex PL/SQL packages with overloaded procedures. What is the correct approach to handle these packages in PostgreSQL?

A.Convert each Oracle package to a PostgreSQL schema containing the procedures and functions as individual objects.
B.Convert each package to a single PostgreSQL function containing all logic, using conditional logic to mimic overloaded procedures.
C.Keep the packages as is; PostgreSQL supports packages natively.
D.Use Oracle compatibility mode in PostgreSQL to enable package support.
AnswerA

Schemas are the PostgreSQL equivalent of packages. Each package becomes a schema, and procedures become functions within that schema.

Why this answer

PostgreSQL does not have packages. The recommended approach is to map each Oracle package to a separate schema containing the package's procedures and functions as top-level objects. Overloaded procedures can be handled by creating separate functions with different names or using default parameters.

Ora2Pg can automate much of the conversion but manual review is needed.

36
Multi-Selecteasy

A startup is migrating a 100 GB PostgreSQL database from a self-managed VM to Cloud SQL. They want zero downtime during cutover. Which TWO features of Database Migration Service should they use?

Select 2 answers
A.Promote the Cloud SQL replica to standalone instance for cutover.
B.Use Cloud SQL Auth Proxy for source connectivity.
C.Continuous migration job with change data capture (CDC).
D.Use VPC peering to connect source to Cloud SQL.
E.One-time migration job.
AnswersA, C

Promoting the replica makes it the new primary, completing the cutover with minimal downtime.

Why this answer

Continuous migration with CDC enables cutover with minimal downtime. Promoting the replica is the final step to make Cloud SQL the primary with zero downtime.

37
MCQeasy

A database team is planning to migrate a 500 GB MySQL database to Cloud SQL. They require minimal downtime. Which Database Migration Service job type should they use?

A.One-time migration job
B.Continuous migration job
C.Cloud SQL replication from external primary
D.Bulk export and import
AnswerB

Continuous migration provides CDC for minimal downtime cutover.

Why this answer

Continuous migration job performs an initial full dump and then continuously replicates changes via CDC, allowing a near-zero downtime cutover by promoting the replica.

38
MCQeasy

An engineer is planning a database migration and needs to assess the source database's size, schema complexity, stored procedures, and dependencies. Which activity is this part of?

A.Cutover planning
B.Schema conversion
C.Performance tuning
D.Database assessment
AnswerD

Assessment involves evaluating source database attributes to inform migration approach.

Why this answer

Migration planning includes assessing the source database to understand its characteristics and plan the migration strategy.

39
MCQeasy

A data engineer wants to perform version-controlled schema migrations as part of a CI/CD pipeline for a Cloud SQL for PostgreSQL database. Which tools should they use?

A.Database Migration Service
B.gcloud sql import
C.Liquibase or Flyway
D.Cloud Build and Cloud Scheduler
AnswerC

Both are schema migration tools that support versioning, rollback, and CI/CD integration.

Why this answer

Liquibase and Flyway are industry-standard tools for version-controlled database schema migrations. They integrate with CI/CD pipelines and support PostgreSQL.

40
MCQhard

An organization is migrating from Oracle to Cloud SQL for PostgreSQL using Database Migration Service. They need to convert Oracle NUMBER(10,2) and VARCHAR2(100) columns to appropriate PostgreSQL types. What are the correct mappings?

A.NUMBER(10,2) → NUMERIC(10,2); VARCHAR2(100) → VARCHAR(100)
B.NUMBER(10,2) → DECIMAL(10,2); VARCHAR2(100) → TEXT
C.NUMBER(10,2) → INTEGER; VARCHAR2(100) → TEXT
D.NUMBER(10,2) → BIGINT; VARCHAR2(100) → CHAR(100)
AnswerA

Correct mapping preserving precision and length.

Why this answer

Oracle NUMBER maps to PostgreSQL NUMERIC (or DECIMAL), and VARCHAR2 maps to VARCHAR (or TEXT). The specified lengths are preserved.

41
MCQhard

During a migration from Teradata to BigQuery, the team needs to convert Teradata BTEQ scripts to BigQuery SQL. Which of the following is a key difference between Teradata SQL and BigQuery SQL that the team must account for?

A.Teradata uses CURRENT_DATE; BigQuery uses CURRENT_DATE() with parentheses
B.Teradata uses FROM clause first; BigQuery uses SELECT first
C.Teradata uses backticks for identifiers; BigQuery uses double quotes
D.Teradata uses CAST for data type conversion; BigQuery uses CONVERT
AnswerA

BigQuery requires parentheses for functions, e.g., CURRENT_DATE().

Why this answer

Teradata uses a different syntax for temporal queries (e.g., CURRENT_DATE) and does not use backticks for identifiers. BigQuery SQL is based on GoogleSQL, which uses backticks for escaping reserved keywords and has different date functions.

42
MCQeasy

A company is planning to migrate an on-premises Oracle database to Cloud SQL for PostgreSQL. They want to use Google's Database Migration Service (DMS) for continuous migration with minimal downtime. Which source connectivity method does DMS support for connecting to the Oracle database over the internet?

A.Cloud SQL Auth Proxy
B.Cloud Interconnect
C.VPC Network Peering to on-premises network via Cloud VPN
D.Direct connection using Oracle Net Services over public IP with SSL
AnswerA

Cloud SQL Auth Proxy provides secure, encrypted connectivity to source databases over the internet and is supported by DMS.

Why this answer

Google's Database Migration Service (DMS) supports connecting to an on-premises Oracle database over the internet using Cloud SQL Auth Proxy. This method establishes an encrypted tunnel using the Cloud SQL Auth Proxy client, which authenticates via IAM and provides secure connectivity without requiring a public IP on the source database. It is the only supported connectivity method for internet-based migrations in DMS, enabling continuous migration with minimal downtime.

Exam trap

The trap here is that candidates may confuse the general connectivity options for Google Cloud (like Cloud Interconnect or VPN) with the specific methods supported by Database Migration Service for internet-based Oracle migrations, leading them to select a method that DMS does not actually support.

How to eliminate wrong answers

Option B is wrong because Cloud Interconnect is a dedicated, high-bandwidth physical connection between on-premises and Google Cloud, not a method for connecting over the internet; it is used for private, low-latency connectivity, not for internet-based DMS migrations. Option C is wrong because VPC Network Peering to on-premises via Cloud VPN creates a site-to-site VPN tunnel over the internet, but DMS does not support connecting to an Oracle source database through a VPN; it requires direct connectivity via Cloud SQL Auth Proxy or a public IP with SSL. Option D is wrong because while Oracle Net Services over public IP with SSL is a valid connectivity method for some Google Cloud services, DMS specifically does not support direct Oracle Net Services connections over the internet; it relies on Cloud SQL Auth Proxy for internet-based migrations to ensure secure, authenticated tunnels.

43
Multi-Selectmedium

A company is migrating from Oracle to Cloud SQL for PostgreSQL using Database Migration Service. They need to ensure that the migration is validated before cutover. Which TWO actions should they take?

Select 2 answers
A.Run comparison queries (e.g., row counts, checksums) between source and target.
B.Take a snapshot of the source database before migration.
C.Disable foreign key constraints on the target to speed up migration.
D.Perform load testing on the Cloud SQL instance using production data shape.
E.Implement shadow writes from the application to both databases simultaneously.
AnswersA, D

This validates data consistency.

Why this answer

Option A is correct because running comparison queries (e.g., row counts, checksums) between the source Oracle database and the target Cloud SQL for PostgreSQL instance is a standard validation technique to ensure data consistency and completeness before cutover. Database Migration Service (DMS) handles continuous replication, but manual validation using queries like SELECT COUNT(*) or checksum functions (e.g., MD5 on concatenated columns) catches any discrepancies that might have been introduced during migration or replication lag.

Exam trap

Cisco often tests the distinction between 'validation' actions (verifying data integrity) and 'cutover' or 'backup' actions, so the trap here is confusing operational steps like snapshots or shadow writes with the specific validation checks needed to confirm migration readiness.

44
MCQmedium

A company is migrating from Redshift to BigQuery. They have large datasets in Amazon S3. What is the recommended approach to transfer this data into BigQuery?

A.Use Cloud Dataflow to read from S3 and write to BigQuery.
B.Copy data from S3 to GCS using Storage Transfer Service, then load into BigQuery.
C.Use Database Migration Service with Redshift endpoint.
D.Use BigQuery Data Transfer Service for Redshift.
AnswerD

This service can transfer data from Redshift to BigQuery by first unloading to S3.

Why this answer

The typical approach is to use BigQuery Data Transfer Service for Redshift (which can unload to S3 and then load into BigQuery), or manually export from Redshift to S3, transfer to GCS, and load into BigQuery. But the question specifies S3 as intermediate; using Transfer Service for Redshift is the managed option.

45
MCQmedium

A team is performing a shadow writes testing strategy as part of database migration validation. What does this involve?

A.Creating a snapshot of the source database
B.Running comparison queries after migration
C.Duplicating all writes to both source and target databases and comparing
D.Writing test data only to the new database
AnswerC

This is the definition of shadow writes.

Why this answer

Shadow writes involve writing the same data to both the old and new databases simultaneously during the testing phase, then comparing the results to ensure consistency.

46
MCQmedium

A company is migrating an on-premises PostgreSQL database to Cloud SQL for PostgreSQL using Database Migration Service (DMS). They need to minimize downtime during the cutover. What should they do to achieve a zero-downtime cutover?

A.Create a continuous migration job, let it replicate changes, then promote the Cloud SQL replica to primary.
B.Set up VPC peering between on-premises and Cloud SQL, then use pg_dump and pg_restore.
C.Use Cloud SQL Auth Proxy to connect and manually copy data using a script.
D.Create a one-time migration job and stop the source database during the migration.
AnswerA

Continuous migration with CDC allows near-zero downtime cutover by promoting the replica.

Why this answer

Option A is correct because Database Migration Service (DMS) supports continuous migration jobs that use PostgreSQL logical replication to keep the Cloud SQL replica synchronized with the on-premises source. When you are ready to cut over, you promote the Cloud SQL replica to a standalone primary, which applies any remaining changes and makes the database available with minimal downtime — typically only seconds for the final replication lag to clear.

Exam trap

Cisco often tests the distinction between one-time (snapshot) and continuous (CDC) migration jobs, and the trap here is assuming that any migration method involving a 'replica' automatically guarantees zero downtime without understanding that only continuous replication with promotion achieves that goal.

How to eliminate wrong answers

Option B is wrong because VPC peering alone does not enable zero-downtime migration; pg_dump and pg_restore are offline, bulk-copy methods that require the source database to be read-only or stopped during the dump, causing significant downtime. Option C is wrong because Cloud SQL Auth Proxy is an authentication proxy for secure connections, not a replication tool; manually copying data with a script is a batch operation that cannot achieve near-zero downtime as it lacks continuous change capture. Option D is wrong because a one-time migration job performs a full snapshot copy and does not replicate ongoing changes; stopping the source database during migration guarantees downtime equal to the migration duration.

47
Multi-Selecthard

A company is performing a lift-and-shift migration of an on-premises Oracle database to Cloud SQL for PostgreSQL using DMS with continuous migration. Which THREE prerequisites must be met before starting the migration job?

Select 3 answers
A.Create a source connection profile in DMS.
B.Ensure network connectivity between the source and Cloud SQL (e.g., VPC peering).
C.Install Cloud SQL Auth Proxy on the source server.
D.Enable archivelog mode on the source Oracle database.
E.Convert all NUMBER columns to NUMERIC manually.
AnswersA, B, D

Connection profiles define source and target endpoints.

Why this answer

DMS continuous migration requires archivelog mode for CDC, appropriate network connectivity (VPC peering or proxy), and a connection profile for the source.

48
MCQmedium

A company is using Database Migration Service to continuously migrate data from an on-premises PostgreSQL database to Cloud SQL for PostgreSQL. The source database is behind a firewall. Which two steps are required to establish connectivity? (Choose two.)

A.Install Cloud SQL Auth Proxy on the source database server
B.Open firewall ports for DMS public IPs
C.Use Cloud Interconnect
D.Set up VPC peering between the customer's VPC and the Cloud SQL VPC
E.Configure a Cloud VPN tunnel to the source database
AnswerA, D

Auth Proxy creates an encrypted tunnel for DMS to connect to the source.

Why this answer

Option A is correct because Cloud SQL Auth Proxy provides a secure way to connect to Cloud SQL from on-premises without requiring a public IP or firewall rules for the Cloud SQL instance. It uses a TLS tunnel to the Cloud SQL instance, which is ideal when the source database is behind a firewall and you need to establish outbound connectivity from the on-premises environment to Cloud SQL. This avoids exposing the Cloud SQL instance to the public internet.

Exam trap

Cisco often tests the misconception that DMS requires opening firewall ports for its public IPs or that a VPN tunnel is mandatory, when in fact Cloud SQL Auth Proxy or VPC peering are the correct connectivity methods.

How to eliminate wrong answers

Option B is wrong because DMS uses Cloud SQL Auth Proxy or a private connectivity method (like VPC peering) to connect to the source database; it does not use public IPs that require opening firewall ports for DMS public IPs. Option C is wrong because Cloud Interconnect is a dedicated, high-bandwidth connection between on-premises and Google Cloud, but it is not a required step for DMS connectivity; DMS can work over a VPN or Cloud SQL Auth Proxy without Cloud Interconnect. Option E is wrong because a Cloud VPN tunnel is used to connect on-premises networks to a VPC, but DMS does not require a VPN tunnel to the source database; it uses Cloud SQL Auth Proxy or VPC peering to reach the Cloud SQL instance, not the source database.

49
MCQeasy

A company is migrating a MySQL 5.7 database to Cloud SQL for MySQL 8.0. They use MyISAM tables and utf8 charset. What changes must they make during migration?

A.Convert MyISAM tables to InnoDB and change charset from utf8 to utf8mb4.
B.Convert MyISAM to InnoDB only; utf8 is fine in MySQL 8.0.
C.No changes needed; Cloud SQL automatically converts MyISAM to InnoDB and utf8 to utf8mb4.
D.Change charset to utf8mb4 only; MyISAM is supported in Cloud SQL.
AnswerA

MyISAM is not supported in high availability; InnoDB is required. utf8mb4 supports full Unicode.

Why this answer

MySQL 8.0 defaults to InnoDB, and utf8mb4 is recommended. MyISAM tables should be converted to InnoDB. utf8 in MySQL is an alias for utf8mb3 (3-byte), which cannot store emoji; utf8mb4 (4-byte) is recommended. MySQL 5.7 to 8.0 introduces changes like caching_sha2_password authentication and stricter GROUP BY.

They must convert MyISAM to InnoDB and change charset to utf8mb4.

50
MCQmedium

An organization is migrating from Oracle to Cloud SQL for PostgreSQL using Database Migration Service. The source Oracle database has many stored procedures with PL/SQL. Which tool should be used to automate the conversion of these stored procedures to PL/pgSQL?

A.Cloud SQL Auth Proxy
B.BigQuery Data Transfer Service
C.Database Migration Service with built-in schema converter
D.Ora2Pg
AnswerD

Ora2Pg is the standard tool for Oracle-to-PostgreSQL schema and PL/SQL conversion.

Why this answer

Ora2Pg is an open-source tool that converts Oracle schemas and PL/SQL code to PostgreSQL-compatible format, including stored procedures and functions.

51
MCQmedium

During an Oracle to PostgreSQL migration using Database Migration Service (DMS), the continuous replication fails with an error about unsupported data types. The source table uses Oracle's RAW data type. How should this be handled?

A.Convert RAW to VARCHAR2 before migration using a trigger.
B.Raw data type is not supported by DMS; you must drop the column and re-add as BYTEA after migration.
C.Verify DMS supports RAW to BYTEA mapping; if not, use a manual export/import for that table.
D.Use Cloud Dataflow to transform the data as it streams.
AnswerC

DMS does support this mapping, but if it fails, manual intervention may be needed.

Why this answer

Oracle RAW type maps to PostgreSQL BYTEA. DMS should handle this conversion automatically. If it fails, it may be due to version incompatibility or configuration.

The correct action is to check DMS logs and ensure the mapping is correct; if DMS cannot handle it, a manual workaround is to convert RAW to BYTEA using a custom script.

52
MCQmedium

A team is migrating a Snowflake data warehouse to BigQuery. They need to move historical data and set up a one-time batch transfer. Which method is most appropriate?

A.Export data from Snowflake to GCS, then load into BigQuery.
B.Use BigQuery Data Transfer Service for Snowflake.
C.Use Cloud Data Fusion with Snowflake connector.
D.Use Database Migration Service with Snowflake endpoint.
AnswerA

Common pattern: export to GCS (e.g., Parquet) and then load into BigQuery.

Why this answer

Exporting data from Snowflake to GCS (Google Cloud Storage) as files (e.g., Parquet, Avro, or CSV) and then loading them into BigQuery is the most appropriate method for a one-time batch transfer of historical data. This approach leverages Snowflake's native UNLOAD command to export data efficiently and BigQuery's batch load jobs to ingest the files, providing full control over the migration without requiring ongoing connectivity or complex tooling.

Exam trap

Cisco often tests the misconception that BigQuery Data Transfer Service can handle one-time batch migrations, but it is actually designed for recurring scheduled transfers and requires the source to support continuous replication, which Snowflake does not natively provide for historical data dumps.

How to eliminate wrong answers

Option B is wrong because BigQuery Data Transfer Service for Snowflake is designed for scheduled, incremental transfers, not for one-time batch migrations; it requires ongoing configuration and is not optimized for a single historical data dump. Option C is wrong because Cloud Data Fusion with a Snowflake connector is intended for ETL/ELT pipelines and continuous data integration, not for a simple one-time batch transfer; it adds unnecessary complexity and cost for a single migration. Option D is wrong because Database Migration Service (DMS) does not support Snowflake as a source endpoint; DMS is designed for homogeneous migrations (e.g., MySQL to Cloud SQL) and does not have a Snowflake connector.

53
MCQmedium

A company is planning to migrate from Snowflake to BigQuery. They have existing complex SQL transformations using Snowflake-specific functions like LISTAGG and PIVOT. What is the best approach to handle these differences?

A.Use BigQuery Data Transfer Service to automatically convert Snowflake functions.
B.Keep Snowflake for complex queries and use BigQuery only for simple analytics.
C.Use Cloud Spanner as an intermediary to translate queries.
D.Rewrite the SQL queries to use BigQuery equivalent functions and syntax.
AnswerD

Manual or tool-assisted rewriting is necessary as there is no automatic conversion.

Why this answer

Snowflake and BigQuery have different SQL dialects. The best approach is to use a migration assessment tool to identify incompatible syntax, rewrite queries to BigQuery-compatible syntax (e.g., use STRING_AGG instead of LISTAGG), and test thoroughly. BigQuery does not support PIVOT natively; use conditional aggregation.

54
MCQhard

A company is migrating from MySQL 5.7 to Cloud SQL for MySQL 8.0. After migration, a legacy application that uses the 'GROUP BY' clause with implicit sorting stops working correctly. What is the most likely cause?

A.MySQL 8.0 changed the default collation, affecting string comparison.
B.MySQL 8.0 no longer supports the 'GROUP BY' clause.
C.The 'ONLY_FULL_GROUP_BY' SQL mode is enabled by default.
D.MySQL 8.0 removed the implicit sorting of GROUP BY results.
AnswerD

MySQL 8.0 no longer sorts GROUP BY results implicitly; an ORDER BY clause must be added to guarantee sort order.

Why this answer

MySQL 8.0 removed the implicit sorting of GROUP BY that was present in MySQL 5.7. Applications relying on this behavior must explicitly use ORDER BY to guarantee sort order.

55
MCQhard

A company is migrating a critical on-premises PostgreSQL database to Cloud SQL. They need to test the migration with production data shape without affecting the source. What is the recommended testing strategy?

A.Run shadow writes from the application to both source and Cloud SQL concurrently.
B.Export the production data using pg_dump and import into a test Cloud SQL instance.
C.Use Cloud SQL's clone feature to create a copy of the source after migration.
D.Use Database Migration Service to set up a continuous migration job and perform a dry run cutover.
AnswerD

DMS allows creating a migration job that can be stopped before cutover; this provides a replica with continuous sync for testing.

Why this answer

To test migration with production data shape, one approach is to take a snapshot of the source, restore it in a test environment, and then perform the migration to Cloud SQL. Alternatively, use shadow writes (dual-writes) to both old and new DBs in a test environment. Comparing query results and load testing are also part of validation.

56
MCQmedium

An organization is migrating a large Oracle database to Cloud Spanner using Database Migration Service. They need to convert stored procedures and functions from PL/SQL to Spanner's SQL dialect. What is the best approach?

A.Use Ora2Pg to convert PL/SQL to PL/pgSQL and deploy to Cloud Spanner.
B.Migrate the PL/SQL code as-is; Cloud Spanner supports Oracle PL/SQL.
C.Manually rewrite PL/SQL as Spanner stored procedures.
D.Refactor the application to handle business logic outside the database using client libraries.
AnswerD

Since Spanner does not support stored procedures, the best practice is to move the logic to the application layer.

Why this answer

Spanner does not support stored procedures; the recommended approach is to migrate business logic to the application layer using client libraries, which provides better scalability and maintainability.

57
MCQeasy

A company is migrating an on-premises MySQL 5.7 database to Cloud SQL for MySQL 8.0. The database includes MyISAM tables. What is the required action for these tables?

A.Use a MySQL 5.7 compatible Cloud SQL instance
B.Keep MyISAM tables as is
C.Migrate to Cloud Spanner instead
D.Convert MyISAM tables to InnoDB
AnswerD

Cloud SQL requires InnoDB; MyISAM is not supported.

Why this answer

Cloud SQL for MySQL 8.0 does not support MyISAM as the default storage engine; MyISAM tables must be converted to InnoDB. InnoDB provides ACID compliance, row-level locking, and crash recovery.

58
MCQhard

A company is migrating from Oracle to Cloud SQL for PostgreSQL. They have a stored procedure that uses Oracle's DBMS_OUTPUT.PUT_LINE for logging. How should they convert this to PostgreSQL?

A.Use RAISE EXCEPTION to output messages.
B.Use dbms_output package (installed via extension) to convert.
C.Use DBMS_OUTPUT.PUT_LINE as is; PostgreSQL supports it via the orafce extension.
D.Use RAISE NOTICE to output messages.
AnswerD

RAISE NOTICE is the PostgreSQL equivalent of DBMS_OUTPUT.PUT_LINE for logging.

Why this answer

PostgreSQL does not have DBMS_OUTPUT. The equivalent is RAISE NOTICE, which sends messages to the client. Alternatively, they can log to a table using INSERT.

RAISE is the most direct replacement. RAISE EXCEPTION is for errors, and dbms_output is not available.

59
MCQmedium

A company is migrating a MySQL database with MyISAM tables to Cloud SQL for MySQL. They want to ensure the target database uses InnoDB for better transactional support and crash recovery. What should they do?

A.Run ALTER TABLE table_name ENGINE=InnoDB on each MyISAM table before migration.
B.Set the default_storage_engine flag to InnoDB on the source MySQL instance.
C.Enable the skip_myisam flag in Cloud SQL to automatically convert MyISAM to InnoDB.
D.Use mysqldump with the --compatible=innodb option.
AnswerA

This converts the table storage engine to InnoDB on the source, ensuring the dump/import uses InnoDB.

Why this answer

MyISAM tables must be converted to InnoDB before or during migration. The ALTER TABLE statement is the standard way to change the storage engine in MySQL.

60
MCQmedium

An engineer is migrating a large on-premises SQL Server database to Cloud SQL for PostgreSQL. They need to continuously replicate changes during the migration to minimize downtime. Which Database Migration Service job type should they use?

A.Bulk migration
B.Scheduled migration
C.Continuous migration
D.One-time migration
AnswerC

Continuous migration includes CDC after the initial dump, allowing near-zero-downtime cutover.

Why this answer

DMS offers continuous migration jobs that perform a full dump followed by CDC, enabling near-zero-downtime cutover.

61
MCQmedium

A company is using Database Migration Service to migrate an on-premises PostgreSQL database to Cloud SQL for PostgreSQL. The source database is behind a firewall that does not allow direct connections from Google Cloud. What connectivity option should they use?

A.Use Cloud SQL Auth Proxy on a machine in the source network.
B.Use a Cloud VPN tunnel to connect the on-premises network to Google Cloud.
C.Set up VPC peering between the on-premises network and Google Cloud.
D.Configure a public IP for Cloud SQL and whitelist the source IP.
AnswerA

Cloud SQL Auth Proxy creates an encrypted tunnel and works over the internet, bypassing direct connectivity requirements.

Why this answer

Cloud SQL Auth Proxy provides a secure tunnel and can be run on the source network to connect to Cloud SQL. VPC peering requires direct network connectivity, which may not be possible through a firewall.

62
Multi-Selectmedium

A company is migrating a 500 GB MySQL database to Cloud SQL for MySQL 8.0. They want to test the migration with minimal risk before the final cutover. Which TWO testing approaches should they use?

Select 2 answers
A.Set up shadow writes to dual-write to both source and target databases.
B.Perform load testing using synthetic data only.
C.Run comparison queries on a snapshot of data from both databases.
D.Use Database Migration Service to migrate only the schema first.
E.Create a rollback plan before starting migration.
AnswersA, C

Shadow writes allow real-time testing by writing to both databases and comparing results.

Why this answer

Shadow writes allow testing by writing to both old and new DBs. Comparison queries validate data integrity. Load testing and rollback plan are also important but not testing approaches per se.

63
Multi-Selectmedium

An organization is migrating a MySQL 5.7 database to Cloud SQL for MySQL 8.0. They must ensure compatibility of character sets and collations. Which THREE aspects should they review?

Select 3 answers
A.Review deprecated collations (e.g., utf8mb4_unicode_ci) that may be removed in future versions.
B.Ensure that all tables use the InnoDB storage engine.
C.Check if any tables use utf8 character set; consider converting to utf8mb4 to avoid truncation of 4-byte characters.
D.Update the caching SHA-2 password plugin to ensure compatibility.
E.Verify that the default collation is compatible; MySQL 8.0 changed default to utf8mb4_0900_ai_ci.
AnswersA, C, E

Some collations are deprecated; it's good to update to current ones.

Why this answer

MySQL 8.0 has changed default character set to utf8mb4 and default collation to utf8mb4_0900_ai_ci. They should check: 1) Usage of utf8 vs utf8mb4 (utf8 is now an alias for utf8mb3). 2) The default collation change. 3) Any collation that is deprecated or removed in 8.0.

64
MCQhard

A team is migrating a 500 GB Snowflake data warehouse to BigQuery. They have a tight deadline and need to minimize manual SQL rewriting. Which approach is most efficient?

A.Use Cloud Data Fusion to transform Snowflake data into BigQuery-compatible format.
B.Manually rewrite all SQL queries to BigQuery syntax using a text editor.
C.Use the BigQuery Data Transfer Service with Snowflake connector.
D.Export Snowflake data to Cloud Storage as Parquet, create external tables, and use BigQuery's SQL translation for queries.
AnswerD

This approach minimizes manual rewriting by using external tables and BigQuery's SQL translation capabilities for common Snowflake patterns.

Why this answer

BigQuery SQL dialect is similar to standard SQL, but Snowflake-specific functions need to be converted. Using a converter tool or manual rewrite with testing is typical. There is no automated full conversion tool that guarantees correctness without review.

65
MCQmedium

A company is migrating a MySQL 5.7 database to Cloud SQL for MySQL 8.0. They have many queries using GROUP BY that return different results in 8.0. What is the most likely cause?

A.The character set changed from utf8 to utf8mb4.
B.The authentication plugin changed from mysql_native_password to caching_sha2_password.
C.The storage engine changed from MyISAM to InnoDB.
D.The sql_mode is different between MySQL 5.7 and 8.0.
AnswerD

MySQL 8.0 enables ONLY_FULL_GROUP_BY by default, causing queries to fail if they select nonaggregated columns not in GROUP BY.

Why this answer

MySQL 8.0 defaults to strict SQL mode, which disables the MySQL 5.7 non-standard GROUP BY behavior (GROUP BY can select nonaggregated columns not in GROUP BY). In 8.0, this causes errors or different results unless the sql_mode includes ONLY_FULL_GROUP_BY.

66
Multi-Selectmedium

A team is migrating a Redshift data warehouse to BigQuery using BigQuery Data Transfer Service. They need to ensure the transfer is secure and cost-effective. Which THREE considerations are important?

Select 3 answers
A.Configure private VPC peering between Redshift and BigQuery.
B.Use Amazon S3 as intermediate staging for unloaded data.
C.Encrypt data in transit using SSL/TLS.
D.Set up automatic refresh schedule for incremental data loads.
E.Enable Cloud NAT for the transfer service to access Redshift.
AnswersB, C, D

Redshift unloads to S3, then transfer service loads from S3 to GCS/BigQuery.

Why this answer

Intermediate staging in S3, encrypting data in transit, and enabling automatic refresh are typical considerations for Redshift to BigQuery transfers using Data Transfer Service.

67
MCQeasy

A company wants to migrate their MySQL 5.7 database to Cloud SQL for MySQL. They are concerned about performance after migration. Which step is essential for ensuring optimal performance on Cloud SQL?

A.Use Cloud SQL Auth Proxy to connect to the source.
B.Enable binary logging on the source database before migration.
C.Convert all MyISAM tables to InnoDB.
D.Set the character set to utf8mb4 on the source.
AnswerC

MyISAM is deprecated in MySQL 8.0 and not supported; converting to InnoDB is necessary for compatibility and performance.

Why this answer

MyISAM tables are not supported on Cloud SQL for MySQL 8.0; they must be converted to InnoDB. InnoDB is the default engine and provides better performance, crash recovery, and concurrency.

68
MCQmedium

A company plans to migrate an on-premises Oracle database to Cloud SQL for PostgreSQL. They need to minimize downtime and ensure continuous sync during migration. Which migration approach should they use?

A.Export the Oracle database as a dump file and import it into Cloud SQL manually.
B.Use DMS with a continuous migration job, allowing CDC replication until cutover.
C.Use DMS with a one-time migration job, then manually sync changes before cutover.
D.Use Cloud SQL Auth Proxy to connect Oracle to Cloud SQL and replicate data using a custom script.
AnswerB

Continuous migration with CDC enables near-zero downtime by keeping the target in sync.

Why this answer

Database Migration Service (DMS) with a continuous migration job enables ongoing Change Data Capture (CDC) replication from the source Oracle database to Cloud SQL for PostgreSQL. This approach keeps the target database synchronized with minimal downtime, allowing a controlled cutover when the migration is complete. It is the only option that satisfies the requirements of continuous sync and minimal downtime.

Exam trap

Cisco often tests the distinction between one-time and continuous migration jobs, where candidates mistakenly believe a one-time job plus manual sync is sufficient for minimal downtime, overlooking the need for automated CDC to avoid data loss and extended cutover windows.

How to eliminate wrong answers

Option A is wrong because exporting and importing a dump file is a manual, offline process that requires the source database to be stopped or locked, causing significant downtime and no continuous sync. Option C is wrong because a one-time migration job only captures a snapshot of the data at a point in time; any changes made after that snapshot must be manually applied, which introduces downtime and risk of data loss. Option D is wrong because Cloud SQL Auth Proxy is designed for secure connections to Cloud SQL, not for replication; using a custom script to replicate from Oracle would be unreliable, lack CDC capabilities, and not provide the managed, continuous sync that DMS offers.

69
MCQmedium

A company is migrating a MySQL database to Cloud SQL. They plan to use Database Migration Service (DMS) with a continuous migration job to minimize downtime. How do they perform the cutover with zero downtime?

A.Take a snapshot of the Cloud SQL instance and restore it as a new instance.
B.Delete the migration job and manually update DNS to point to Cloud SQL.
C.Use the DMS console to promote the replica; the promotion applies pending changes and makes the Cloud SQL instance writable.
D.Stop the source database, take a final dump, and load it into Cloud SQL.
AnswerC

Promotion is the correct zero-downtime cutover step in DMS.

Why this answer

DMS continuous migration uses a promotion step. When the source and target are in sync, the engineer promotes the Cloud SQL replica to a standalone instance. The application then switches to the new Cloud SQL instance.

This is called 'promoting the replica' and can achieve near-zero downtime if coordinated correctly.

70
Multi-Selecteasy

A data engineer is migrating a Redshift data warehouse to BigQuery. Which THREE steps are typically required?

Select 4 answers
A.Load data from Cloud Storage into BigQuery.
B.Transfer data from S3 to Google Cloud Storage using Storage Transfer Service.
C.Use BigQuery Data Transfer Service for Redshift.
D.Convert Redshift SQL dialect to BigQuery SQL.
E.Unload data from Redshift to Amazon S3.
AnswersA, B, D, E

Data is loaded from GCS into BigQuery tables.

Why this answer

Common Redshift to BigQuery migration steps: unload data to Amazon S3, transfer to Google Cloud (Storage Transfer Service), then load into BigQuery. SQL dialect differences must be addressed.

71
MCQmedium

A company is migrating from Oracle to Cloud SQL for PostgreSQL. They have a table with a column of type RAW(16). Which PostgreSQL data type should they use?

A.BYTEA
B.BYTES
C.UUID
D.TEXT
AnswerA

BYTEA is the equivalent of RAW for binary data.

Why this answer

Oracle RAW is a variable-length binary data type. PostgreSQL equivalent is BYTEA. UUID is for universally unique identifiers, but RAW can store any binary data, not just UUIDs.

TEXT is for strings, and BYTEA is the correct binary type.

72
MCQeasy

A company needs to migrate an on-premises Cassandra database to Google Cloud. They want a managed NoSQL database with high availability and low latency. Which service should they choose?

A.Cloud SQL
B.Cloud Spanner
C.Cloud Bigtable
D.Firestore
AnswerC

Bigtable is a NoSQL wide-column database, similar to Cassandra, and fully managed.

Why this answer

Cloud Bigtable is a fully managed NoSQL wide-column database that is ideal for migrating from Cassandra. It provides high availability, low latency, and horizontal scalability.

73
MCQeasy

An organization is migrating from on-premises Microsoft SQL Server to Cloud SQL for SQL Server. They want to use a lift-and-shift approach to minimize application changes. Which migration method is most appropriate?

A.Use Database Migration Service with continuous migration.
B.Use Cloud Dataflow to stream data from SQL Server to Cloud SQL.
C.Export the database as a .bacpac file and import it into Cloud SQL.
D.Create a dump file using SQL Server Management Studio and restore it in Cloud SQL using the gcloud command.
AnswerC

This is a straightforward lift-and-shift method that preserves the schema and data.

Why this answer

Lift-and-shift means moving the database as-is to the cloud with minimal changes. Cloud SQL for SQL Server is compatible with on-premises SQL Server. The easiest method is to export a .bacpac file from the source and import it into Cloud SQL via the console or import/export feature.

74
MCQmedium

An organization is migrating a MySQL database to Cloud SQL for MySQL. The source database uses the 'utf8' character set. To support emoji characters, what should they do before migration?

A.Change the character set to 'utf8mb4' on the source database before migration.
B.No change needed; 'utf8' supports emoji in Cloud SQL.
C.Use 'latin1' character set instead for better performance.
D.Enable the 'character_set_emoji' flag in Cloud SQL.
AnswerA

This ensures that emoji and other 4-byte characters are supported in Cloud SQL.

Why this answer

MySQL's 'utf8' character set does not support 4-byte Unicode characters like emojis. Cloud SQL for MySQL supports 'utf8mb4', which is the correct charset for full Unicode support.

75
MCQhard

During a MySQL 5.7 to Cloud SQL for MySQL 8.0 migration, the team notices that some queries that worked before are now failing with 'ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause'. What is the cause and solution?

A.The error is due to the removal of the GROUP BY implicit grouping in MySQL 8.0. Upgrade the application to include all non-aggregated columns in GROUP BY.
B.The GROUP BY behavior change is due to the new caching SHA-2 password plugin. Disable it.
C.The queries are using JSON functions that are incompatible with MySQL 8.0. Rewrite them.
D.The default SQL mode in MySQL 8.0 includes ONLY_FULL_GROUP_BY, which was not enabled in 5.7. Set sql_mode to exclude ONLY_FULL_GROUP_BY in Cloud SQL.
AnswerA

MySQL 8.0 enforces ONLY_FULL_GROUP_BY by default; queries must be fixed to include all non-aggregated columns.

Why this answer

MySQL 8.0 defaults to strict SQL mode, which changes GROUP BY behavior. MySQL 5.7 may have had sql_mode with ONLY_FULL_GROUP_BY disabled. The solution is to either enable ONLY_FULL_GROUP_BY in the source or adjust queries to comply, or set the sql_mode in Cloud SQL to include ONLY_FULL_GROUP_BY if not already set, and fix the queries.

Page 1 of 2 · 100 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Pcd Migrate Data questions.

CCNA Pcd Migrate Data Questions — Page 1 of 2 | Courseiva