Sequence Question
The sequence_question resource asks learners to arrange items in the correct order. List the items in their correct sequence in answer — order matters.
HCL Syntax
Section titled “HCL Syntax”Basic Syntax
Section titled “Basic Syntax”resource "sequence_question" "boot" { question = "Order these boot stages from first to last." answer = ["BIOS", "Bootloader", "Kernel", "Init"]}Fields
| Field | Type | Required | Description |
|---|---|---|---|
question | string | ✓ | Instructions for the ordering exercise |
answer | list(string) | ✓ | List of items in the correct sequence — order matters ConstraintsAt least two items are required for a sequence |
hints | list(string) | — | Optional hints that can be revealed to help learners |
tags | list(string) | — | Optional tags for organizing and filtering questions |
Examples
Section titled “Examples”With hints
Section titled “With hints”resource "sequence_question" "deploy" { question = "Arrange the deployment steps in order." answer = ["Build", "Test", "Stage", "Release"] hints = ["Nothing ships before it is tested"] tags = ["ci-cd"]}