Questions for the TERRAFORM ASSOCIATE were updated on : Nov 16 ,2024
The terraform.tfstate file always matches your currently built infrastructure.
B
Explanation:
Reference:
https://www.terraform.io/docs/language/state/index.html
One remote backend configuration always maps to a single remote workspace.
A
Explanation:
Reference:
https://www.terraform.io/docs/language/settings/backends/remote.html
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
A
Explanation:
If you and your team are using Terraform to manage meaningful infrastructure, we recommend using
the remote backend with Terraform Cloud or Terraform Enterprise.
Reference:
https://www.terraform.io/docs/language/settings/backends/index.html
What is the workflow for deploying new infrastructure with Terraform?
C
Explanation:
Reference:
https://www.google.com/search?q=Write+a+Terraform+configuration%2C+run+terraform+init%2C
+run+terraform+plan+to+view+planned+infrastructure+changes%2C+and+terraform+apply+to+creat
e+new
+infrastructure.&oq=Write+a+Terraform+configuration%2C+run+terraform+init%2C+run+terraform+
plan+to
+view+planned+infrastructure+changes%2C+and+terraform+apply+to+create+new
+infrastructure.&aqs=chrome..69i57.556j0j7&sourceid=chrome&ie=UTF-8
A provider configuration block is required in every Terraform configuration.
Example:
A
Explanation:
Reference:
https://github.com/hashicorp/terraform/issues/17928
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?
A
Which provisioner invokes a process on the resource created by Terraform?
A
Explanation:
The remote-exec provisioner invokes a script on a remote resource after it is created. Reference:
https://www.terraform.io/docs/language/resources/provisioners/remote-exec.html
Which of the following is not true of Terraform providers?
D
Explanation:
Reference:
https://jayendrapatil.com/terraform-cheat-
sheet/#Terraform_Read_and_write_configuration
What command does Terraform require the first time you run it within a configuration directory?
B
Explanation:
terraform init command is used to initialize a working directory containing Terraform configuration
files. Reference:
https://www.terraform.io/docs/cli/commands/init.html
You have deployed a new webapp with a public IP address on a clod 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?
A
Explanation:
Reference:
https://www.terraform.io/docs/cli/commands/output.html
Which of the following is not a key principle of infrastructure as code?
ABD
Explanation:
Reference:
https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as
-
code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%20environment's%20starting%
20state.
Terraform variables and outputs that set the "description" argument will store that description in the
state file.
B
Explanation:
Reference:
https://www.terraform.io/docs/language/values/outputs.html
What is the provider for this fictitious resource?
C
Explanation:
Reference:
https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
A
What is not processed when running a terraform refresh?
CD
Explanation:
Reference:
https://www.terraform.io/docs/cli/commands/refresh.html