Test details
This Terraform MCQ is designed for individuals who already have initial hands-on experience with Terraform.
It contains questions of a similar level to those found in the "HashiCorp Certified: Terraform Associate" certification and can therefore serve as good practice for preparing for the certification.
The topics covered by this questionnaire include:
- Fundamental concepts of Infrastructure as Code, the advantages of Terraform.
- How Terraform works, the plugins system, the providers.
- Writing simple Terraform code : resource, data, variables, and outputs.
- Writing advanced Terraform code: count, for_each, functions, and expressions.
- The Terraform workflow and its usage.
- Using backends and associated best practices.
- The use of modules.
The code samples used in the MCQ to illustrate the questions are based on the Scaleway and OVH providers, but no prior knowledge of these providers is required.
Test author : Julien Wittouck
Julien Wittouck, nice to meet you !
I'm a fan of Star Wars 💫, Dragon Ball 🐉, and seventies & nineties rock 🎸🤘.
I'm also a freelance Solution Architect 🏗️ and have been teaching Java / Spring development at Lille University 🎓 for nearly 10 years, and an associate at Ekité.
I'm an occasional speaker and member of the Cloud Nord conference organizing team.
My favorite topics:
☕: Java/Spring
🐋 : Docker/Kubernetes (CKAD certified)
🐧 : Linux 💙
☁️ : Cloud/IaC/Terraform (certified Terraform Associate, and CKAD)
I'm also the author of the book L'infrastructure as Code avec Terraform, published by ENI.
Sample question
Consider the following block of code:
locals {
region = "fr-par"
}
resource "scaleway_rdb_instance" "main" {
node_type = "DB-DEV-S"
engine = "PostgreSQL-11"
region = ______
}
How to set the region
parameter of the scaleway_rdb_instance.main
resource using the local variable?