TERRAFORM-ASSOCIATE-003 Exam Questions
247 real TERRAFORM-ASSOCIATE-003 exam questions with expert-verified answers and explanations. Page 5 of 5.
- Question #206Navigate Terraform workflow
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if y...
terraform applyidempotencystate file - Question #207Understand Infrastructure as Code (IaC) concepts
Which statement describes a goal of Infrastructure as Code (IaC)?
Infrastructure as CodeIaC conceptsprogrammatic configuration - Question #208Navigate Terraform workflow
terraform init creates an example main.tf file in the current directory.
terraform initinitializationmain.tf - Question #209Use Terraform outside of core workflow
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
terraform importstate managementexisting infrastructure - Question #210Navigate Terraform workflow
terraform destroy is the only way to remove infrastructure.
terraform destroyinfrastructure removal - Question #211Navigate Terraform workflow
Terraform installs its providers during which phase?
terraform initprovidersinitialization phases - Question #212Navigate Terraform workflow
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
terraform applystate reconciliationdrift remediation - Question #213Use Terraform outside of core workflow
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem? Error: yaml CopyEdit Error loading state: AccessDeni...
TF_LOGdebuggingerror diagnosisaccess denied - Question #214Understand Terraform basics
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
resource attributesHCL syntaxresource references - Question #215Interact with Terraform modules
A child module can always access variables declared in its parent module.
child modulesparent modulesvariable scope - Question #216Navigate Terraform workflow
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
terraform initprovider upgradeversion management - Question #217Interact with Terraform modules
terraform init retrieves and caches the configuration for all remote modules.
terraform initremote modulesmodule caching - Question #218Manage state
Which command does not cause Terraform to refresh its state?
state refreshterraform state listterraform plan - Question #219Understand Terraform's purpose and use cases
What functionality do providers offer in Terraform? (Pick 3 correct responses)
providerscloud APIson-premises infrastructurepublic cloud - Question #220Navigate Terraform workflow
You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time. Which Terrafor...
terraform initworkflow orderinitialization - Question #221Navigate Terraform workflow
Which of the following is true about terraform apply? (Pick 2 correct responses)
terraform applystate refreshresource targetingdestroy and recreate - Question #222Interact with Terraform modules
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
terraform initmodule caching.terraform directoryTerraform Registry - Question #223Navigate Terraform Workflow
terraform apply will fail if you have not run terraform plan first to update the plan output.
terraform applyterraform planCLI workflowcommand ordering - Question #224Implement and Maintain State
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
terraform backendstate storageterraform applyterraform destroy - Question #225Use Terraform Outside of Core Workflow
What command can you run to generate DOT (Graphviz) formatted data to visualize Terraform dependencies?
terraform graphdependency visualizationGraphvizCLI commands - Question #226Understand HCP Terraform Capabilities
Which of the following is available only in HCP Terraform workspaces and not in Terraform CLI?
HCP Terraformworkspacesremote state data sourceCLI vs cloud - Question #227Interact with Terraform Modules
Which argument can you use to prevent unexpected updates to a module's configuration when calling Terraform Registry modules?
module versioningversion constraintTerraform Registrymodule configuration - Question #228Use Terraform Outside of Core Workflow
terraform validate confirms the syntax of Terraform files.
terraform validatesyntax validationCLI commands - Question #229Understand Infrastructure as Code (IaC) Concepts
Which of the following is not an advantage of using Infrastructure as Code (IaC) operations?
IaC benefitsself-service infrastructureAPI-driven workflowsconsole vs IaC - Question #230Understand Terraform's Purpose and Use Cases
Terraform requires the Go runtime as a prerequisite for installation.
Terraform installationGo runtimeprerequisitesbinary distribution - Question #231Implement and Maintain State
What is modified when executing Terraform in refresh-only mode?
refresh-only modestate fileplan modesdrift detection - Question #232Interact with Terraform Modules
Which of the following locations can Terraform use as a private source for modules? (Pick 2 correct responses)
private module registrymodule sourcesVCS integrationprivate GitHub - Question #233Implement and Maintain State
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
local backendterraform.tfstatedefault backendstate file location - Question #234Understand Terraform's Purpose and Use Cases
You have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact w...
custom providerprovider developmentproprietary APIsTerraform extensibility - Question #235Understand Terraform Basics
What is a Terraform provider not responsible for?
provider responsibilitiesAPI interactionresource managementmulti-cloud - Question #236Implement and Maintain State
What is the purpose of the terraform.lock.hcl file in Terraform?
dependency lock fileterraform.lock.hclprovider versioningdependency tracking - Question #237Implement and Maintain State
What task does the terraform import command perform?
terraform importexisting resourcesstate managementCLI commands - Question #238Navigate Terraform Workflow
Which of the following can you do with terraform plan? (Pick 2 correct responses)
terraform planexecution planplan filesaved plan - Question #239Interact with Terraform Modules
What type of information can be found on the Terraform Registry when using published modules?
Terraform Registrymodule documentationmodule inputsmodule outputs - Question #240Navigate Terraform Workflow
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
terraform applyoutput valuesroot modulechild modules - Question #241Implement and Maintain State
When you use a backend that requires authentication, it is best practice to:
backend authenticationenvironment variablescredentials securitysecrets management - Question #242Read, Generate, and Modify Configuration
You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state...
moved blockresource renamingstate refactoringresource address - Question #243Understand Terraform Basics
Which of the following should you add in the required_providers block to define a provider version constraint?
required_providersprovider version constraintHCL syntaxprovider configuration - Question #244Understand HCP Terraform Capabilities
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
cloud blockHCP TerraformTerraform Cloudworkspace mapping - Question #245Interact with Terraform Modules
If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.
module variablesdefault valuesmodule blockvariable declaration - Question #246Interact with Terraform Modules
If one of your modules uses a local value, you can expose that value to callers of the module by defining a Terraform output in the module's configuration.
local valuesmodule outputsoutput valuesmodule configuration - Question #247Implement and Maintain State
A developer launched a VM outside of the Terraform workflow and ended up with two servers with the same name. They are unsure which VM is managed with Terraform, but they do have a...
terraform statestate liststate showresource introspection - Question #248Use the Core Terraform Workflow
Only the user that generated a terraform plan may apply it.
terraform planterraform applyplan filecore workflow - Question #249Read, 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 a...
file functionbuilt-in functionsstring functionsHCL expressions - Question #250Understand Infrastructure as Code (IaC) Concepts
You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?
IaC best practicesHCP Terraformpull request workflowversion control - Question #252Understand Terraform Basics
Which of the following should you add in the required_providers block to define a provider version constraint?
required_providersversion constraint syntaxprovider configurationHCL syntax - Question #253Implement and Maintain State
When you use a backend that requires authentication, it is best practice to:
backend authenticationenvironment variablescredentials managementsecurity best practices