61. What does terraform import do?
A. Imports existing resources into the state file
B. Imports all infrastructure from a given cloud provider
C. Imports a new Terraform module
D. Imports clean copies of tainted resources
E. None of the above
Answer
A
62. Which of the following is the correct way to pass the value in the variable num_servers into a module with the input server?
A. servers = var(num_servers)
B. $(var.num_servers)
C. servers = num_servers
D. servers = var.num_servers
Answer
D
63. A developer on your team is going to tear down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?
A. terraform destroy aws_instance.ubuntu[l]
B. terraform apply rm aws_instance.ubuntu[l]
C. terraform state rm aws_instance.ubuntu[l]
D. terraform plan rm aws_instance.ubuntu[l]
Answer
C
64. Before you can use a remote backend, you must first execute terraform init.
A. True
B. False
Answer
A
65. What does run a terraform plan do?
A. Compares your Terraform code and local state file to the remote state file in a cloud provider and determines if any changes need to be made
B. Imports all of your existing cloud provider resources to the state file
C. Installs all providers and modules referenced by configuration
D. Compares the state file to your Terraform code and determines if any changes need to be made
Answer
D
66. Which of the following statements about Terraform modules is not true?
A. Modules must be publicly accessible
B. You can call the same module multiple times
C. A module is a container for one or more resources
D. Modules can call other modules
Answer
A
67. How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? (Choose two.)
A. End-users have to request infrastructure changes
B. Ticket based systems generate a full audit trail of the request and fulfillment process
C. Users can access a catalog of approved resources from drop down lists m a request form
D. The more resources your organization needs, the more tickets your infrastructure team has to process
Answer
A, D
68. How do you specify a module’s version when publishing it to the public Terraform Module Registry?
A. Configure it in the module’s Terraform code
B. Mention it on the module s configuration page on the Terraform Module Registry
C. The Terraform Module Registry does not support versioning modules
D. Tag a release in the associated repo
Answer
D
69. The Terraform binary version and provider versions must match each other in a single configuration.
A. True
B. False
Answer
B
70. The .terraform.lock.hcl file tracks module versions.
A. True
B. False
Answer
B