Free Terraform Associate Exam Braindumps (page: 5)

Page 4 of 113

What is the provider for this fictitious resource?

  1. vpc
  2. main
  3. aws
  4. test

Answer(s): C


Reference:

https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html



If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

  1. Run terraform refresh
  2. It will happen automatically
  3. Manually update the state fire
  4. Run terraform import

Answer(s): A


Reference:

https://www.terraform.io/cli/commands/refresh#:~:text=The%20terraform%20refresh%20command%20reads%20the%20current%20settings%20from%20all%20managed%20remote%20objects%20and%20updates%20the%20Terraform%20state%20to%20match.



What is not processed when running a terraform refresh?

  1. State file
  2. Configuration file
  3. Credentials
  4. Cloud provider

Answer(s): B

Explanation:

"The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match."



What information does the public Terraform Module Registry automatically expose about published modules?

  1. Required input variables
  2. Optional inputs variables and default values
  3. Outputs
  4. All of the above
  5. None of the above

Answer(s): D

Explanation:

"The registry extracts information about the module from the module's source. The module name, provider, documentation, inputs/outputs, and dependencies are all parsed and available via the UI or API, as well as the same information for any submodules or examples in the module's source repository."


Reference:

https://www.terraform.io/registry/modules/publish






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

Terraform Associate Discussions & Posts