0% found this document useful (0 votes)
14 views4 pages

TF Dumps

Uploaded by

alt.ru-6i110f8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

TF Dumps

Uploaded by

alt.ru-6i110f8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Here are some sample multiple-choice questions (MCQs) related to Terraform:

1. What is the primary purpose of Terraform?

A) Cloud service monitoring


B) Configuration management
C) Infrastructure as code
D) Cloud migration

Answer: C) Infrastructure as code

2. Which of the following Terraform commands is used to apply the


configuration to the infrastructure?

A) terraform init
B) terraform plan
C) terraform apply
D) terraform validate

Answer: C) terraform apply

3. Which language is used to write Terraform configuration files?

A) Python
B) JSON
C) HCL (HashiCorp Configuration Language)
D) YAML

Answer: C) HCL (HashiCorp Configuration Language)

4. Which of the following is a benefit of using Terraform?

A) Automatic monitoring of cloud resources


B) Managing infrastructure as code
C) Manages only one cloud provider
D) Can only manage virtual machines
Answer: B) Managing infrastructure as code

5. Which of the following Terraform commands is used to check whether the


configuration is valid?

A) terraform validate
B) terraform apply
C) terraform destroy
D) terraform init

Answer: A) terraform validate

6. Which of the following can Terraform manage?

A) Virtual Machines
B) Networking
C) DNS settings
D) All of the above

Answer: D) All of the above

7. What is the purpose of the terraform init command?

A) To initialize a working directory containing Terraform configuration files


B) To destroy all resources created by Terraform
C) To create a new Terraform configuration
D) To validate the Terraform configuration files

Answer: A) To initialize a working directory containing Terraform configuration files

8. What is the file extension for Terraform configuration files?

A) .yaml
B) .tf
C) .json
D) .hcl
Answer: B) .tf

9. In Terraform, which of the following is used to store the state of the


infrastructure?

A) Variables
B) Output values
C) State file
D) Providers

Answer: C) State file

10. Which of the following is true about Terraform providers?

A) Providers allow Terraform to manage infrastructure


B) Providers are always managed by Terraform itself
C) Providers only support AWS and Azure
D) Providers are used to create users and manage access control

Answer: A) Providers allow Terraform to manage infrastructure

11. Which command is used to destroy infrastructure managed by Terraform?

A) terraform remove
B) terraform destroy
C) terraform destroy-all
D) terraform delete

Answer: B) terraform destroy

12. How does Terraform handle changes to infrastructure?

A) Automatically applies changes without user intervention


B) Requires manual updates to configuration files
C) Generates an execution plan before applying any changes
D) Changes cannot be made after resources are created
Answer: C) Generates an execution plan before applying any changes

13. Which file does Terraform use to store the outputs of your infrastructure?

A) .plan
B) .terraform
C) terraform.tfstate
D) .output

Answer: C) terraform.tfstate

14. What is the purpose of the terraform plan command?

A) To create infrastructure
B) To show what changes will be made to the infrastructure
C) To validate the configuration
D) To apply changes to the infrastructure

Answer: B) To show what changes will be made to the infrastructure

15. Can Terraform manage resources across multiple cloud providers?

A) Yes, Terraform supports managing multiple cloud providers simultaneously


B) No, Terraform is limited to managing only one cloud provider
C) Only AWS and Azure resources can be managed
D) Terraform only supports Google Cloud

Answer: A) Yes, Terraform supports managing multiple cloud providers simultaneously

These MCQs cover various aspects of Terraform, including its functionality, commands,
configuration syntax, and capabilities. They are useful for preparing for Terraform
certifications or for anyone learning to use Terraform in cloud infrastructure management.

You might also like