title: Quiz 1
description: This quiz is to test your understanding of the output of the `tiup cluster display` command.
allow_repeat_submission: true
evaluate_immediately: true
show_correct_answer: true

questions:
  - type: MultipleChoice
    question: Which of the following statements correctly describe TiDB? (Select all that apply)
    options:
      - id: 1
        text: TiDB is a distributed SQL database.
        correct: true
      - id: 2
        text: TiDB is compatible with the MySQL protocol.
        correct: true
      - id: 3
        text: TiDB supports Hybrid Transactional and Analytical Processing (HTAP) workloads.
        correct: true
    explanation: TiDB is designed as a distributed SQL database system that enables horizontal scalability and high availability. It is compatible with the MySQL protocol, allowing existing MySQL applications and tools to work with TiDB. Additionally, TiDB supports Hybrid Transactional and Analytical Processing (HTAP), enabling both real-time analytics and transactional workloads on the same platform.

  - type: SingleChoice
    question: Which command you can use to display the cluster general status?
    options:
      - id: 1
        text: Command `tiup cluster display`.
        correct: true
      - id: 2
        text: Command `tiup display cluster`.
      - id: 3
        text: Command `tiup cluster show`.
      - id: 4
        text: Command `tiup cluster topology`.
    explanation: Execute command `tiup cluster display tidb-demo` on the TiUP control machine to display the cluster general status. tidb-demo is the cluster name.

  - type: SingleChoice
    question: All TiDB servers are deployed in the same subnet.
    options:
      - id: 1
        text: "True"
      - id: 2
        text: "False"
        correct: true
    explanation: Execute command `tiup cluster display tidb-demo` on the TiUP control machine to display the cluster general status. In the output table, the `Role` column shows the role of the server. If the `Role` column is `tidb`, the server is a TiDB server. The `Host` column shows the IP address of the server. They are in different subnets.

  - type: SingleChoice
    question: How many subnets are the Placement Driver (PD) and TiKV servers deployed across?
    options:
      - id: 1
        text: "1 subnet"
      - id: 2
        text: "2 subnets"
      - id: 3
        text: "3 subnets"
        correct: true
      - id: 4
        text: "4 subnets"
    explanation: Execute command `tiup cluster display tidb-demo` on the TiUP control machine to display the cluster general status. In the output table, the `Role` column shows the role of the server. Check the `Role` column for `tikv` and `pd`, they are in 3 different subnets.
