<< Prev Question Next Question >>

Question 30/165

You are writing a child Terraform module which provisions an AWS instance. You want to make use of the IP
address returned in the root configuration. You name the instance resource "main".
Which of these is the correct way to define the output value using HCL2?

LEAVE A REPLY

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

Question List (165q)
Question 1: You have never used Terraform before and would like to test ...
1 commentQuestion 2: Which argument(s) is (are) required when declaring a Terrafo...
Question 3: What does Terraform use .terraform.lock.hcl file for?...
Question 4: When running the command terraform taint against a managed r...
Question 5: Which of the following command can be used to view the speci...
Question 6: What does terraform refresh command do?...
Question 7: terraform validate validates the syntax of Terraform files....
Question 8: Terraform will sync all resources in state by default for ev...
Question 9: Taint the resource "aws_instance" "baz" resource that lives ...
Question 10: Resources in terraform can have same identifiers(Resource ty...
Question 11: You want terraform plan and terraform apply to be executed i...
Question 12: terraform destroy is the only way to remove infrastructure....
Question 13: Which backend does the Terraform CLI use by default?...
Question 14: A terraform apply can not _________ infrastructure....
Question 15: What are the benefits of using Infrastructure as Code? (sele...
Question 16: You have created a custom variable definition file testing.t...
Question 17: Why should secrets not be hard coded into Terraform code? Ch...
Question 18: Using the terraform state rm command against a resource will...
Question 19: Which of these is the best practice to protect sensitive val...
Question 20: Which of the following best describes the default local back...
Question 21: When should Terraform configuration files be written when ru...
Question 22: When should you use the force-unlock command?...
Question 23: How do you specify a module's version when publishing it to ...
Question 24: You have declared a variable called var.list which is a list...
Question 25: Which of the below datatype is not supported by Terraform....
Question 26: Terraform import command can import resources into modules a...
Question 27: After creating a new workspace "PROD" you need to run the co...
Question 28: Which of the following can you do with terraform plan? Choos...
Question 29: Why might a user opt to include the following snippet in the...
Question 30: You are writing a child Terraform module which provisions an...
Question 31: If you delete a remote backend from the configuration, will ...
Question 32: Suppose terraformcode is taking up some values which are not...
Question 33: Which one of the following command will rewrite Terraform co...
Question 34: What does terraform import allow you to do?...
Question 35: What is the purpose of using the local-exec provisioner? (Se...
Question 36: To check if all code in a Terraform configuration with multi...
Question 37: Your developers are facing a lot of problem while writing co...
Question 38: You need to migrate a workspace to use a remote backend. Aft...
1 commentQuestion 39: Any user can publish modules to the public Terraform Module ...
Question 40: What is the name assigned by Terraform to reference this res...
Question 41: Terraform plan updates your state file....
Question 42: You are creating a Terraform configuration which needs to ma...
Question 43: Select the answer below that completes the following stateme...
Question 44: Which of the following locations can Terraform use as a priv...
Question 45: When using remote state, state is only ever held in memory w...
Question 46: While attempting to deploy resources into your cloud provide...
Question 47: Which is the best way to specify a tag of v1.0.0 when refere...
Question 48: By default, where does Terraform store its state file?...
Question 49: Why would you use the terraform taint command?...
Question 50: Refer to the below code where developer is outputting the va...
Question 51: You want to use different AMI images for different regions a...
Question 52: The terraform init command is always safe to run multiple ti...
Question 53: You have created a custom variable definition file my_vars.t...
Question 54: Terraform Enterprise (also referred to as pTFE) requires wha...
Question 55: You just scaled your VM infrastructure and realized you set ...
Question 56: In the below configuration, how would you reference the modu...
Question 57: Which of the following challenges would Terraform be a candi...
Question 58: Which of the following is available only in Terraform Enterp...
Question 59: Module version is required to reference a module on the Terr...
Question 60: resource "aws_s3_bucket" "example" { bucket = "my-test-s3-te...
Question 61: By default, provisioners that fail will also cause the Terra...
Question 62: Which of these options is the most secure place to store sec...
Question 63: In the example below, the depends_on argument creates what t...
Question 64: 1. resource "aws_s3_bucket" "example" { 2. bucket = "my-test...
Question 65: Your risk management organization requires that new AWS S3 b...
Question 66: Your team uses terraform OSS . You have created a number of ...
Question 67: Which two steps are required to provision new infrastructure...
Question 68: In the following code snippet, the block type is identified ...
Question 69: terraform state subcommands such as list are read-only comma...
Question 70: You have declared a variable name my_var in terraform config...
Question 71: Terraform Enterprise currently supports running under which ...
Question 72: John is writing a module and within the module, there are mu...
Question 73: Your configuration file has been locked accidentally. What o...
Question 74: If a module declares a variable with a default, that variabl...
Question 75: Which of the following allows Terraform users to apply polic...
Question 76: Forcing the recreation of a resource is useful when you want...
Question 77: colleagues is new toTerraform and wants to add a new workspa...
Question 78: terraform refresh command will not modify infrastructure, bu...
Question 79: Terraform variable names are saved in the state file....
Question 80: The terraform.tfstate file always matches your currently bui...
Question 81: Terraform console provides an interactive command-line conso...
Question 82: A user has created a module called "my_test_module" and comm...
Question 83: Which type of block fetches or computes information for use ...
Question 84: Where does the Terraform local backend store its state?...
Question 85: When using a module block to reference a module stored on th...
Question 86: Examine the following Terraform configuration, which uses th...
Question 87: If writing Terraform code that adheres to the Terraform styl...
Question 88: Named workspaces are not a suitable isolation mechanism for ...
Question 89: You are using a terraform operation that writes state. Unfor...
Question 90: John wants to use two different regions to deploy two differ...
Question 91: Complete the following sentence: The terraform state command...
Question 92: In regards to Terraform state file, select all the statement...
Question 93: Multiple provider instances blocks for AWS can be part of a ...
Question 94: What is the provider for this fictitious resource? (Exhibit)...
Question 95: You have provisioned some aws resources in your test environ...
Question 96: How would you reference the Volume IDs associated with the e...
Question 97: A junior admin accidentally deleted some of your cloud insta...
Question 98: True or False. The terraform refresh command is used to reco...
Question 99: Which of the below command will upgrade the provider version...
Question 100: Given the below resource configuration - resource "aws_insta...
Question 101: You have created two workspaces PROD and DEV. You have switc...
Question 102: True or False: A list(...) contain a number of values of the...
Question 103: When using multiple configurations of the same Terraform pro...
Question 104: Environment variables can be used to set variables. The envi...
Question 105: Multiple configurations for the same provider can be used in...
Question 106: When multiple engineers start deploying infrastructure using...
Question 107: Which of the following is not valid source path for specifyi...
Question 108: A terraform apply can not___________infrastructure....
Question 109: How can terraform plan aid in the development process?...
Question 110: In order to reduce the time it takes to provision resources,...
Question 111: Please identify the offerings which are unique to Terraform ...
Question 112: From the code below, identify the implicit dependency:...
Question 113: Terraform is currently being used by your organisation to cr...
Question 114: While using generic git repository as a module source, which...
Question 115: You have used Terraform to create an ephemeral development e...
Question 116: What are some of the features of Terraform state? (select th...
Question 117: True or False: Workspaces provide identical functionality in...
Question 118: How would you reference the "name" value of the second insta...
Question 119: You want to know from which paths Terraform is loading provi...
Question 120: If you enable TF_LOG = DEBUG, the log will be stored in sysl...
Question 121: What Terraform command can be used to inspect the current st...
Question 122: You have been working in a Cloud provider account that is sh...
Question 123: You have a Terraform configuration that defines a single vir...
Question 124: You need to constrain the GitHub provider to version 2.1 or ...
Question 125: A user creates three workspaces from the command line - prod...
Question 126: Which of the following is allowed as a Terraform variable na...
Question 127: The following is a snippet from a Terraform configuration fi...
Question 128: How is terraform import run?
Question 129: You have just developed a new Terraform configuration for tw...
Question 130: Which command lets you experiment with Terraform's built-in ...
Question 131: Running terraform fmt without any flags in a directory with ...
Question 132: Consider the following Terraform 0.12 configuration snippet:...
Question 133: What Terraform feature is shown in the example below?...
Question 134: Provider dependencies are created in several different ways....
Question 135: A Terraform provider is not responsible for:...
Question 136: What is the name assigned by Terraform to reference this res...
Question 137: What is a downside to using the Vault provider to read secre...
Question 138: Your team has started using terraform OSS in a big way , and...
Question 139: You wanted to destroy some of the dependent resources from r...
Question 140: What does terraform destroy do?...
Question 141: What allows you to conveniently switch between multiple inst...
Question 142: What advantage does an operations team that uses infrastruct...
Question 143: Which argument(s) are required when declaring a Terraform va...
Question 144: While Terraform is generally written using the HashiCorp Con...
Question 145: You need to specify a dependency manually. What resource met...
Question 146: Workspaces in Terraform provides similar functionality in th...
Question 147: Dawn has created the below child module. Without changing th...
Question 148: You have created a main.tr Terraform configuration consistin...
Question 149: Which of the following is true about terraform apply? (Choos...
Question 150: Your company has a lot of workloads in AWS , and Azure that ...
Question 151: Which of the following best describes a Terraform provider?...
Question 152: Terraform can import modules from a number of sources - whic...
Question 153: Select two answers to complete the following sentence: Befor...
Question 154: Terraform has detailed logs which can be enabled by setting ...
1 commentQuestion 155: When Terraform needs to be installed in a location where it ...
Question 156: One remote backend configuration always maps to a single rem...
Question 157: You have already set TF_LOG = DEBUG to enable debug log. Now...
Question 158: Which one of the following will run echo 0 and echo 1 on a n...
Question 159: As a member of an operations team that uses infrastructure a...
Question 160: From the answers below, select the advantages of using Infra...
Question 161: If you manually destroy infrastructure, what is the best pra...
Question 162: Which of the following actions are performed during a terraf...
Question 163: Which of the below options is a valid interpolation syntax f...
Question 164: Which of the following is the safest way to inject sensitive...
Question 165: By default, a defined provisioner is a creation-time provisi...