Terraform

¡Supera tus tareas y exámenes ahora con Quizwiz!

Select the most accurate statement to describe the Terraform language from the following list.

Terraform is an immutable, declarative, IaC provisioning language based on HCL or optionally JSON

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

1

In order to reduce the time it takes to provision resources, Terraform uses parallelism. By default, how many resources will Terraform provision concurrently during a terraform apply?

10

When writing Terraform code, HashiCorp recommends that you use how many spaces between each nesting level?

2

By default, where does Terraform store its state file?

Current working directory

True of False? Rather than use state, Terraform can inspect cloud resources on every run.

False

True or False? Performing a terraform plan can modify the existing Terraform state file.

False - it does a refresh but does not change the state file...

Terraform Cloud is more powerful when you integrate it with your version control system (VCS) provider. Select all the supported VCS providers from the answers below. (select four)

GitHub BitBucket Azure DevOps Server/Services

Terraform Enterprise (also referred to as pTFE) requires what type of backend database for a clustered deployment?

PostgreSQL

HashiCorp offers multiple versions of Terraform, including Terraform open-source, Terraform Cloud, and Terraform Enterprise. Which of the following Terraform features are exclusive to the Enterprise edition? (select three)

Private Network Connectivity Locally hosted installation Clustering https://www.datocms-assets.com/2885/1602500234-terraform-full-feature-pricing-tablev2-1.pdf

Select all features which are exclusive to Terraform Enterprise and Terraform Cloud for Business (select three).

Self-Service Infrastructure SAML/SSO Audit Logging https://www.datocms-assets.com/2885/1602500234-terraform-full-feature-pricing-tablev2-1.pdf

Scenario: You have a Terraform configuration file defining resources to deploy on VMware, yet there is no related state file. You have successfully run a terraform init already. What happens when you run a terraform apply?

Since there is no state file -> resources will be created on the VMWare infrastructure

Which of the following are the benefits of using modules in Terraform? (select three)

Supports versioning Supports local or remote modules Enables code reuse (not allowing modules to be stored anywhere accessible by Terraform)

Environment variables can be used to set variables. The environment variables must be in the format "____"_<variablename>. Select the correct prefix string from the following list.

TF_VAR_name (not TF_ENV!)

Margaret is calling a child module to deploy infrastructure for her organization. Just as a good architect does (and suggested by HashiCorp), she specifies the module version she wants to use even though there are newer versions available. During a terrafom init, Terraform downloads v0.0.5 just as expected. What would happen if Margaret removed the version parameter in the module block and ran a terraform init again?

Terraform would use the existing module already downloaded

During a terraform apply, a resource is successfully created but eventually fails during provisioning. What happens to the resource?

The resource is marked as tainted

Terraform is distributed as a single binary and available for many different platforms. Select all Operating Systems that Terraform is available for. (select five)

There is no Terraform binary for Unix

Larissa is interested in using a module to create an AWS VPC. She finds this code but isn't sure what all the declarations are beyond the source and version (such as "name, cidr, azs, etc). What are these declarations used for? module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "2.21.0" name = var.vpc_name cidr = var.vpc_cidr azs = var.vpc_azs private_subnets = var.vpc_private_subnets public_subnets = var.vpc_public_subnets enable_nat_gateway = var.vpc_enable_nat_gateway tags = var.vpc_tags }

These are variables passed in to the child module, not outputs

True or False? Before a terraform validate can be run, the directory must be initialized.

True

What function does the terraform init -upgrade command perform?

Update all previously installed plugins to the newest version that complies with the configurations version constraints

Provider dependencies are created in several different ways. Select the valid provider dependencies from the following list: (select three)

Use of any resource belonging to a provider in the config Use of provider block in configuration Existence of any provider resource in the current state (It does not matter what plugins exist in the working directory)

There are multiple ways to authenticate when using a Terraform provider. However, several methods will result in sensitive information being written to the state file, which is not desirable. Which method below will not result in sensitive information being written to the state file.

Using environment variables

Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?

required_providers

Published modules via the Terraform Registry provide which of the following benefits? (select four)

show examples and readmes browse version histories support versioning auto generate documentation

Which of the following Terraform CLI commands are valid?

terraform initialize (not valid) terraform login (valid)


Conjuntos de estudio relacionados

NU370 Week 1 PrepU: Health, Wellness & Illness

View Set

Network+ Chapter 2 Review Questions

View Set

Driving Theory Test Multiple Choice

View Set

4th grade Eng. What Jo did? Story

View Set

Jensen Ch. 2: Health History and Interview

View Set

Adult Nursing 2 - Chapter 20 PrepU

View Set