Filters
Zo zoek je
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • "twee woorden" vindt precies die zin.
  • --naam of -x vindt een optie.
  • #woord zoekt alleen in commando's.
  • @grep vindt lessen en labs die grep gebruiken.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Zet ! voor een woord om het weg te laten. OR tussen woorden betekent één ervan.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken

Hoofdstuk 13Naam in de cursus: Exam preparation

Review Terraform and get ready for the exam

The Terraform Associate exam is multiple choice (with some multi-select and "fill in" answers), 1 hour. Check yourself with these tasks, then do practice questions until you are sure.

  • 4 Lessen
  • 2 Commando's

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

13.1

Workflow and fundamentals

Commands and what they do.

QuestionShort answer
Which command downloads providers?terraform init — lesson
Which file pins the exact provider versions?.terraform.lock.hcl — commit it — lesson
~> 4.20 allows which versions?4.20 and newer 4.x, not 5.0 — lesson
Use a second Azure subscription in one configA provider block with alias, provider = azurerm.dr — lesson
Check the style in CI without changing filesterraform fmt -check — lesson
Apply exactly the reviewed planplan -out=tfplan, then apply tfplan — lesson

13.2

Configuration

Blocks, types, expressions, conditions and secrets.

QuestionShort answer
Read an existing resource group without managing itdata "azurerm_resource_group" — lesson
Which variable value wins: tfvars or -var?-var on the command line — lesson
One subnet per map entry, stable addressesfor_each — lesson
Repeat NSG rule blocks from a listdynamic "security_rule" — lesson
Never let Terraform delete the databaselifecycle { prevent_destroy = true } — lesson
Warn (not fail) when a health URL is downA check block — lesson
Does sensitive = true encrypt the state?No, it only hides output — lesson

13.3

Modules, state and maintenance

Reuse, state, import and debugging.

QuestionShort answer
Can a child module read var.env of the root?No — pass it as an input — lesson
Pin a Git module to a version?ref=v1.2.0 in the source — lesson
Two people run apply at onceState locking blocks the second — lesson
Only update state with real valuesterraform apply -refresh-only — lesson
Bring an existing VNet under Terraformimport block (+ -generate-config-out) — lesson
Rename a resource without destroying itmoved block (or state mv) — lesson
See provider API errors in detailTF_LOG=DEBUG — lesson
Block plans with public IPs in a teamPolicy as code in HCP Terraform — lesson

13.4

Plan the exam day

Online proctored exam, about 57 questions in 60 minutes.

  • Read every word: "which is NOT", "choose two".
  • Many questions are about what a command does and where a setting lives.
  • Hands-on practice beats reading: if you built the Azure project, most answers come from memory.

Next: Git and GitHub Actions for the pipeline around the code.

Alle commando's in dit hoofdstuk