Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

In terraform modules are configured into _______ types.

Answer»

In terraform modules are configured into _______ types.
choose the CORRECT OPTION from below list
(1)Four
(2)Three
(3)Five
(4)Two

Answer:-(4)Two

2.

Which of the following are advantages of using backend?

Answer»

Which of the following are advantages of USING backend?
choose the correct option from below LIST
(1)Working in a team
(2)KEEPING sensitive INFORMATION on the disk
(3)Remote information
(4)Working in a team and Remote operations

Answer:-(4)Working in a team and Remote operations

3.

HCL Stands for?

Answer»

HCL Stands for?
CHOOSE the CORRECT OPTION from below list
(1)Hashicorp Connection Language
(2)Harshicorp CONFIGURATION Language
(3)Hashicorp Configuration Language

Answer:-(3)Hashicorp Configuration Language

4.

Terraform validate command provides output if there are no errors.

Answer»

Terraform validate command provides output if there are no errors.
choose the correct option from below LIST
(1)FALSE
(2)True

Answer:-(1)False

5.

Name of the module should be ___________.

Answer» NAME of the module should be ___________.
choose the correct option from below list
(1)Not need to be UNIQUE
(2)DEPENDS on user
(3)Unique

Answer:-(3)Unique
6.

IaC is frequently referred as ____________.

Answer»

IaC is frequently REFERRED as ____________.
choose the CORRECT OPTION from below list
(1)Programmable Infrastructure
(2)Normal code
(3)Programmable code
(4)Normal Infrastructure

Answer:-(1)Programmable Infrastructure

7.

A list is like a ________.

Answer»

A list is like a ________.
choose the correct option from below list
(1)NORMAL array
(2)COMPLEX array
(3)SIMPLE array

Answer:-(3)simple array

8.

Terraform allows interpolation of variables

Answer»

Terraform ALLOWS interpolation of variables
choose the correct OPTION from below list
(1)FALSE
(2)True

Answer:-(2)True

9.

What are the building blocks of terraform?

Answer»

What are the building BLOCKS of terraform?
CHOOSE the correct option from below list
(1)tags
(2)TF s
(3)INSTANCES
(4)MODULES

Answer:-(4)Modules

10.

Terraform follows __________ type of language.

Answer» TERRAFORM FOLLOWS __________ TYPE of language.
choose the correct option from below LIST
(1)procedural
(2)declarative
(3)Cannot be defined
(4)Both declarative and Imperative

Answer:-(2)declarative
11.

terraform.tfstate file provides information about terraform version.

Answer» TERRAFORM.tfstate file PROVIDES information about terraform version.
choose the correct option from below LIST
(1)FALSE
(2)True

Answer:-(2)True
12.

Which is called as blueprint of infrastructure in terraform?

Answer»

Which is called as blueprint of INFRASTRUCTURE in terraform?
choose the CORRECT option from below list
(1)Format
(2)MODULE
(3)Configuration

Answer:-(2)Module

13.

Which of the following is the correct format to define list?

Answer»

