- (Exam Topic 4)
What feature of Terraform Cloud and/or Terraform Enterprise can you publish and maintain a set of custom modules which can be used within your organization?
Correct Answer:
C
- (Exam Topic 4)
Which of the following is not an advantage of using infrastructure as code operations?
Correct Answer:
B
terraform is used to deploy the infrastructure, not to troubleshoot it
- (Exam Topic 2)
Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?
Correct Answer:
C
The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply.
This command will not modify infrastructure, but does modify the state file in order to mark a resource as tainted. Once a resource is marked as tainted, the next plan will show that the resource will be destroyed and recreated and the next apply will implement this change.
Forcing the recreation of a resource is useful when you want a certain side effect of recreation that is not visible in the attributes of a resource. For example: re-running provisioners will cause the node to be different or rebooting the machine from a base image will cause new startup scripts to run.
Note that tainting a resource for recreation may affect resources that depend on the newly tainted resource. For example, a DNS resource that uses the IP address of a server may need to be modified to reflect the potentially new IP address of a tainted server. The plan command will show this if this is the case.
https://www.terraform.io/docs/commands/taint.html
- (Exam Topic 3)
You have provisioned some aws resources in your test environment through Terraform for a POC work. After the POC, now you want to destroy the resources but before destroying them you want to check what resources will be getting destroyed through terraform. what are the options of doing that? (Select TWO)
Correct Answer:
AD
https://learn.hashicorp.com/terraform/getting-started/destroy
- (Exam Topic 4)
In the below configuration, how would you reference the module output vpc_id?
Type your answer in the field provided. The text field is not case sensitive and all variations of the correct answer are accepted.
Solution:
https://cloudcasts.io/course/terraform/community-vpc-module
Does this meet the goal?
Correct Answer:
A