Skip to content

You are viewing documentation for Instruqt 2.0 Labs - our upcoming product releasing in September 2026. For current Tracks documentation, please visitdocs.instruqt.com.

Match Question


Defined inquizzes.hcl

The match_question resource asks learners to pair items from two columns. Provide the correct pairings as key-value pairs in answer.

resource "match_question" "capitals" {
question = "Match each country to its capital."
answer = {
France = "Paris"
Japan = "Tokyo"
}
}

Fields

FieldTypeRequiredDescription
questionstringInstructions for the matching exercise
answermap(string)Map of items to their correct matches (e.g. country = capital)
hintslist(string)Optional hints that can be revealed to help learners
tagslist(string)Optional tags for organizing and filtering questions
resource "match_question" "ports" {
question = "Match each service to its default port."
answer = {
HTTP = "80"
HTTPS = "443"
SSH = "22"
}
hints = ["Think of the well-known port range"]
tags = ["networking"]
}