17th
Apr
Terraform MCQ

Terraform MCQ

  • Admin
  • 17th Apr, 2021
  • 1082 Followers

Terraform MCQ Questions

Following are mostly asked Terraform MCQ test that are designed for professionals like you to crack you interviews. You can take this Terraform online test before appearing to you real interview. This Terraform quiz there are around 30+ multiple choice questions on Terraform with four options.

1) Which of the following is easier to code?

  • A. Cloudformation
  • B. Terraform
  • C. Both A and B
  • D. None of the above

2) Terraform is Licensed under ________.

  • A. Opensource
  • B. Apache License 2.0
  • C. GPL
  • D. Mozilla Public License v2.0

3) What is the name of the terraform state file?

  • A. terraform.firststate
  • B. terraform.tfstate
  • C. Both A and B
  • D. None of the above

4) What are the meta-arguments that are defined by Terraform itself and available for all provider blocks?

  • A. Version
  • B. Alias
  • C. Both A and B
  • D. None of the above

5) You configure Multiple Provider Instances with the help of _______.

  • A. method
  • B. version
  • C. alias
  • D. All of the above
Download Free : Terraform MCQ PDF

6) Terraform is written in ________.

  • A. Angular
  • B. C/C++
  • C. Python
  • D. Go Programming

7) Terraform is developed by ______.

  • A. HashiCorp
  • B. Adobe
  • C. Google
  • D. Amazon

8) Third-party plugins should be manually installed. True/False?

  • A. True
  • B. False

9) The command terraform init is used to install third-party plugins?

  • A. True
  • B. False

10) What is the command to initialize the directory?

  • A. terraform fmt
  • B. terraform init
  • C. terraform validate
  • D. None of the above

11) What is the command to create infrastructure?

  • A. terraform fmt
  • B. terraform init
  • C. terraform apply
  • D. None of the above

12) What is the command to show the execution plan and not apply?

  • A. terraform show
  • B. terraform apply
  • C. terraform plan
  • D. None of the above

13) Terraform is a ______.

  • A. IaaS
  • B. PaaS
  • C. SaaS
  • D. IAC

14) Terraform is a ___________ language.

  • A. Declarative
  • B. Objective
  • C. Functional
  • D. Descriptive

15) What are the types of provisioners?

  • A. remote-exec
  • B. local-exec
  • C. Both A and B
  • D. None of the above

16) By default, provisioners that fail will also cause the Terraform apply itself to fail.

  • A. True
  • B. False

17) Is terraform cloud-agostic?

  • A. True
  • B. False

18) Terraform CLI versions and provider versions are independent of each other.

  • A. True
  • B. False

19) By default, fmt scans the current directory for configuration files.

  • A. True
  • B. False

20) ______ is the file format of Terraform code files.

  • A. XML
  • B. JSON
  • C. HTML
  • D. YAML

21) Resource names in Terraform are provider specific. True or False?

  • A. True
  • B. False

22) Is "default" the default workspace name?

  • A. True
  • B. False

23) What is the command to list the workspaces?

  • A. terraform workspace new <name>
  • B. terraform workspace list
  • C. Both A and B
  • D. None of the above

24) What is the command to show the current workspace?

  • A. terraform workspace list
  • B. terraform workspace select <workspace name>
  • C. terraform workspace show
  • D. All of the above

25) You can delete the default workspace. True or False?

  • A. True
  • B. False

26) The command terraform taint modifies the state file and doesn’t modify the infrastructure.

  • A. True
  • B. False

27) ______ are the different source types for calling modules.

  • A. Local paths
  • B. Terraform Registry
  • C. Bitbucket
  • D. All of the above

28) ________ are the arguments you need for using modules in your configuration.

  • A. Source
  • B. Version
  • C. Both A and B
  • D. None of the above

29) What are the steps of Core Terraform workflow?

  • A. Write
  • B. Plan
  • C. Apply
  • D. All of the above

30) "terraform plan -refresh=true" is used to update the state prior to checking differences when you run a terraform plan.

  • A. True
  • B. False

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Apr
MYSQL MCQ
01st
May
Spring MCQ
01st
May
SEO MCQ
01st
May
JSP MCQ