Question - 1
What is the file format of Terraform code files?
Answer- C
Question - 2
Which of the following files are processed by terraforming?
- .tf and .tf.json
- .tf only
- .tm only
- all text files
Solutions
Answer- A
Question - 3
_______ files are processed last.
Answer- C
Question - 4
Terraform is a ____________ language.
- Objective
- Declarative
- Functional
- Descriptive
Solutions
Answer- C
Question - 5
Command to delete all the cloud resources built by previous terraform apply commands.
- terraform delete
- terraform destroy
- terraform remove
- terraform undo
Solutions
Answer- C
Question - 6
Terraform is licensed under_____________.
- Mozilla Public License v2.0
- GPL
- Apache License 2.0
- Opensource
Solutions
Answer- A
Question - 7
What is the name of the terraform state file?
- terraform.firststate
- terraform.tfstate
- Both A and B
- None of these
Solutions
Answer- B
Question - 8
You configure Multiple Provider Instances with the help of _______.
- method
- version
- alias
- All of the above
Solutions
Answer- C
Question - 9
Terraform is written in ________.
- Angular
- C/C++
- Go Programming
- Python
Solutions
Answer- C
Question - 10
Terraform is developed by ______.
- Adobe
- HashiCorp
- Google
- Amazon
Solutions
Answer- B
Question - 11
What environment variable lets Terraform know it's running in an automation context?
- TF_AUTO_YES
- TF_IN_AUTOMATION
- TF_AUTOMATION
- TF_AUTOMATION_TRUE
Solutions
Answer- B
Question - 12
Which option tells Terraform to use a local directory for plugins?
- -plugin-dir=
- -plugin-local=
- -plugin-source=
- -init-dir=
Solutions
Answer- A
Question - 13
Why would you use the option "-input=false" when running terraform init?
- It disables the use of variable files for input.
- It ensures that Terraform only generates output.
- It prevents Terraform from import files.
- It prevents Terraform from prompting the user for input.
Solutions
Answer- D
Question - 14
Where can you find official modules to use with Terraform?
- You have to request them from Hashicorp
- On the provider’s website
- On the Terraform module repository
- You must create your own
Solutions
Answer- C
Question - 15
What command must be run to configure the backend in Terraform?
- terraform fmt
- terraform plan
- terraform init
- terraform backend
Solutions
Answer- C
Question - 16
which of the following isn't indicative of anything in the output of terraform plan?
- + to show what will be added
- = to show what will remain unchanged
- - to show what will be removed
- ~ to show what will be modified
Solutions
Answer- A
Question - 17
What is releasing year of Terraform?
- July 28, 2014
- March 15, 2010
- July 24, 2013
- May 17, 2011
Solutions
Answer- A
Question - 18
Terraform is a__________.
Answer- C
Question - 19
Two things you need to connect to your AWS infrastructure using Terraform code (in terms of credentials):
- Secret access key only
- Access key ID only
- Access key ID and Secret access key
- Access key ID, Secret access key and root username
Solutions
Answer- A
Question - 20
- Cloudformation
- Terraform
- Both A and B
- None of these
Solutions
Answer- B
Practice more set questions