Certopolis

HashiCorp Certified: Terraform Associate: study guide and free practice questions

The ideas the Terraform Associate (004) exam tests, one page each: what HashiCorp's documentation says, the traps the questions set, and real practice questions to try. Every page links to the docs it was written from.

Topics

Maintain infrastructure with Terraform

10 free practice questions

Drawn from every domain. Pick an answer to see why each option is right or wrong.

  1. Terraform is described as service-agnostic as well as cloud-agnostic. Which of the following does that mean it can manage?

    Right. In the game that’s Renown for your Infrastructure as Code (IaC) with Terraform building.

    Not that one: D is right. In the game your Infrastructure as Code (IaC) with Terraform building would lose a little Renown, and this question would come back later.

  2. Terraform splits the work between its own core and the provider plugins. Which of the following is the provider's responsibility rather than core's?

    Right. In the game that’s Renown for your Terraform fundamentals building.

    Not that one: A is right. In the game your Terraform fundamentals building would lose a little Renown, and this question would come back later.

  3. A scheduled job runs terraform apply and nobody is at a terminal to answer a prompt. Which of the following lets it finish?

    Right. In the game that’s Renown for your Core Terraform workflow building.

    Not that one: B is right. In the game your Core Terraform workflow building would lose a little Renown, and this question would come back later.

  4. A data block's arguments reference an attribute of a resource the same configuration has not created yet. What happens when you plan it?

    Right. In the game that’s Renown for your Terraform configuration building.

    Not that one: A is right. In the game your Terraform configuration building would lose a little Renown, and this question would come back later.

  5. Which of the following does HashiCorp recommend for arranging several modules in a configuration?

    Right. In the game that’s Renown for your Terraform modules building.

    Not that one: C is right. In the game your Terraform modules building would lose a little Renown, and this question would come back later.

  6. A configuration uses the local backend, and two people run apply from their own machines against the same infrastructure. Which of the following is true?

    Right. In the game that’s Renown for your Terraform state management building.

    Not that one: C is right. In the game your Terraform state management building would lose a little Renown, and this question would come back later.

  7. Two resources are being created in an order nobody expects, and the configuration is large. Which of the following shows the ordering Terraform derived?

    Right. In the game that’s Renown for your Maintain infrastructure with Terraform building.

    Not that one: A is right. In the game your Maintain infrastructure with Terraform building would lose a little Renown, and this question would come back later.

  8. Long-lived cloud keys stored as workspace variables are to be removed, while runs keep their access. Which of the following replaces them?

    Right. In the game that’s Renown for your HCP Terraform building.

    Not that one: A is right. In the game your HCP Terraform building would lose a little Renown, and this question would come back later.

  9. Some workloads run in a public cloud and some on a vSphere cluster on-premises. Which of the following describes managing both with Terraform?

    Right. In the game that’s Renown for your Infrastructure as Code (IaC) with Terraform building.

    Not that one: A is right. In the game your Infrastructure as Code (IaC) with Terraform building would lose a little Renown, and this question would come back later.

  10. A resource's recorded id is wrong and someone suggests opening the state file in an editor. Which of the following is the supported way to change it?

    Right. In the game that’s Renown for your Terraform fundamentals building.

    Not that one: B is right. In the game your Terraform fundamentals building would lose a little Renown, and this question would come back later.