TheRobotLearns Platform · ProxySQL: from first install to production

PostgreSQL Track — quiz

  • about 20 min read

Sources

Practice quiz

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

  1. Q1. Which command opens ProxySQL's PostgreSQL-compatible Admin interface?

    Answer for question 1
  2. Q2. You inserted `pgsql_servers` rows, but routing did not change. Which command makes them live?

    Answer for question 2
  3. Q3. Which columns identify a new row in `pgsql_servers`?

    Answer for question 3
  4. Q4. What must exist on the primary PostgreSQL server for monitoring?

    Answer for question 4
  5. Q5. After `LOAD PGSQL SERVERS TO RUNTIME`, which table lists active servers?

    Answer for question 5
  6. Q6. You add a `pgsql_users` row for a PostgreSQL application user. Which pair must be set to 1 now?

    Answer for question 6
  7. Q7. You give `appuser` a `default_hostgroup` and add no matching query rule. Where does its traffic go?

    Answer for question 7
  8. Q8. You set `fast_forward=1` for a PostgreSQL user. What does ProxySQL do?

    Answer for question 8
  9. Q9. You want a PostgreSQL client to connect through ProxySQL port `6133`. What must exist first?

    Answer for question 9
  10. Q10. You insert a row into `pgsql_query_rules`. Which command applies it to the running proxy?

    Answer for question 10
  11. Q11. You want ProxySQL to ignore a rule without deleting it. What should the rule contain?

    Answer for question 11
  12. Q12. Two active rules match the same query. One has `rule_id=10`, and the other has `rule_id=20`. Which can take effect first?

    Answer for question 12
  13. Q13. You need ProxySQL to support PostgreSQL Extended Query Protocol with full prepared statement handling. What version is required?

    Answer for question 13
  14. Q14. You want to inspect per-query PostgreSQL traffic grouped by hostgroup. Which table holds the rows for the example query?

    Answer for question 14
  15. Q15. You are checking the support line for PostgreSQL Extended Query Protocol. State the two mechanisms named for prepared statement handling.

    Answer for question 15
  16. Q16. You want the architecture names for statement-cache state. Name the three items listed under Extended Query Architecture.

    Answer for question 16
  17. Q17. You follow PostgreSQL Extended Query Lifecycle. Which option names only the lifecycle flows?

    Answer for question 17
  18. Q18. You plan observability for PostgreSQL prepared statements. Which area names detailed caching mechanics, three-tier mapping, and observability?

    Answer for question 18
  19. Q19. You need PostgreSQL statement counts and time by hostgroup. Which table gives the rows to aggregate?

    Answer for question 19
  20. Q20. You need PostgreSQL query type distribution and execution times. Which table matches that description?

    Answer for question 20
  21. Q21. A query matches rule 10, and later rules must not run. Which setting stops further rule evaluation?

    Answer for question 21
  22. Q22. You edited `pgsql_users` and want frontend connections to stop at a per-user cap. Which field controls that cap?

    Answer for question 22
  23. Q23. A DBA wants to open a psql session to manage ProxySQL's PostgreSQL configuration. Which port should the session target?

    Answer for question 23
  24. Q24. After pgsql_servers is changed and the matching LOAD command is issued, which table exposes the active backend definitions used by the runtime?

    Answer for question 24
  25. Q25. A DBA plans to rely on PostgreSQL extended query behavior with prepared statements. What version condition does the documentation state?

    Answer for question 25
  26. Q26. Which pgsql_users fields are used to control transaction stickiness, query-processing bypass, and per-user frontend connection limits?

    Answer for question 26
  27. Q27. Which actions are part of the documented PostgreSQL configuration promotion workflow?

    Answer for question 27
  28. Q28. Order the steps shown for adding a PostgreSQL backend server and making the change effective in ProxySQL.

    Answer for question 28
  29. Q29. Place the extended query lifecycle phases in the order shown in the PostgreSQL extended query documentation.

    Answer for question 29
  30. Q30. Match each pgsql_users field to the role described in the PostgreSQL users documentation.

    Answer for question 30
  31. Q31. Match each PostgreSQL monitoring-related configuration term to its documented purpose.

    Answer for question 31
  32. Q32. To confirm that an application can reach backend PostgreSQL through ProxySQL, the guide uses psql -h 127.0.0.1 -p____ -U appuser -d mydatabase.

    Answer for question 32
  33. Q33. An admin inserts rule_id 10 and rule_id 20 for appuser, both with active=1, both with destination_hostgroup values, and only rule_id 20 has apply=1. After LOAD PGSQL QUERY RULES TO RUNTIME, how should rule evaluation be described?

    Answer for question 33
  34. Q34. A DBA wants to measure PostgreSQL traffic per hostgroup and also inspect pooling and command timing. Which ProxySQL statistics sources should be queried, and what aggregate should be used?

    Answer for question 34

Do more with an account