- (Exam Topic 3)
State locking does not happen automatically and must be specified at run
Correct Answer:
A
State locking happens automatically on all operations that could write state. https://www.terraform.io/docs/state/locking.html
- (Exam Topic 2)
The current implementation of Terraform import can only import resources into the state. It does not generate
configuration.
Correct Answer:
B
The current implementation of Terraform import can only import resources into the state. It does not generate configuration. A future version of Terraform will also generate configuration.
Because of this, prior to running terraform import it is necessary to write manually a resource configuration block for the resource, to which the imported object will be mapped.
While this may seem tedious, it still gives Terraform users an avenue for importing existing resources. https://www.terraform.io/docs/import/index.html#currently-state-only
- (Exam Topic 4)
What are the benefits of using Infrastructure as Code? (select five)
Correct Answer:
ACDF
If you are new to infrastructure as code as a concept, it is the process of managing infrastructure in a file or files rather than manually configuring resources in a user interface.
A resource in this instance is any piece of infrastructure in a given environment, such as a virtual machine, security group, network interface, etc. At a high level, Terraform allows operators to use HCL to author files containing definitions of their desired resources on almost any provider (AWS, GCP, GitHub, Docker, etc) and automates the creation of those resources at the time of application.
- (Exam Topic 2)
Please identify the offerings which are unique to Terraform Enterprise, and not available in either Terraform OSS, or Terraform Cloud. Select four.
Correct Answer:
ABE
https://www.hashicorp.com/products/terraform/pricing/
- (Exam Topic 1)
HashiCorp Configuration Language (HCL) supports user-defined functions.
Correct Answer:
B
https://www.terraform.io/language/functions
The Terraform language does not support user-defined functions, and so only the functions built into the language are available for use