Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Database Engineer All Questions

View all questions & answers for the Professional Cloud Database Engineer exam

Exam Professional Cloud Database Engineer topic 1 question 18 discussion

Actual exam question from Google's Professional Cloud Database Engineer
Question #: 18
Topic #: 1
[All Professional Cloud Database Engineer Questions]

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

  • A. Create secondary indexes on the replica.
  • B. Create additional read replicas, and partition your analytics users to use different read replicas.
  • C. Disable replication on the read replica, and set the flag for parallel replication on the read replica. Re-enable replication and optimize performance by setting flags on the primary instance.
  • D. Disable replication on the primary instance, and set the flag for parallel replication on the primary instance. Re-enable replication and optimize performance by setting flags on the read replica.
  • E. Move your analytics workloads to BigQuery, and set up a streaming pipeline to move data and update BigQuery.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ssaporylo
Highly Voted 1 year, 10 months ago
Vote for AC A https://cloud.google.com/sql/docs/mysql/replication/read-replica-indexes increase performance on read operation C https://cloud.google.com/sql/docs/mysql/replication/manage-replicas#basic-steps-to-change-parallel-replication-flags
upvoted 7 times
...
dynamic_dba
Highly Voted 1 year, 8 months ago
B, C. You have 2 problems. Replication lag and slow report performance. E is eliminated because using BigQuery would mean changes to the current reports. Report slowness could be the result of poor indexing or just too much read load (or both!). Since excessive load is mentioned in the question, creating additional read replicas and spreading the analytics workload around makes B correct and eliminates A as a way to speed up reporting. That leaves the replication problem. Cloud SQL enables single threaded replication by default, so it stands to reason enabling parallel replication would help the lag. To do that you disable replication on the replica (not the primary), set flags on the replica and optionally set flags on the primary instance to optimize performance for parallel replication. That makes C correct and D incorrect. https://cloud.google.com/sql/docs/mysql/replication/manage-replicas#configuring-parallel-replication
upvoted 6 times
cardareel
1 year, 2 months ago
B isn't correct ==> "without making changes to the current reports". If you choose B, reports will need changes to point to the new instances.
upvoted 1 times
...
...
Lenifia
Most Recent 4 months, 3 weeks ago
Selected Answer: AC
The two main issues at hand are replication lag and slow report performance. While option B, creating additional read replicas, could address the load issue, it would require changes to the current reports, which is not desirable. Instead, option A, implementing secondary indexes in Cloud SQL, could enhance report speed without altering the reports. As for the replication lag, option C suggests enabling parallel replication in Cloud SQL, which is a plausible solution. To do that you disable replication on the replica (not the primary), set flags on the replica and optionally set flags on the primary instance to optimize performance for parallel replication. Therefore, considering the constraints and the context, options A and C are the most suitable choices.
upvoted 1 times
...
studymoreoften
5 months, 3 weeks ago
Selected Answer: BC
B - Addresses performance improvements: Reduce the burden on the primary instance by offloading replication work to multiple read replicas. https://cloud.google.com/sql/docs/mysql/replication#cascading-replicas C- Addresses lag time because Parallel replication reduces replication lag by increasing the number of SQL threads that work to execute these transactions. https://cloud.google.com/sql/docs/mysql/replication/manage-replicas#configuring-parallel-replication
upvoted 1 times
...
PKookNN
9 months, 2 weeks ago
Selected Answer: C
Just got this question and there is no A, and it is not 'choose two' but one answer only.
upvoted 3 times
...
cardareel
1 year, 2 months ago
There's no discussion about C. A & B both sounds reasonable. Why I would choose A instead of B? Due to keywords "without making changes to the current reports" and "MySQL". Option B would require to point to new IP addresses (the new read replicas) and split which group of users which run X reports and which group of user which run Y reports connect to which read replica. Option A (secondary indexes) is only available for Cloud SQL (the question's use case is about MySQL) and explicitly mentions "for reporting purposes".
upvoted 4 times
...
KennyHuang
1 year, 6 months ago
Selected Answer: BC
B. By creating additional read replicas, you can distribute the load of analytics workloads across multiple instances. Partitioning your analytics users to use different read replicas allows you to further distribute the workload and improve performance. This helps to alleviate the excessive load on the primary database and enhances the reporting experience for users. C. Disabling replication on the read replica can help reduce the data replication lag. By setting the flag for parallel replication on the read replica, you allow parallel execution of replication threads, which can expedite data replication. Additionally, optimizing performance by setting flags on the primary instance can help improve the overall performance of the replication process and reduce the lag experienced by the read replica.
upvoted 3 times
cardareel
1 year, 2 months ago
B isn't correct ==> "without making changes to the current reports". If you choose B, reports will need changes to point to the new instances.
upvoted 1 times
...
...
Hilab
1 year, 8 months ago
B. Create additional read replicas, and partition your analytics users to use different read replicas. D. Disable replication on the primary instance, and set the flag for parallel replication on the primary instance. Re-enable replication and optimize performance by setting flags on the read replica. Creating additional read replicas can distribute the analytics workload and reduce the lag in data replication. By partitioning your analytics users to use different read replicas, you can further reduce the load on each replica and improve performance.
upvoted 1 times
Hilab
1 year, 8 months ago
Disabling replication on the primary instance and setting the flag for parallel replication can improve the replication speed and reduce the lag in data replication. Once you have optimized performance on the primary instance, you can re-enable replication and optimize performance on the read replica. Creating secondary indexes on the replica may improve query performance but will not reduce the lag in data replication. Moving your analytics workloads to BigQuery and setting up a streaming pipeline to move data can provide near-real-time data but will require significant changes to your current reports.
upvoted 1 times
...
...
H_S
1 year, 8 months ago
Selected Answer: BC
B. Create additional read replicas, and partition your analytics users to use different read replicas. Most Voted C. Disable replication on the read replica, and set the flag for parallel replication on the read replica. Re-enable replication and optimize performance by setting flags on the primary instance.
upvoted 1 times
cardareel
1 year, 2 months ago
B isn't correct ==> "without making changes to the current reports". If you choose B, reports will need changes to point to the new instances.
upvoted 1 times
...
...
Nirca
1 year, 8 months ago
Selected Answer: BC
A. Create secondary indexes on the replica. - No indication that the reports will benefit from indexes. B. Create additional read replicas, and partition your analytics users to use different read replicas. --> might rebalance the load. C. Disable replication on the read replica, and set the flag for parallel replication on the read replica. Re-enable replication and optimize performance by setting flags on the primary instance. --> might add parallelism to the replication lag. D. Disable replication on the primary instance, and set the flag for parallel replication on the primary instance. Re-enable replication and optimize performance by setting flags on the read replica. --> na E. Move your analytics workloads to BigQuery, and set up a streaming pipeline to move data and update BigQuery.--> according to question statement , no SQL rewrite is possible.
upvoted 2 times
...
Swapnil54
1 year, 9 months ago
A & C looks fine.
upvoted 2 times
...
muky31dec
1 year, 10 months ago
Selected Answer: AC
Ans is AC
upvoted 3 times
...
muky31dec
1 year, 10 months ago
Creating secondary indexes on the replica can help improve the performance of the reports by allowing the read replica to quickly locate the data it needs without having to scan the entire table. This can help speed up the queries
upvoted 1 times
...
muky31dec
1 year, 10 months ago
Ans is AC
upvoted 1 times
...
csrazdan
1 year, 10 months ago
Selected Answer: BC
The question has 2 issues - replication lag and reports running slow. B - will address reports running snow since fewer uses will be on the replica server C - will address replication lag.
upvoted 4 times
muky31dec
1 year, 10 months ago
AC must correct choice in the situation.
upvoted 1 times
...
...
TFMV
1 year, 10 months ago
Moving workload to BQ is not an option. That, at a minimum, would require connection changes in the reports and the question specifically states that report changes are unacceptable. Aside from that, we do not know if the reports are being generated by a tool and whether that tool supports BQ.
upvoted 1 times
...
sp57
1 year, 11 months ago
AC - Not understanding votes for E, can't be done without some changes to reports.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...