Which of the following is the CORRECT format to define LIST?
CHOOSE the correct option from below list
(1)[ap-southeast-1,ap-southeast-2
(2)["ap-southeast-1","ap-southeast-2"]
(3) [ap-southeast-1,ap-southeast-2]

Answer:-(2)["ap-southeast-1","ap-southeast-2"]

14.

In terraform.tfvars file we mention in key/value pair.

Answer»

In terraform.tfvars file we mention in key value pair.
choose the correct option from below LIST
(1)FALSE
(2)TRUE

Answer:-(2)True

15.

Which is the command to initialize the plugins in terraform?

Answer»

Which is the command to initialize the PLUGINS in terraform?
choose the correct option from below list
(1)terraform begin
(2)terraform RUN
(3)terraform start
(4)terraform INIT

Answer:-(4)terraform init

16.

A set of files which describe the infrastructure in terraform is called as __________.

Answer»

A SET of FILES which describe the infrastructure in terraform is called as __________.
CHOOSE the correct option from below list
(1)Terraform description files
(2)Terraform configuration
(3)Terraform details
(4)Terraform files

Answer:-(2)Terraform configuration

17.

Format to define module in terraform is _______.

Answer»

Format to DEFINE MODULE in terraform is _______.
CHOOSE the correct OPTION from below list
(1)Module child
(2)Module child
(3)Module resource name
(4)All of the options

Answer:-(2)Module child

18.

Terraform supports which of the following variables?

Answer»

Terraform supports which of the following variables?
CHOOSE the correct option from below list
(1)List
(2)MAP
(3)STRING
(4)All of the options

Answer:-(4)All of the options

19.

Terraform is an infrastructure provisioning tool.

Answer»

Terraform is an infrastructure PROVISIONING tool.
choose the CORRECT option from below LIST
(1)FALSE
(2)True

Answer:-(2)True

20.

_________ command is used for formatting the style and format.

Answer»

_________ command is used for formatting the STYLE and format.
choose the CORRECT option from below LIST
(1)terraform fmt
(2)terraform align
(3)terraform styling
(4)terraform format

Answer:-(1)terraform fmt

21.

The default data type in terraform is __________.

Answer»

The DEFAULT data type in terraform is __________.
choose the CORRECT option from below LIST
(1)Integer
(2)List
(3)STRING
(4)Map

Answer:-(3)String

22.

Which of the following is not a terraform command?

Answer»

Which of the following is not a TERRAFORM command?
choose the correct OPTION from below list
(1)terraform format
(2)terraform graph
(3)terraform untaint
(4)terraform push

Answer:-(1)terraform format

23.

_____________ command checks the downloaded modules and checks for the recent versions.

Answer»

_____________ COMMAND checks the downloaded MODULES and checks for the recent versions.
choose the correct OPTION from below LIST
(1)terraform GET -update
(2)terraform update
(3)terraform check
(4)terraform get

Answer:-(1)terraform get -update

24.

What is the command to destroy the infrastructure in terraform?

Answer»

What is the COMMAND to destroy the infrastructure in terraform?
choose the CORRECT option from below LIST
(1)terraform destroy
(2)terraform delete
(3)rterraform format

Answer:-(1)terraform destroy

25.

terraform can read JSON configurations.

Answer»

terraform can read JSON configurations.
choose the correct OPTION from below LIST
(1)FALSE
(2)TRUE

Answer:-(2)True

26.

File format for terraform code files is ____________.

Answer»

File format for TERRAFORM code files is ____________.
CHOOSE the CORRECT option from below list
(1)YAML
(2)XML
(3)JSON
(4)HTML

Answer:-(3)JSON

27.

Which of the following is a interpolation syntax for name?

Answer»

Which of the following is a interpolation SYNTAX for NAME?
choose the correct OPTION from below list
(1)var.name
(2) {var.name}
(3)All of the options
(4) ${var.name}

Answer:-(4) ${var.name}

28.

Format to define address in terraform is ________.

Answer» FORMAT to define address in terraform is ________.
choose the CORRECT option from below LIST
(1) [10.0.0.0/16]
(2)Both [10.0.0.0/16] and [ 10.0.0.0/16 ] are VALID
(3)[ 10.0.0.0/16 ]

Answer:-(3)[ 10.0.0.0/16 ]
29.

Which is a valid syntax for the name in the virtual network?

Answer»

Which is a valid SYNTAX for the name in the virtual NETWORK?
choose the CORRECT OPTION from below list
(1)VNET-A
(2)Vnet A
(3)Both Vnet-A and Vnet A

Answer:-(1)Vnet-A

30.

Which of the following is the correct format to define type and name of resource of virtual network

Answer»

Which of the following is the correct format to define TYPE and name of resource of virtual network
choose the correct OPTION from below LIST
(1)resource azurerm_virtual_network vnet
(2)resource azurerm_virtual_network vnet
(3)resource "azurerm_virtual_network""vnet" & resource (4)"azurerm_virtual_network" "vnet" are correct

Answer:-(4)"azurerm_virtual_network" "vnet" are correct

31.

Order of declaration of variables in terraform?

Answer»

Order of DECLARATION of VARIABLES in TERRAFORM?
choose the CORRECT option from below list
(1)Matters DEPENDING on the scenario
(2)Always Matter
(3)Doesn t matter

Answer:-(3)Doesn t matter