Examen blanc : Terraform Associate (004)

Banque de 100 questions · examen blanc chronométré 60 min

Page de l'examen chez l'éditeur (s'ouvre dans un nouvel onglet) Guide officiel de l'examen (s'ouvre dans un nouvel onglet) Cours de préparation officiel (s'ouvre dans un nouvel onglet)

  • Configuration Terraform 22 questions
  • Workflow Terraform de base 20 questions
  • Fondamentaux de Terraform 12 questions
  • Modules Terraform 10 questions
  • Gestion de l'état Terraform 10 questions
  • HCP Terraform 10 questions
  • Infrastructure as Code (IaC) avec Terraform 8 questions
  • Maintenir l'infrastructure avec Terraform 8 questions

Gratuit : 25 questions en mode étude, tous domaines, sans compte.

Abonnement : les 100 questions de cette certification, le mode examen chronométré, et toutes les autres certifications.

S'abonner · 9,99 € / mois

Paiement sécurisé par carte (Stripe) · Sans engagement · Résiliable en ligne

Préparer Terraform Associate avec InfraPrep

Les 100 questions couvrent 8 domaines : Configuration Terraform, Workflow Terraform de base, Fondamentaux de Terraform, Modules Terraform, Gestion de l'état Terraform, HCP Terraform, Infrastructure as Code (IaC) avec Terraform, Maintenir l'infrastructure avec Terraform. 25 d'entre elles sont gratuites, sans compte.

Mode étude

Répondez à votre rythme : chaque réponse est corrigée immédiatement, avec une explication et le lien vers la documentation sur laquelle elle s'appuie.

Mode examen

Un examen chronométré de 60 minutes, avec un plan des questions pour y revenir avant de valider.

Résultats par domaine

Votre score est détaillé par domaine : vous savez quoi revoir en priorité.

Questions originales

Chaque question est rédigée à partir de la documentation publique, jamais copiée de l'examen. Vous pouvez contester une réponse depuis le mode étude.

5 exemples de questions gratuites

Ces questions sont rédigées en anglais.

Question 1 Infrastructure as Code (IaC) avec Terraform

A new engineer switching from an imperative scripting tool to Terraform asks how Terraform's configuration language works. Which statement correctly explains Terraform's Infrastructure as Code approach?

  1. Terraform configuration describes the exact sequence of API calls Terraform must execute, in the order they appear in the files
  2. Terraform configuration is declarative: it describes the intended end state of the infrastructure rather than the steps needed to reach it
  3. Terraform configuration is imperative: each block executes as a command in file order, like a shell script
  4. The order in which resource blocks are written in a file determines the order in which Terraform creates the corresponding infrastructure
Voir la réponse et l'explication

Bonne réponse : B

The Terraform language is declarative, describing an intended goal rather than the steps to reach that goal.

Source : documentation officielle

Question 2 Fondamentaux de Terraform

A team wants to pin the AWS provider to a specific version range and have Terraform install that provider automatically before the first plan. Where should they declare the version constraint, and which command installs the provider?

  1. In a `providers.lock` file that must be created manually before running any Terraform command
  2. Provider versions cannot be constrained; Terraform always installs the latest available version
  3. In `required_providers` with a version constraint; `terraform init` installs the provider
  4. In a `provider "aws" { version = "..." }` block only; running `terraform apply` installs it
Voir la réponse et l'explication

Bonne réponse : C

Running terraform init locally installs a provider and updates the dependency lock file with the latest version matching the version string you configured in your required_providers block.

Source : documentation officielle

Question 3 Workflow Terraform de base

An engineer just wrote a brand-new Terraform configuration in an empty directory. Which command must be run first, before `plan` or `apply` will work?

  1. terraform fmt
  2. terraform validate
  3. terraform plan
  4. terraform init
Voir la réponse et l'explication

Bonne réponse : D

The terraform init command initializes a working directory containing Terraform configuration files; this is the first command you should run after writing a new Terraform configuration or cloning an existing configuration from version control.

Source : documentation officielle

Question 4 Configuration Terraform

What is the fundamental difference between a `resource` block and a `data` block in a Terraform configuration?

  1. A `data` block can only be used inside modules; it cannot be used in root configurations
  2. `resource` creates infrastructure; `data` only fetches it from the provider
  3. Both blocks create infrastructure; the only difference is naming convention
  4. `resource` reads information; `data` creates infrastructure
Voir la réponse et l'explication

Bonne réponse : B

the resource block defines a piece of infrastructure and specifies the settings for Terraform to create it with, while data sources fetch data from the provider, but do not create or modify resources.

Source : documentation officielle

Question 5 Modules Terraform

A platform module accepts a `region` value from whichever root configuration calls it, and that value cannot be seen or reused by unrelated root configurations that don't call the module. Which statement best describes this behavior?

  1. The module's input variables accept values from the calling module, scoping the value to that particular module call
  2. All variables in a Terraform project are global and visible from any module regardless of how modules are called
  3. Variable scope is controlled by the `alias` argument on the module block
  4. Only output values are scoped to a module; input variables are always global
Voir la réponse et l'explication

Bonne réponse : A

modules commonly use input variables to accept values from the calling module, and a module may call other modules, connecting them by passing output values from one to input values of another.

Source : documentation officielle

Questions fréquentes

Y a-t-il des questions gratuites, faut-il un compte ?

Oui. 25 questions de cette certification sont gratuites en mode étude, sur tous ses domaines, sans abonnement et sans inscription. Le compte est créé quand vous vous abonnez, à la commande.

Comment fonctionne l'abonnement, et peut-on résilier ?

Un seul abonnement mensuel couvre toutes les certifications et les examens blancs chronométrés. Il n'y a pas de durée minimale. Vous résiliez en ligne, à tout moment, avec la fonction « Résilier votre contrat » dans Mon compte ; la résiliation prend effet à la fin du mois déjà payé, puis aucun nouveau prélèvement n'a lieu.

D'où viennent les questions ?

Chaque question est originale, rédigée à partir de la documentation publique de l'éditeur. Chaque réponse est accompagnée d'une explication et d'un lien vers la page de documentation sur laquelle elle s'appuie. InfraPrep n'est pas affilié aux éditeurs ; les noms de certifications appartiennent à leurs propriétaires.

Dans quelle langue sont les questions ?

Les questions sont rédigées en anglais, y compris sur la version française du site.

Le catalogue évolue-t-il ?

Oui, le catalogue évolue : de nouvelles certifications et de nouvelles questions sont ajoutées.