Terraform Series - Q&A
1) Which of the following is not a valid variable type?
- list
- map
- item
- tuple
- object
2) Which of the following is not a valid data type?
- set
- tuple
- map
- list
- array
3) Which method has the highest priority in a variable declaration?
- terraform.tfvars
- variable definition file terraform.tfvars.json
- using .auto.tfvars
- command line flag of -var or -var-file
4) Which argument should be used to explicitly set dependencies for a resource?
- dependent
- resource_depend
- depend_on
- depends_on
5) How do we make use of implicit dependency?
- datasources
- reference expresssions
- variables
- depends_on
6) Which location is the terraform state file stored by default?
- /tmp
- Inside the configuration directory.
- /root/terraform-projects
- /root
7) Which option should we use to disable state?
- -state=false
- We cannot disable state
- -nostate
- -refresh=false
8)Which format is the state file stored in default?
- JSON
- XML
- TOML
- YAML
9) Which of the following commands does NOT refresh the state?
- terraform init
- terraform apply
- terraform plan
10) What is the name of the state file created by default?
- terraform.tfstate
- .terraform
- state.tf
- terraform.tfvars
11) Which command can create a visual representation of our terraform resources?
- terraform map
- terraform flow
- terraform graph
- terraform view
- terraform console
12) Which one is a valid sub-command of the terraform providers command?
- update
- status
- list
- mirror
13) Which of the following provisions does not need a connection block defined?
- file provisioner
- remote-exec
- local-exec
14) Which environment variable should be used to export logs to a specific path?
- VAR_TF_LOG
- var.TF_LOG
- TF_LOG_PATH
- TF_LOG
15) Which log level provides the most details when you run terraform command?
- WARN
- ERROR
- TRACE
- LOG_LEVEL=5
Comments
Post a Comment