HashiCorp Terraform Associate - Udemy PT 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Select the feature below that best completes the sentence: The following list represents the different types of __________ available in Terraform. max min join replace list length range A. functions B. backends C. data sources D. named values

A.

What does the command terraform fmt do? A. Rewrite Terraform configuration files to a canonical format and style B. Updates the font of the configuration file to the official font supported by HashiCorp C. Formats the state file in order to ensure the latest state of resources can be obtained D. Deletes the existing configuration file

A.

Which flag would be used within a Terraform configuration block to identify the specific version of a provider required? A. required_providers B. required_versions C. required-version D. required-provider

A.

Which of the following allows Terraform users to apply policy as code to enforce standardized configurations for resources being deployed via infrastructure as code? A. sentinel B. module registry C. workspaces D. functions

A.

You have been given requirements to create a security group for a new application. Since your organization standardizes on Terraform, you want to add this new security group with the fewest number of lines of code. What feature could you use to iterate over a list of required tcp ports to add to the new security group? A. dynamic block B. dynamic backend C. terraform import D. splat expression

A.

Which of the following actions are performed during a terraform init? (select three) A. initializes the backend configuration B. download the declared providers which are supported by HashiCorp C. provisions the declared resources in your configuration D. initializes downloaded and/or installed providers

A. B. D.

From the answers below, select the advantages of using Infrastructure as Code. (select four) A. Safely test modifications using a "dry run" before applying any actual changes B. Easily change and update existing infrastructure C. Provide a codified workflow to develop customer-facing applications D. Easily integrate with application workflows (GitLab Actions, Azure DevOps, CI/CD tools) E. Provide reusable modules for easy sharing and collaboration

A. B. D. E.

HashiCorp offers multiple versions of Terraform, including Terraform open-source, Terraform Cloud, and Terraform Enterprise. Which of the following Terraform features are only available in the Enterprise edition? (select four) A. Audit Logs B. Private Network Connectivity C. Private Module Registry D. Clustering E. Sentinel F. SAML/SSO

A. B. D. F.

Which of the following connection types are supported by the remote-exec provisioner? (select two) A. ssh B. rdp C. smb D. winrm

A. D.

What are some of the features of Terraform state? (select three) A. increased performance B. inspection of cloud resources C. determining the correct order to destroy resources D. mapping configuration to real-world resources

A. C. D.

Terraform-specific settings and behaviors are declared in which configuration block type? A. data B. terraform C. provider D. resource

B.

What happens when a terraform plan is executed? A. Reconciles the state Terraform knows about with the real-world infrastructure B. Creates an execution plan and determines what changes are required to achieve the desired state in the configuration files C. Applies the changes required in the target infrastructure in order to reach the desired configuration D. The backend is initialized and the working directory is prepped

B.

When using parent/child modules to deploy infrastructure, how would you export a value from one module to import into another module. For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application. ​ A. configure the pertinent provider's configuration with a list of possible IP addresses to use B. configure an output value in the application module in order to use that value for the DNS module C. preconfigure the IP address as a parameter in the DNS module D. export the value using terraform export and input the value using terraform input

B.

When configuring a remote backend in Terraform, it might be a good idea to purposely omit some of the required arguments to ensure secrets and other relevant data are not inadvertently shared with others. What are the ways the remaining configuration can be added to Terraform so it can initialize and communicate with the backend? (select three) A. directly querying HashiCorp Vault for the secrets B. command-line key/value pairs C. use the -backend-config=PATH to specify a separate config file D. interactively on the command line

B. C. D.

What is the purpose of using the local-exec provisioner? (select two) A. ensures that the resource is only executed in the local infrastructure where Terraform is deployed B. to invoke a local executable C. executes a command on the resource to invoke an update to the Terraform state D. to execute one or more commands on the machine running Terraform

B. D.

In Terraform Enterprise, a workspace can be mapped to how many VCS repos? A. 3 B. 2 C. 1 D. 5

C.

Select the answer below that completes the following statement: Terraform Cloud can be managed from the CLI but requires __________? A. a TOTP token B. authentication using MFA C. an API token D. a username and password

C.

Which of the following best describes a Terraform provider? ​A. Serves as a parameter for a Terraform module that allows a module to be customized B. A container for multiple resources that are used together ​C. A plugin that Terraform uses to translate the API interactions with the service or provider ​D. Describes an infrastructure object, such as a virtual network, compute instance, or other components

C.

Which of the following represents a feature of Terraform Cloud that is NOT free to customers? A. private module registry B. VCS integration C. roles and team management D. workspace management

C.

Select two answers to complete the following sentence: Before a new provider can be used, it must be ______ and _______. A. Approved by HashiCorp B. Uploaded to source control C. Declared in the configuration D. Initialized

C. D.

Which of the following Terraform files should be ignored by Git when committing code to a repo? (select two) A. variables.tf B. output.tf C. terraform.tfstate D. terraform.tfvars

C. D.

After executing a terraform apply, you notice that a resource has a tilde (~) next to it. What does this infer? A. the resource will be created B. the resource will be destroyed and recreated C. Terraform can't determine how to proceed due to a problem with the state file D. the resource will be updated in place

D.

After running into issues with Terraform, you need to enable verbose logging to assist with troubleshooting the error. Which of the following values provides the MOST verbose logging? A. DEBUG B. WARN C. INFO D. TRACE E. ERROR

D.

Given the Terraform configuration below, in which order will the resources be created? resource "aws_instance" "web_server" { ami = "i-abdce12345" instance_type = "t2.micro" } resource "aws_eip" "web_server_ip" { vpc = true instance = aws_instance.web_server.id } A. aws_eip will be created first aws_instance will be created second ​B. no resources will be created ​C. resources will be created simultaneously D. aws_instance will be created first aws_eip will be created second

D.

When multiple engineers start deploying infrastructure using the same state file, what is a feature of remote state storage that is critical to ensure the state does not become corrupt? A. workspaces B. object storage C. encryption D. state locking

D.

Which Terraform command will force a marked resource to be destroyed and recreated on the next apply? A. terraform refresh B. terraform destroy C. terraform fmt D. terraform taint

D.

True or False: A list(...) may contain a number of values of the same type while an object(...) can contain a number of values of different types. ​True ​False

True

True or False: Provisioners should only be used as a last resort. True False

True


Set pelajaran terkait

Ch. 8: Critical Thinking, the Nursing Process, and Clinical Judgment

View Set

Interpersonal Communication Midterm

View Set