<< Prev Question Next Question >>

Question 10/137

When using a module block to reference a module stored on the public Terraform Module Registry such as:

How do you specify version 1.0.0?

Recent Comments (The most recent comments are at the top.)

Boris Sh - Aug 03, 2023

Correct Answer: C

eugene - Jun 13, 2023

The correct answer is:

D. Append ?ref=v1.0.0 argument to the source path.

To specify version 1.0.0 when referencing a module stored on the public Terraform Module Registry, you need to append "?ref=v1.0.0" to the source path in the module block. This allows you to explicitly specify the desired version of the module to use in your configuration.

vikram - Dec 14, 2022

Answer is C
module "consul" {
source = "hashicorp/consul/aws"
version = "0.1.0"
}
https://developer.hashicorp.com/terraform/registry/modules/use

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (137q)
Question 1: Which of the following is not true of Terraform providers?...
Question 2: How does Terraform handle working with so many providers?...
Question 3: When using remote state, state is only ever held in memory w...
Question 4: Choose the answer that correctly completes the sentence: ___...
Question 5: You have declared an input variable called environment in yo...
Question 6: The current implementation of Terraform import can only impo...
Question 7: Terraform Enterprise currently supports running under which ...
Question 8: Which one of the following will run echo 0 and echo 1 on a n...
Question 9: John wants to use two different regions to deploy two differ...
3 commentQuestion 10: When using a module block to reference a module stored on th...
1 commentQuestion 11: Terraform can run on Windows or Linux, but it requires a Ser...
Question 12: While using generic git repository as a module source, which...
Question 13: What does the command terraform fmt do?...
Question 14: What information does the public Terraform Module Registry a...
Question 15: Which of the following is not a valid Terraform string funct...
Question 16: A user runs terraform init on their RHEL based server and pe...
Question 17: Which of the following type of variable allows multiple valu...
Question 18: John is writing a module and within the module, there are mu...
Question 19: Your configuration file has been locked accidentally. What o...
Question 20: Command terraform refresh will update state file?...
Question 21: If a DevOps team adopts AWS Cloud Formation as their standar...
Question 22: You have modified your Terraform configuration to fix a typo...
Question 23: You have created a terraform script that uses a lot of new c...
Question 24: What advantage does an operations team that uses infrastruct...
Question 25: During a terraform plan, a resource is successfully created ...
Question 26: What is terraform refresh intended to detect?...
Question 27: Which of the following connection types are supported by the...
Question 28: During a terraform apply, a resource is successfully created...
Question 29: Which of the below options is a valid interpolation syntax f...
Question 30: Select all features which are exclusive to Terraform Enterpr...
Question 31: Module version is required to reference a module on the Terr...
Question 32: You have been given requirements to create a security group ...
Question 33: A user has created three workspaces using the command line -...
Question 34: Given the Terraform configuration below, in which order will...
Question 35: You want to use different AMI images for different regions a...
Question 36: By default, provisioners that fail will also cause the Terra...
Question 37: You have to initialize a Terraform backend before it can be ...
Question 38: What is the standard workflow that a developer follows while...
Question 39: If a module declares a variable with a default, that variabl...
Question 40: What does this code do? (Exhibit)...
1 commentQuestion 41: Which of the following commands will launch the Interactive ...
Question 42: Anyone can publish and share modules on the Terraform Public...
Question 43: After creating a new workspace "PROD" you need to run the co...
Question 44: You've used Terraform to deploy a virtual machine and a data...
1 commentQuestion 45: What is the name assigned by Terraform to reference this res...
Question 46: Which of the following is not a valid Terraform collection t...
Question 47: The Security Operations team of ABC Enterprise wants to mand...
Question 48: What does terrafom plan do ?
Question 49: Which flag would you add to terraform plan to save the execu...
Question 50: The terraform.tfstate file always matches your currently bui...
Question 51: How can you trigger a run in a Terraform Cloud workspace tha...
Question 52: Which one of the following command will rewrite Terraform co...
Question 53: Why should secrets not be hard coded into Terraform code? Ch...
Question 54: Select the most accurate statement to describe the Terraform...
Question 55: You have deployed a new webapp with a public IP address on a...
Question 56: You have provisioned some virtual machines (VMs) on Google C...
Question 57: Jack is a newbieto Terraform and wants to enable detailed lo...
Question 58: You wanted to destroy some of the dependent resources from r...
Question 59: Which backend does the Terraform CLI use by default?...
Question 60: What features stops multiple admins from changing the Terraf...
Question 61: True or False? When using the Terraform provider for Vault, ...
1 commentQuestion 62: You write a new Terraform configuration and immediately run ...
Question 63: One remote backend configuration always maps to a single rem...
Question 64: In order to reduce the time it takes to provision resources,...
Question 65: All standard backend types support state storage, locking, a...
Question 66: When running the command terraform taint against a managed r...
Question 67: colleagues is new toTerraform and wants to add a new workspa...
Question 68: You have created a custom variable definition file my_vars.t...
Question 69: You cannot publish your own modules on the Terraform Registr...
Question 70: Environment variables can be used to set variables. The envi...
Question 71: What is the command you can use to set an environment variab...
Question 72: Terraform variable names are saved in the state file....
Question 73: Your DevOps team is currently using the local backend for yo...
Question 74: Your team has started using terraform OSS in a big way , and...
Question 75: What is the workflow for deploying new infrastructure with T...
Question 76: You have already set TF_LOG = DEBUG to enable debug log. Now...
Question 77: Named workspaces are not a suitable isolation mechanism for ...
Question 78: How is the Terraform remote backend different than other sta...
Question 79: Multiple configurations for the same provider can be used in...
Question 80: You're building a CI/CD (continuous integration/ continuous ...
Question 81: Which of the following is considered a Terraform plugin?...
Question 82: Which option can not be used to keep secrets out of Terrafor...
Question 83: Which of the following command can be used to view the speci...
Question 84: Which of the following Terraform commands will automatically...
Question 85: Resources in terraform can have same identifiers(Resource ty...
Question 86: 1. resource "aws_s3_bucket" "example" { 2. bucket = "my-test...
Question 87: A single terraform resource file that defines an aws_instanc...
Question 88: Where does the Terraform local backend store its state?...
Question 89: terraform refresh will update the state file?...
Question 90: Given the below resource configuration - resource "aws_insta...
Question 91: Your manager has instructed you to start using terraform for...
Question 92: If a module uses a local variable, you can expose that value...
Question 93: Your company has been using Terraform Cloud for a some time ...
Question 94: You have used Terraform to create an ephemeral development e...
Question 95: Given the Terraform configuration below, in which order will...
Question 96: The terraform state command can be used to ____...
Question 97: Which one is the right way to import a local module names co...
Question 98: If you delete a remote backend from the configuration, will ...
Question 99: The terraform init command is always safe to run multiple ti...
Question 100: Refer to the below code where developer is outputting the va...
Question 101: What allows you to conveniently switch between multiple inst...
Question 102: Which of the below are paid features of Terraform Cloud?...
Question 103: Which task does teraform ini- not perform?...
Question 104: When configuring a remote backend in Terraform, it might be ...
Question 105: You are reviewing Terraform configurations for a big project...
Question 106: You have created an AWS EC2 instance of type t2.micro throug...
Question 107: What is the purpose of using the local-exec provisioner? (Se...
Question 108: Which of the following value will be accepted for my_var? 1....
Question 109: In order to make a Terraform configuration file dynamic and/...
Question 110: Consider the following Terraform 0.12 configuration snippet:...
Question 111: Workspaces in Terraform provides similar functionality in th...
Question 112: In a Terraform Cloud workspace linked to a version control r...
Question 113: Terraform has detailed logs which can be enabled by setting ...
Question 114: In contrast to Terraform Open Source, when working with Terr...
Question 115: When TF_LOG_PATH is set, TF_LOG must be set in order for any...
Question 116: Your team uses terraform OSS . You have created a number of ...
Question 117: Ric wants to enable detail logging and he wants highest verb...
Question 118: HashiCorp offers multiple versions of Terraform, including T...
Question 119: You run a local-exec provisioner in a null resource called n...
Question 120: What command should you run to display all workspaces for th...
Question 121: You have provisioned some aws resources in your test environ...
Question 122: How is terraform import run?
Question 123: Which of the following statements about local modules is inc...
Question 124: Which of the following challenges would Terraform be a candi...
Question 125: Which two steps are required to provision new infrastructure...
Question 126: You need to constrain the GitHub provider to version 2.1 or ...
Question 127: How would you reference the "name" value of the second insta...
Question 128: You would like to reuse the same Terraform configuration for...
Question 129: Matt wants to import a manually created EC2 instance into te...
Question 130: A Terraform output that sets the ''sensitive'' argument to t...
Question 131: Which of the below options is the equivalent Terraform 0.12 ...
Question 132: You decide to move a Terraform state file to Amazon S3 from ...
Question 133: If a Terraform creation-time provisioner fails, what will oc...
Question 134: You have never used Terraform before and would like to test ...
Question 135: Why is it a good idea to declare the required version of a p...
Question 136: Your company has a lot of workloads in AWS , and Azure that ...
Question 137: If writing Terraform code that adheres to the Terraform styl...