HashiCorp
TA-002-P · Question #252
You have created a custom variable definition file my_vars.tfvars. How will you use it for provisioning infrastructure?
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #252. The question stem and answer options stay visible for context.
Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Question
You have created a custom variable definition file my_vars.tfvars. How will you use it for provisioning infrastructure?
Options
- Aterraform apply -var-state-file ="my_vars.tfvars"
- Bterraform apply var-file="my_vars.tfvars"
- Cterraform plan -var-file="my_vars.tfvar"
- Dterraform apply -var-file="my_vars.tfvars"
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#terraform apply#variables#tfvars files#CLI usage