- (Exam Topic 3)
What kind of resource dependency is stored in terraform.tfstate file?
Correct Answer:A
Terraform state captures all dependency information, both implicit and explicit. One purpose for state is to determine the proper order to destroy resources. When resources are created all of their dependency information is stored in the state. If you destroy a resource with dependencies, Terraform can still determine the correct destroy order for all other resources because the dependencies are stored in the state.
https://www.terraform.io/docs/state/purpose.html#metadata
- (Exam Topic 4)
A junior admin accidentally deleted some of your cloud instances. What does Terraform do when you run terraform apply?
Correct Answer:C
- (Exam Topic 1)
What features does the hosted service Terraform Cloud provide? (Choose two.)
Correct Answer:CD
https://www.terraform.io/enterprise/admin/infrastructure/backup-restore
- (Exam Topic 4)
In the example below, where is the value of the DNS record's IP address originating from?
* 1. resource "aws_route53_record" "www"
* 2. {
* 3. zone_id = aws_route53_zone.primary.zone_id
* 4. name = "www.example.com"
* 5. type = "A"
* 6. ttl = "300"
* 7. records = [module.web_server.instance_ip_address] 8. }
Correct Answer:B
In a parent module, outputs of child modules are available in expressions as module.<MODULE NAME>.<OUTPUT NAME>.
For example, if a child module named web_server declared an output named instance_ip_address, you could access that value as module.web_server.instance_ip_address.
- (Exam Topic 4)
Terraform configuration (including any module references) can contain only one Terraform provider type.
Correct Answer:B