Terraform Certification

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which block is used to configure settings related to Terraform itself? terraform resource source providers

terraform

Select the reasons why we may need to specify the provider's argument? -To use multiple provider plugins in the same configuration -No specific reason -To use multiple configurations of the same provider -To change the default Provider Configurations -It's just a practice we need to blindly follow

-To use multiple configurations of the same provider -To change the default Provider Configurations

Which of the options can be used to run a terraform apply without confirmation? -approve -auto-approve=true -auto-approve=yes -auto-approve

-auto-approve

Select the file extension used by terraform configuration files. .YAML .TOML .DAT .TF None of the Above

.TF

Which among the following is not a valid operator in terraform version constraints: == = >= != <=

==

Which of the following are valid when using version constraints with a provider? Using the "!=" operator Use of comparison operators Combining comparison operations to use a specific version within a range All of the above Using the ~> operator Using pessimistic operator

All of the above

Select the optional arguments that are available for the output block. sensitive All of the above description depends_on

All of the above

Where can we make use of version constraints? b. Provider requirements a. Modules d. All of the above c. The required_version setting in the terraform block

All of the above

Which of the following statements is true? -Ansible uses procedural approach -Ansible can only be used to as a configuration management tool -Ansible uses declarative approach -Ansible cannnot be used to provision resources on the cloud

Ansible uses procedural approach

A Junior DevOps engineer has just joined your organization. He is exploring ways to automate the existing process of infrastructure provisioning and management using code. As his tech lead, what suggestions in general would you like to provide him? -Use any technique that would ensure no human interference and should be automating resources. -Explore the requirements and utilize the correct IaC tools that check all the required boxes. -Use any IaC tool out there as they are all the same. -Run a POC using a single tool and stick to it for all tasks -Utilize bash scripting to codify infrastructure and use it to define, provision, configure, update and destroy infrastructure resources.

Explore the requirements and utilize the correct IaC tools that check all the required boxes.

What does "IaC" stand for? -Code as Infrastructure -None of the above -Initialization as Code -Infrastructure as Code

Infrastructure as Code

Which of the following statements is true? -Terraform can only be installed on Linux Distributions -None of the Above -Terraform can only be installed on Windows OS -Terraform cannot be installed on MacOS -Terraform cannot be installed on Solaris or OpenBSD

None of the Above

What is Immutable Infrastructure? -Resources strictly provisioned by Terraform -Resources cannot be migrated to another platform -Resources once deployed are not intended to be changed -Any aspect of a resource can be updated in place anytime

Resources once deployed are not intended to be changed

Choose the easiest way to list the versions of all installed plugins in terraform along with terraform versions. -There is no easy way to accomplish this -Search the contents of the .terraform directory for plugin versions -Run terraform version command -All of the above

Run terraform version command

What does the "terraform show" command use to provide details of the Infrastructure? -State File -Provider Plugins -Configuration Files -Terraform Workspace

State File

What should be the very first command that should be run after writing a new Terraform configuration or cloning an existing one from version control? -Terraform plan -Terraform get -Terraform init -Terraform apply

Terraform init

Your company has recently been contracted to oversee a business transformation project for a large bank. This project requires a lot of the legacy banking applications to be migrated to several different cloud platforms - AWS, Azure, GCP to name a few. The solution architects of your team have decided to go with Terraform as their choice for the infrastructure provisioning. Why do you think they went with this choice? -Terraform is vendor agnostic and supports multiple providers which is a good fit for this project. -Terraform is the ideal choice for Configuration Management as well as Provisioning -Disagree with the choice - should have used CloudFormation -They just went with their gut feeling

Terraform is vendor agnostic and supports multiple providers which is a good fit for this project.

What allows Terraform to make use of a declarative approach? -Terraform uses multiple providers that supports all major cloud providers -Terraform uses JSON instead of YAML -Terraform uses modules unlike Ansible -Terraform makes use of a state file

Terraform makes use of a state file

Your team assigned you the task of developing a terraform configuration to provision a bunch of services on GCP. You did everything to the point but forgot to mention the provider's version in the terraform block. What default behavior would you expect from terraform: d. None of the above e. All of the above c. Terraform init will succeed but an apply will fail because of unsupported provider versions a. Terraform init will fail b. Terraform will download and use the latest version of providers used in the configuration

Terraform will download and use the latest version of providers used in the configuration

A version constraint is a string literal containing one or more conditions, which are separated by commas. True or False?

True

If both the "type" and the "default" argument are specified inside the variable block, the given default value must be convertible to the specified type. True or False?

True

The terraform providers command shows information about the provider requirements of the configuration in the current working directory. True or False?

True

Which of the following statements are true regarding output variables? a. Running the "terraform apply" will render the output variables defined b. Running the "terraform plan" will render the output variables defined c. Running the "terraform apply" will not render the output variables defined d. Running "terraform plan" will not render outputs e. Running the "terraform outputs" will render the output variables defined f. None of the above

a. Running the "terraform apply" will render the output variables defined d. Running "terraform plan" will not render outputs e. Running the "terraform outputs" will render the output variables defined

The label after the variable keyword should be unique among all variables. Both the statements (a) and (b) are true a. Should be unique among the variables in the same module b.You can create just two variables of the same label None of the above

a. Should be unique among the variables in the same module

Each output value exported by a module must be declared using an ______ block. -resource -input -data -variable -output

output

Providers use a ______-based architecture that is available for most infrastructure platforms within the public Terraform registry. plugin platform software infrastructure module

plugin

After testing a sample terraform code, the user now wants to get rid of everything that was provisioned. Which of the following does he need to execute in order to accomplish this? -terraform refresh -terraform state rm -terraform destroy -terraform workspace delete

terraform destroy

Which "terraform command" from the following downloads the latest version of the provider plugins? terraform init terraform plan terraform pull terraform apply

terraform init

What is the order of commands to be run in a core terraform workflow? -terraform init -> terraform plan -> terraform apply -Order of commands don't matter in a terraform workflow -terraform init -> terraform validate -> terraform apply -terraform validate -> terraform init -> terraform apply -terraform init -> terraform fmt -> terraform apply

terraform init -> terraform plan -> terraform apply

Choose the correct terraform command to display the blueprint of the infrastructure to be applied. -terraform apply -terraform show -terraform plan -terraform init

terraform plan

Which keyword is reserved for declaring variables in the terraform configuration files? user-defined keyword Use the syntax var.<variable_name> variable block does not need a keyword var variable

variable


संबंधित स्टडी सेट्स

casey chemistry chapter 10, 11, 12 practice test

View Set

Probability and statistics unit 2

View Set

BJU World History: Chapter 10- The Reshaping of Medieval Europe

View Set

American Indians on the East Coast Guided Reading Key

View Set