Free Terraform Associate Exam Braindumps (page: 23)

Page 22 of 88

You need to constrain the GitHub provider to version 2.1 or greater.
Which of the following should you put into the Terraform 0.12 configuration's provider block?

  1. version >= 2.1
  2. version ~> 2.1
  3. version = ג€<= 2.1ג€
  4. version = ג€>= 2.1ג€

Answer(s): D

Explanation:


Reference:

https://github.com/hashicorp/terraform-provider-null/issues/31



You just scaled your VM infrastructure and realized you set the count variable to the wrong value. You correct the value and save your change.
What do you do next to make your infrastructure match your configuration?

  1. Run an apply and confirm the planned changes
  2. Inspect your Terraform state because you want to change it
  3. Reinitialize because your configuration has changed
  4. Inspect all Terraform outputs to make sure they are correct

Answer(s): A



Terraform provisioners that require authentication can use the ______ block.

  1. connection
  2. credentials
  3. secrets
  4. ssh

Answer(s): A



Terraform validate reports syntax check errors from which of the following scenarios?

  1. Code contains tabs indentation instead of spaces
  2. There is missing value for a variable
  3. The state files does not match the current infrastructure
  4. None of the above

Answer(s): D

Explanation:


Reference:

http://man.hubwiz.com/docset/Terraform.docset/Contents/Resources/Documents/docs/commands/validate.html






Post your Comments and Discuss HashiCorp Terraform Associate exam with other Community members:

Terraform Associate Exam Discussions & Posts