TERRAFORM-ASSOCIATE-003 Exam Questions
247 real TERRAFORM-ASSOCIATE-003 exam questions with expert-verified answers and explanations. Page 4 of 5.
- Question #155Implement and maintain state
Define the purpose of state in Terraform.
Terraform statestate purposeresource mappingmetadata tracking - Question #156Use the core Terraform workflow
terraform plan updates your state file.
terraform planstate filecore workflowplan behavior - Question #157Use Terraform outside the core workflow
Why would you use the -replace flag for terraform apply?
-replace flagresource recreationterraform applyresource lifecycle - Question #158Implement and maintain state
Before you can use a remote backend, you must first execute terra-form init.
remote backendterraform initbackend initializationworkflow prerequisites - Question #159Use Terraform outside the core workflow
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide...
TF_LOGdebuggingenvironment variablestroubleshooting - Question #160Read, generate, and modify configuration
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents...
built-in functionsfile functionstring functionsconfiguration templating - Question #161Read, generate, and modify configuration
Which of the following arguments are required when declaring a Terraform output?
output valuesoutput argumentsvalue argumentconfiguration syntax - Question #163Implement and maintain state
Where in your Terraform configuration do you specify a state backend?
state backendterraform blockbackend configuration - Question #164Understand infrastructure as code (IaC) concepts
Infrastructure as Code (laC) can be stored in a version control system along with application code.
IaCversion controlinfrastructure as code - Question #165Use the core Terraform workflow
terraform validate reports syntax check errors for which of the following?
terraform validatesyntax checkingvalidation limitations - Question #166Use the core Terraform workflow
Which Terraform command checks that your configuration syntax is correct?
terraform validatesyntax checkingCLI commands - Question #167Use Terraform outside the core workflow
What does terraform import do?
terraform importstate managementexisting resources - Question #168Understand Terraform Cloud capabilities
Which of these are features of Terraform Cloud? Choose two correct answers.
Terraform Cloudremote state storageweb UIfeatures - Question #169Implement and maintain state
What is terraform refresh-only intended to detect?
terraform refresh-onlystate driftstate reconciliation - Question #170Understand Terraform basics
When does Terraform create the .terraform.lock.hc1 file?
dependency lock file.terraform.lock.hclterraform initprovider versions - Question #171Read, generate, and modify configuration
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in...
dynamic blocksnested blocksmeta-argumentsconfiguration iteration - Question #172Implement and maintain state
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
sensitive outputsstate fileoutput valuessecrets management - Question #173Implement and maintain state
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
state lockingbackend typesremote operationsstandard backends - Question #174Implement and maintain state
You can access state stored with the local backend by using terraform_remote_state data source.
local backendterraform_remote_statedata sourcebackend types - Question #175Use the core Terraform workflow
How can terraform plan aid in the development process?
terraform planexecution plancore workflowstate preview - Question #176Use the core Terraform workflow
Multiple team members are collaborating on infrastructure using Terraform and want to format the* Terraform code following standard Terraform-style convention. How should they ensu...
terraform fmtcode formattingHCL styleteam conventions - Question #177Read, generate, and modify configuration
How would you reference the "name'' value of the second instance of this resource?
count meta-argumentresource indexingresource referencesHCL syntax - Question #178Read, generate, and modify configuration
You have a list of numbers that represents the number of free CPU cores on each virtual cluster: What Terraform function could you use to select the largest number from the list?
built-in functionsmax functionnumeric functionscollection functions - Question #179Interact with Terraform modules
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
Terraform Registrymodule verificationHashiCorp verifiedpublic modules - Question #180Understand Terraform basics
What is the provider for this resource?
provider identificationresource namingHCL syntaxprovider block - Question #181Implement and maintain state
Terraform encrypts sensitive values stored in your state file.
state file securitysensitive datastate encryptionsecrets management - Question #182Understand Terraform Cloud capabilities
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
HCP TerraformTerraform Cloudremote state storageweb UI - Question #183Implement and Maintain State
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
state lockingterraform statestate managementterraform commands - Question #184Understand HCP Terraform Capabilities
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
HCP TerraformworkspacesVCS integrationRBAC - Question #185Understand HCP Terraform Capabilities
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
Sentinelpolicy-as-codeHCP Terraformcompliance enforcement - Question #186Navigate the Core Terraform Workflow
You used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be...
terraform destroydestroy planresource lifecycleterraform workflow - Question #187Interact with Terraform Modules
Terraform configuration can only call modules from the public registry.
modulesmodule sourcespublic registryprivate registry - Question #188Understand HCP Terraform Capabilities
You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses...
secrets managementHCP Terraform variablesHashiCorp Vaultsensitive values - Question #189Interact with Terraform Modules
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
module versioningTerraform Registrymodule blockversion constraints - Question #190Interact with Terraform Modules
Your root module contains a variable named num_servers. Which is the correct way to pass its value to a child module with an input named servers?
module variablesvariable referenceschild modulesHCL syntax - Question #191Understand Terraform Basics
What is the provider for the resource shown in the Exhibit? resource "aws_vpc" "main" { name = "test" }
resource namingprovider identificationresource syntaxHCL - Question #192Interact with Terraform Modules
Which method for sharing Terraform modules fulfills the following criteria: - Keeps the module configurations confidential within your organization. - Supports Terraform's semantic...
private registrymodule sharingversioningHCP Terraform - Question #193Implement and Maintain State
When do you need to explicitly execute Terraform in refresh-only mode?
refresh-only modeterraform importstate syncterraform workflow - Question #194Interact with Terraform Modules
A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you...
module versioningTerraform Registryversion attributemodule block - Question #195Read, Generate, and Modify Configuration
What is the Terraform style convention for indenting a nesting level compared to the one above it?
HCL styleindentationterraform fmtcode conventions - Question #196Understand HCP Terraform Capabilities
In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
HCP Terraformspeculative plansVCS integrationworkspaces - Question #197Implement and Maintain State
Which command(s) adds existing resources in a public cloud into Terraform state?
terraform importexisting resourcesstate managementinfrastructure import - Question #198Understand HCP Terraform Capabilities
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
HCP Terraformremote stateworkspace featuresUI - Question #199Navigate the Core Terraform Workflow
Which of the following is not a way to trigger terraform destroy?
terraform destroyauto-approvedestroy plandestroy workflow - Question #200Implement and Maintain State
Using the terraform state rm command against a resource will destroy it.
terraform state rmstate managementresource removalstate vs destroy - Question #201Navigate the Core Terraform Workflow
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
terraform initbackend configurationHCP Terraform integrationinitialization - Question #202Use the Terraform CLI (Outside of Core Workflow)
terraform validate uses provider APIs to verify your infrastructure settings.
terraform validateconfiguration validationprovider APIssyntax checking - Question #203Understand Terraform basics
Terraform variables and outputs that set the description argument will store that description in the state file.
variablesoutputsstate filedescription argument - Question #204Use Terraform outside of core workflow
You use a cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that listens on port 80. After application changes,...
terraform applystate filedriftconcurrency - Question #205Understand Terraform basics
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
resource blockHCL syntaxresource naming