- (Exam Topic 4)
Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requirements. (select three)
Correct Answer:CDE
https://www.terraform.io/docs/registry/modules/publish.html#requirements
- (Exam Topic 1)
What is the workflow for deploying new infrastructure with Terraform?
Correct Answer:D
Reference: https://www.google.com/search?q=Write+a+Terraform+configuration,+run+terraform+init,
+run+terraform+plan+to+view+planned+infrastructure+changes,+and+terraform+apply+to+create+new
+infrastructure.&oq=Write+a+Terraform+configuration,+run+terraform+init,+run+terraform+plan+to
+view+planned+infrastructure+changes,+and+terraform+apply+to+create+new
+infrastructure.&aqs=chrome..69i57.556j0j7&sourceid=chrome&ie=UTF-8
- (Exam Topic 4)
A module can always refer to all variables declared in its parent module.
Correct Answer:B
Modules do not inherit variables from the parent module. All modules are self-contained units. So you have to explicitly define variables in the child module, and then explicit set these variables in the parent module, when you instantiate the child module.
- (Exam Topic 3)
A user has created three workspaces using the command line - prod, dev, and test. The user wants to create a fourth workspace named stage. Which command will the user execute to accomplish this?
Correct Answer:A
The terraform workspace new command is used to create a new workspace. https://www.terraform.io/docs/commands/workspace/new.html
- (Exam Topic 1)
Where does the Terraform local backend store its state?
Correct Answer:C
https://www.terraform.io/language/state
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Reference: https://www.terraform.io/docs/language/settings/backends/local.html