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 10 discussion

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

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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
hanayome
5 months, 3 weeks ago
Selected Answer: A
obviously A
upvoted 1 times
...
Tempingtron
7 months, 2 weeks ago
Selected Answer: A
Other options don't directly resolve the issue. B is the worst answer since it disrupts the whole read setup.
upvoted 2 times
...
whoosh
10 months, 2 weeks ago
Selected Answer: A
Definitely A.
upvoted 3 times
...
goodsport
1 year, 1 month ago
Selected Answer: A
Definitely A.
upvoted 3 times
...
felipeschossler
1 year, 6 months ago
Selected Answer: A
A. Optimize query for resolve replication lag. Docs: https://cloud.google.com/sql/docs/mysql/replication/replication-lag#optimize_queries_and_schema
upvoted 4 times
...
BenMS
1 year, 7 months ago
Selected Answer: B
I would have thought that recreating your replicas should be a standard action as part of a major client software release - especially one that potentially makes structural changes to the DB, as implied by the description here. Option B seems to me like the most effective solution in this scenario, as well as the simplest.
upvoted 1 times
...
dynamic_dba
1 year, 7 months ago
A. High replication lag is caused when the write load is too high for the replica to handle. Other causes include slow running queries on the replica, tables not having PKs thus forcing FTS, queries like DELETE…WHERE. Possible solutions are configure parallel replications, increase the size of the replica, send read traffic to the read replica, index the tables, identify and fix slow write queries, recreate the replica. To increase the throughput of replication increase the flag slave_parallel_workers. B is possible but should not be the first option. C and D add resource but don’t fix the issue. As others have said, the issue could be network related and additional traffic is mentioned in the question. A is still the best answer.
upvoted 4 times
...
Nirca
1 year, 8 months ago
Selected Answer: A
A. But in reality, none. You need to analyze the root cause. Network connection latency or bandwidth might be relevant too.
upvoted 2 times
felipeschossler
1 year, 6 months ago
It's true, none options seems to be right here because you need to analyze everything first.
upvoted 1 times
...
...
ssaporylo
1 year, 10 months ago
Vote for A
upvoted 1 times
...
chelbsik
1 year, 10 months ago
Selected Answer: A
Vote for A
upvoted 2 times
...
pk349
1 year, 10 months ago
A: Identify and optimize slow running queries, or set parallel ***** replication flags.
upvoted 2 times
...
GCP72
1 year, 10 months ago
Selected Answer: A
A & C is correct but A is the best answer
upvoted 2 times
...
jitu028
1 year, 10 months ago
Selected Answer: A
correct answer - A https://cloud.google.com/sql/docs/mysql/replication/manage-replicas#:~:text=Replication%20lag%20is%20consistently,Find%20and%20fix%20them.
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago