title: 知识回顾 1
description: 本知识回顾旨在考查你对 `tiup cluster display` 命令输出的理解。
allow_repeat_submission: true
evaluate_immediately: true
show_correct_answer: true

questions:
  - type: MultipleChoice
    question: 以下哪些说法正确描述了 TiDB？（可多选）
    options:
      - id: 1
        text: TiDB 是一个分布式 SQL 数据库。
        correct: true
      - id: 2
        text: TiDB 兼容 MySQL 协议。
        correct: true
      - id: 3
        text: TiDB 支持 HTAP（混合事务与分析处理）负载。
        correct: true
    explanation: TiDB 被设计为具备水平拓展和高可用性的分布式 SQL 数据库系统。它兼容 MySQL 协议，可以直接支持现有的 MySQL 应用和工具。此外，TiDB 支持 HTAP（混合事务与分析处理），能够在同一平台上同时满足实时分析和事务处理的需求。

  - type: SingleChoice
    question: 以下哪个命令可以用来显示集群的整体状态？
    options:
      - id: 1
        text: 命令 `tiup cluster display`。
        correct: true
      - id: 2
        text: 命令 `tiup display cluster`。
      - id: 3
        text: 命令 `tiup cluster show`。
      - id: 4
        text: 命令 `tiup cluster topology`。
    explanation: 在 TiUP 控制机上执行命令 `tiup cluster display tidb-demo` 可以显示集群的整体状态。其中 tidb-demo 是集群名称。

  - type: SingleChoice
    question: 所有 TiDB 服务器都部署在同一个子网中吗？
    options:
      - id: 1
        text: "是"
      - id: 2
        text: "否"
        correct: true
    explanation: 在 TiUP 控制机上执行 `tiup cluster display tidb-demo` 后，输出表格中的 `Role` 列显示服务器的角色。如果 `Role` 是 `tidb`，对应的服务器为 TiDB 服务器。`Host` 列显示服务器的 IP 地址，可以看到这些服务器分布在不同的子网中。

  - type: SingleChoice
    question: Placement Driver 服务器和 TiKV 服务器分别部署在多少个子网中？
    options:
      - id: 1
        text: "1 个子网"
      - id: 2
        text: "2 个子网"
      - id: 3
        text: "3 个子网"
        correct: true
      - id: 4
        text: "4 个子网"
    explanation: 在 TiUP 控制机上执行 `tiup cluster display tidb-demo` 后，可以看到输出表中的 `Role` 列，检查 `tikv` 和 `pd`，它们分布在 3 个不同的子网中。
