Examine the following Terraform configuration, which uses the data source for an AWS AMI.What value should you enter for the ami argument in the AWS instance resource?
Answer(s): C
resource "aws_instance" "web" {ami = data.aws_ami.ubuntu.id
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
FILL BLANK You need to specify a dependency manually.What resource meta-parameter can you use to make sure Terraform respects the dependency?Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
Answer(s): A
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains15 virtual machines (VM). You develop a Terraform configuration containing one VM, perform terraform apply, and see that your VM was created successfully.What should you do to delete the newly-created VM with Terraform?
Answer(s): B
What is the name assigned by Terraform to reference this resource?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.
https://www.terraform.io/docs/internals/debugging.html
Share your comments for HashiCorp Terraform Associate exam with other users:
question 14 - run terraform import: this is the recommended best practice for bringing manually created or destroyed resources under terraform management. you use terraform import to associate an existing resource with a terraform resource configuration. this ensures that terraform is aware of the resource, and you can subsequently manage it with terraform.
good one nice
nice questions