TheRobotLearns Platform · ProxySQL: from first install to production

Backends, Topologies & High Availability — quiz

  • about 20 min read

Sources

Practice quiz

Try these as you read — answers are checked instantly and nothing is saved.

  1. Q1. You configure ProxySQL backends. Which table receives the hostgroup, hostname, and port values?

    Answer for question 1
  2. Q2. You create the MySQL monitor user. Which ProxySQL variable stores its username?

    Answer for question 2
  3. Q3. ProxySQL must send `read_only=0` servers to hostgroup 1. Which mapping does that?

    Answer for question 3
  4. Q4. Several rules match a query. Which setting stops later rules from being evaluated?

    Answer for question 4
  5. Q5. A user has `default_hostgroup=1`, and no query rule matches its SELECT. Which hostgroup receives the query?

    Answer for question 5
  6. Q6. You add `accounts` and `transactions` users. What sends each user to its shard?

    Answer for question 6
  7. Q7. A rule sends `shard_1` queries to hostgroup 1. Which columns does it set?

    Answer for question 7
  8. Q8. Which rule sends INSERTs for one `loc_id` value to hostgroup 0?

    Answer for question 8
  9. Q9. You added schema rules. Which command writes them to disk?

    Answer for question 9
  10. Q10. A query joins rows from two shards. What handles it?

    Answer for question 10
  11. Q11. Your ProxySQL is 2.0+, and the reader reports transactions. What backend setup still supports causal reads?

    Answer for question 11
  12. Q12. You are installing the MySQL Binlog Reader. Where should it run for best results?

    Answer for question 12
  13. Q13. Your MySQL config has `gtid_mode=ON`. Which setting makes the backend track its own session GTIDs?

    Answer for question 13
  14. Q14. You started the reader with `-l 3307`. Which admin command points `mysql_servers` rows to it?

    Answer for question 14
  15. Q15. A read needs a transaction that no destination-hostgroup server has applied. What may happen, and what fallback needs?

    Answer for question 15
  16. Q16. You want ProxySQL to listen for ClickHouse queries on port 6090. What activates that interface?

    Answer for question 16
  17. Q17. You give `clickhouse-port` an out-of-range value and run `LOAD CLICKHOUSE VARIABLES TO RUNTIME`. What happens to the runtime port?

    Answer for question 17
  18. Q18. You change `clickhouse-hostname` and load it while a backend connection is open. Which sessions see the new host?

    Answer for question 18
  19. Q19. After adding a user to `clickhouse_users`, what commands make it active and persistent?

    Answer for question 19
  20. Q20. Which ClickHouse type groups does ProxySQL support, with one example type from each group?

    Answer for question 20
  21. Q21. You try to bootstrap a router from the current ClickHouse setup. Which command do you run?

    Answer for question 21
  22. Q22. You need the ClickHouse MySQL-protocol listener port. Which value appears?

    Answer for question 22
  23. Q23. A DBA changes rows in the in-memory `clickhouse_users` table. Which command applies those changes to ProxySQL's runtime ClickHouse configuration?

    Answer for question 23
  24. Q24. You try to require certificate trust for metadata TLS. Which setting appears?

    Answer for question 24
  25. Q25. After loading ClickHouse user settings to runtime in ProxySQL, which layer shows the active ClickHouse user configuration?

    Answer for question 25
  26. Q26. If mysql_replication_hostgroups contains writer_hostgroup=1, reader_hostgroup=2, and comment='cluster1', how does ProxySQL classify backend servers during replication monitoring?

    Answer for question 26
  27. Q27. After UPDATE global_variables sets mysql-monitor_username and mysql-monitor_password, which command makes those monitoring settings active in the running ProxySQL instance?

    Answer for question 27
  28. Q28. What effect does starting ProxySQL with --clickhouse-server have in the ClickHouse module described here?

    Answer for question 28
  29. Q29. Which statements align with the sharding guidance for ProxySQL?

    Answer for question 29
  30. Q30. For the MySQL Binlog Reader causal-read scenario, which conditions are stated requirements?

    Answer for question 30
  31. Q31. Order the steps to deploy schema-based sharding so that shard_0, shard_1, and shard_2 route to their configured hostgroups.

    Answer for question 31
  32. Q32. Order the steps to add a ClickHouse client user and persist the setting.

    Answer for question 32
  33. Q33. Match each ProxySQL object or column to its role in backend placement and traffic routing.

    Answer for question 33
  34. Q34. Match each ClickHouse configuration element or behavior to the description from the module.

    Answer for question 34
  35. Q35. To make a newly inserted mysql_query_rules row effective in the running instance, execute the admin command: ____

    Answer for question 35
  36. Q36. Describe how the MySQL Binlog Reader and ProxySQL work together to support causal reads, including the key server configuration and the behavior when no reader has reached the required GTID position.

    Answer for question 36
  37. Q37. You need to send selected application queries to reader hostgroup 2, cache those reader results for 5000 ms, and rewrite query text when digest matching is not sufficient. Describe the mysql_query_rules fields and runtime persistence steps.

    Answer for question 37

Do more with an account

Backends, Topologies & High Availability — quiz — ProxySQL: from first install to production