Deploying to Oracle Cloud Infrastructure with Terraform Ed 1 Quiz Questions and Answers

Your organization has moved to AWS and has manually deployed infrastructure using the console. Recently, a decision has been made to standardize Terraform for all deployments moving forward. What can you do to ensure that all existing is managed by Terraform moving forward without interruption to existing services?

Answer :
  • Using terraform-import, import the existing infrastructure into your Terraform state

Given the following snippet of code, what does servers = 4 reference? module "servers " { source = "./modules/aws-servers " servers = 4 }

Answer :
  • the value of an input variable

Performing a terraform plan can modify the existing Terraform state file.

Answer :
  • FALSE

What happens when a terraform apply command is executed?

Answer :
  • Applies the changes required in the target infrastructure in order to reach the desired configurations.

In Terraform Enterprise, a workspace can be mapped to how many VCS repos?

Answer :
  • 1

Which of the following commands will launch the Interactive console for Terraform interpolations?

Answer :
  • terraform console

Which are some of the benefits of using Infrastructure as Code in general? (Select three)

Answer :
  • It can be reused
  • It can be versioned
  • It can be shared

A main.tf file is always required when using Terraform.

Answer :
  • FALSE

Which type of configuration block assigns a name to an expression that can be used multiple times within a module without having to repeat it?

Answer :
  • local

Before a terraform validation can be run, the directory must be initialized.

Answer :
  • TRUE