<< Prev Question Next Question >>

Question 13/146

You have a saved execution plan containing desired changes for infrastructure managed by Terraform. After running the command terraform apply my.tfplan , you receive the error shown in the exhibit below.
Exhibit:
Error: Saved plan is stale
The given plan file can no longer be applied because the state was changed by another operation after the plan was created.
How can you apply the desired changes? (Choose TWO correct answers)

LEAVE A REPLY

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

Question List (146q)
Question 1: What does terraform import do?
Question 2: Which is not a benefit of adopting IaC (Infrastructure as Co...
Question 3: Using the terraform state rm command against a resource will...
Question 4: What value does the Terraform Cloud private registry provide...
Question 5: Your team is collaborating on infrastructure using Terraform...
Question 6: You must use different Terraform commands depending on the c...
Question 7: Exhibit. You need to deploy resources into two different reg...
Question 8: You can define multiple backend blocks in your Terraform con...
Question 9: Terraform configuration (including any module references) ca...
Question 10: Which of the following isnotan advantage of using Infrastruc...
Question 11: You just upgraded the version of a provider in an existing T...
Question 12: When should you write Terraform configuration files for exis...
Question 13: You have a saved execution plan containing desired changes f...
Question 14: Select the command that doesn't cause Terraform to refresh i...
Question 15: What task does the terraform import command perform?...
Question 16: What is the provider for the resource shown in the Exhibit? ...
Question 17: Which of these statements about HCP Terraform/Terraform Clou...
Question 18: You want to create a string that is a combination of a gener...
Question 19: Running terraform fmt without any flags in a directory with ...
Question 20: Running terraform fmt without any flags in a directory with ...
Question 21: You ' re writing a Terraform configuration that needs to rea...
Question 22: What command can you run to generateDOT (Graphviz)formatted ...
Question 23: You have a simple Terraform configuration containing one vir...
Question 24: You have to initialize a Terraform backend before it can be ...
Question 25: You ' re building a CI/CD (continuous integration/continuous...
Question 26: What Terraform command always causes a state file to be upda...
Question 27: When using multiple configuration of the same Terraform prov...
Question 28: You ate making changes to existing Terraform code to add som...
Question 29: Which statements are true about terraform apply ? (Choose TW...
Question 30: terraform validate reports syntax check errors for which of ...
Question 31: Your root module contains a variable namednum_servers. Which...
Question 32: How does the use of Infrastructure as Code (IaC) enhance the...
Question 33: It is best practice to store secret data in the same version...
Question 34: Which of the following is not true of Terraform providers?...
Question 35: Which of these statements about Terraform Cloud workspaces i...
Question 36: Where does HashiCorp recommend you store API tokens and othe...
Question 37: Which of the following ate advantages of using infrastructur...
Question 38: Which task does terraform init not perform?...
Question 39: Which command generates DOT (Document Template) formatted da...
Question 40: Only the user that generated a terraform plan may apply it....
Question 41: Terraformrequiresthe Go runtime as a prerequisite for instal...
Question 42: If you manually destroy infrastructure, what is the best pra...
Question 43: Which of these actions are forbidden when the Terraform stat...
Question 44: Which of these are features of HCP Terraform/Terraform Cloud...
Question 45: Terraform installs its providers during which phase?...
Question 46: You have developed a new cloud-based service that uses propr...
Question 47: By default, if you do not define a backend for your configur...
Question 48: What is modified when executing Terraform inrefresh-only mod...
Question 49: Terraform providers are always installed from the Internet....
Question 50: You corrected a typo in a resource name, changing it from aw...
Question 51: What is one disadvantage of using dynamic blocks in Terrafor...
Question 52: Exhibit: data " vsphere_datacenter " " dc " {} resource " vs...
Question 53: What kind of configuration block will create an infrastructu...
Question 54: Where does HashiCorp recommend you store API tokens and othe...
Question 55: Which of these are features of Terraform Cloud? Choose two c...
Question 56: You have a list of numbers that represents the number of fre...
Question 57: Infrastructure as Code (laC) can be stored in a version cont...
Question 58: terraform validate confirms thesyntaxof Terraform files....
Question 59: Which of the following methods, used to provision resources ...
Question 60: How is terraform import run?
Question 61: Which of the following should you put into the required_prov...
Question 62: Which of the following should you add in the required_provid...
Question 63: Which of the following is not a way to trigger terraform des...
Question 64: Why does this backend configuration not follow best practice...
Question 65: If one of your modules uses a local value, you can expose th...
Question 66: You are tasked with making a change to an infrastructure sta...
Question 67: You have a simple Terraform configuration containing one vir...
Question 68: The public Terraform Module Registry is free to use....
Question 69: You have never used Terraform before and would like to test ...
Question 70: Exhibit: provider " aws " { region = " us-east-1 " } provide...
Question 71: Exhibit: resource " kubernetes_namespace " " example " { nam...
Question 72: Your Terraform configuration declares a variable. You want t...
Question 73: Your team often uses API calls to create and manage cloud in...
Question 74: Which of the following statements about Terraform modules is...
Question 75: You are writing a child Terraform module that provisions an ...
Question 76: As a member of an operations team that uses infrastructure a...
Question 77: You want to create a string that combines a generated random...
Question 78: You have created a main.tf Terraform configuration consistin...
Question 79: Variables declared within a module are accessible outside of...
Question 80: Which syntax check returns an error when you run terraform v...
Question 81: In Terraform HCL, an object type of object({name=string, age...
Question 82: Which of the following does terraform apply change after you...
Question 83: _______backends support state locking....
Question 84: Which Terraform command checks that your configuration synta...
Question 85: Which two steps are required to provision new infrastructure...
Question 86: Only the user that generated a plan may apply it....
Question 87: You want to use API tokens and other secrets within your tea...
Question 88: terraform validate confirms that your infrastructure matches...
Question 89: All modules published on the official Terraform Module Regis...
Question 90: terraform destroy is the only way to remove infrastructure....
Question 91: You want to define a single input variable to capture config...
Question 92: You ' re writing a Terraform configuration that needs to rea...
Question 93: In a Terraform Cloud workspace linked to a version control r...
Question 94: Exhibit: Root module configuration: output " vnet_id " { val...
Question 95: You want to know from which paths Terraform is loading provi...
Question 96: What functionality do providers offer in Terraform? (Pick th...
Question 97: A Terraform provider is NOT responsible for:...
Question 98: What is an advantage of immutable infrastructure?...
Question 99: How does Terraform manage most dependencies between resource...
Question 100: Which Terraform collection type should you use to store key/...
Question 101: Which method for sharing Terraform modules fulfills the foll...
Question 102: You've enabled DEBUG-level logging for Terraform, and you'd ...
Question 103: You want to use API tokens and other secrets within your tea...
Question 104: Where in your Terraform configuration do you specify a state...
Question 105: You cannot install third party plugins using terraform init....
Question 106: One cloud block always maps to a single HCP Terraform/Terraf...
Question 107: You want to define multiple data disks as nested blocks insi...
Question 108: terraform init creates an example main.tf file in the curren...
Question 109: Any user can publish modules to the public Terraform Module ...
Question 110: One remote backend configuration always maps to a single rem...
Question 111: Terraform encrypts sensitive values stored in your state fil...
Question 112: You have a Terraform configuration that defines a single vir...
Question 113: A Terraform output that sets the " sensitive " argument to t...
Question 114: What is the provider for this resource?...
Question 115: What does this code do? terraform { required_providers { aws...
Question 116: A resource block is shown in the Exhibit space of this page....
Question 117: If a DevOps team adopts AWS CloudFormation as their standard...
Question 118: You used Terraform to create an ephemeral development enviro...
Question 119: Where in your Terraform configuration do you specify remote ...
Question 120: What is the purpose of the .terraform directory in a Terrafo...
Question 121: How can you trigger a run in a Terraform Cloud workspace tha...
Question 122: A terraform apply can not _________ infrastructure....
Question 123: Which task does terraform init not perform?...
Question 124: What is the Terraform style convention for indenting a nesti...
Question 125: What are some benefits of using Sentinel with Terraform Clou...
Question 126: Your team is using version 3.1.4 of a module from the public...
Question 127: A module block is shown in the Exhibit space of this page. W...
Question 128: The terraform output command shows outputs from child module...
Question 129: What is a key benefit of the Terraform state file?...
Question 130: Which statement describes a goal of Infrastructure as Code (...
Question 131: When does Terraform create the .terraform.lock.hc1 file?...
Question 132: How can terraform plan aid in the development process?...
Question 133: The HCP Terraform private registry keeps the module configur...
Question 134: What is the purpose of state locking in a remote backend?...
Question 135: Which of these workflows is only enabled by the use of Infra...
Question 136: Which option cannot be used to keep secrets out of Terraform...
Question 137: In a Terraform Cloud workpace linked to a version control re...
Question 138: You can execute terraform fmt to standardize all Terraform c...
Question 139: You have used Terraform lo create an ephemeral development e...
Question 140: You have provisioned some virtual machines (VMs) on Google C...
Question 141: The_________determines how Terraform creates, updates, or de...
Question 142: Which of the following is not a way to trigger terraform des...
Question 143: How can a ticket-based system slow down infrastructure provi...
Question 144: What is the primary purpose of Infrastructure as Code (IaC)?...
Question 145: What is a Terraform provider not responsible for?...
Question 146: Terraform can only manage resource dependencies if you set t...