Terraform Associate Exam Page 1 (Dumps)
Question No:-1
|
The terraform.tfstate file always matches your currently built infrastructure.
1. True
2. False
|
Question No:-2
|
One remote backend configuration always maps to a single remote workspace.
1. True
2. False
|
Question No:-3
|
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
1. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud
2. It doesn't show the output of a terraform apply locally
3. It is only available to paying customers
4. All of the above
Answer:-1. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud
Note:-
If you and your team are using Terraform to manage meaningful infrastructure, we recommend using the remote backend with Terraform Cloud or Terraform
Enterprise.
For Reference:-
https://www.terraform.io/docs/language/settings/backends/index.html
|
|
Question No:-4
|
What is the workflow for deploying new infrastructure with Terraform?
1. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure.
2. Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure.
3. terraform import to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure.
4. Write a Terraform configuration, run terraform init, run terraform plan to view planned infrastructure changes, and terraform apply to create new infrastructure.
Answer:-4. Write a Terraform configuration, run terraform init, run terraform plan to view planned infrastructure changes, and terraform apply to create new infrastructure.
|
|
Question No:-5
|
A provider configuration block is required in every Terraform configuration.
Example:
provider "provider_name" {
...
}
1. True
2. False
|
Question No:-6
|
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.
Which of the following commands would you use first?
1. terraform taint null_resource.run_script
2. terraform apply -target=null_resource.run_script
3. terraform validate null_resource.run_script
4. terraform plan -target=null_resource.run_script
Answer:-1. terraform taint null_resource.run_script
Most user choose there answer as given below
|
|
Question No:-7
|
Which provisioner invokes a process on the resource created by Terraform?
1. remote-exec
2. null-exec
3. local-exec
4. file
|
Question No:-8
|
Which of the following is not true of Terraform providers?
1. Providers can be written by individuals
2. Providers can be maintained by a community of users
3. Some providers are maintained by HashiCorp
4. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers
5. None of the above
|
Question No:-9
|
What command does Terraform require the first time you run it within a configuration directory?
1. terraform import
2. terraform init
3. terraform plan
4. terraform workspace
|
Question No:-10
|
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?
1. Run terraform output ip_address to view the result
2. In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
3. Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
4. Run terraform destroy then terraform apply and look for the IP address in stdout
|
|