TERRAFORM-ASSOCIATE-003 Exam Questions
247 real TERRAFORM-ASSOCIATE-003 exam questions with expert-verified answers and explanations. Page 2 of 5.
- Question #51Implement and maintain state
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
terraform state showresource attributesstate inspectionCLI commands - Question #52Understand Terraform basics
The_________determines how Terraform creates, updates, or delete resources.
Terraform providerresource CRUDprovider roleTerraform architecture - Question #53Use the core Terraform workflow
How does Terraform determine dependencies between resources?
dependency graphimplicit dependenciesresource graphdepends_on - Question #54Implement and maintain state
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
terraform plan -refresh-onlystate refreshdrift detectionstate update - Question #55Use the Terraform CLI (outside of core workflow)
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this o...
TF_LOGenvironment variablesdebuggingprovider loading - Question #56Read, generate, and modify configuration
Which of the following is not a valid Terraform collection type?
collection typesmaplistset - Question #57Interact with Terraform modules
A module can always refer to all variables declared in its parent module.
module variable scopemodule inputsencapsulationvariable passing - Question #58Use the core Terraform workflow
You much initialize your working directory before running terraform validate.
terraform initterraform validateworking directoryinitialization - Question #59Read, Generate, and Modify Configuration
What type of block is used to construct a collection of nested configuration blocks?
dynamic blocksHCL syntaxnested blocksconfiguration language - Question #60Interact with Terraform Modules
You are using a networking module in your Terraform configuration with the name label my- network. In your main configuration you have the following code: When you run terraform va...
module outputsoutput referencesmodule syntaxterraform validate - Question #61Implement and Maintain State
Where does the Terraform local backend store its state?
local backendstate storagetfstate filebackend types - Question #62Understand Terraform Basics
Where can Terraform not load a provider from?
provider pluginsprovider installationplugin sourcesprovider cache - Question #63Implement and Maintain State
Select the command that doesn't cause Terraform to refresh its state.
state refreshterraform commandsterraform state listcore workflow - Question #64Use Terraform Outside the Core Workflow
Which command lets you experiment with terraform expressions?
terraform consoleexpressionsCLI commandsinteractive evaluation - Question #65Understand the Purpose of Terraform (vs other IaC)
If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?
multi-cloudCloudFormation limitationsIaC tools comparisonprovider lock-in - Question #66Implement and Maintain State
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
remote backendTerraform Cloudstate storagebackend types - Question #67Understand Terraform Basics
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider....
dependency lock fileprovider versionsversion constraints.terraform.lock.hcl - Question #68Implement and Maintain State
What is a key benefit of the Terraform state file?
state file purposesource of truthresource trackingstate management - Question #69Implement and Maintain State
You have to initialize a Terraform backend before it can be configured.
backend configurationterraform initbackend initializationworkflow order - Question #70Use the Core Terraform Workflow
You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is th...
terraform taintresource replacementtargeted operationscore workflow - Question #71Interact with Terraform Modules
How would you output returned values from a child module in the Terraform CLI output?
module outputsroot modulechild moduleoutput propagation - Question #72Interact with Terraform Modules
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example. Git::https://example.com/vpc.git)?
module versioningGit module sourcesource path argumentsmodule registry - Question #73Interact with Terraform Modules
Terraform configuration can only import modules from the public registry.
module sourcesprivate registrymodule registrysource types - Question #75Use the Core Terraform Workflow
Which configuration consistency errors does terraform validate report?
terraform validateconfiguration validationduplicate identifierssyntax checking - Question #76Use the Core Terraform Workflow
You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To...
terraform destroyterraform plan -destroyresource deletion previewcore workflow - Question #77Use Terraform Outside the Core Workflow
You can configure Terraform to log to a file using the TF_LOG environment variable.
TF_LOGloggingenvironment variablesdebugging - Question #78Use the Core Terraform Workflow
When should you run terraform init?
terraform initinitialization workflowproject setupcore workflow - Question #79Understand Terraform Cloud and Enterprise capabilities
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
private registrymodule registryTerraform Cloudmodule sharing - Question #80Use the Terraform CLI (outside of core workflow)
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
terraform fmtcode formattingCLI commandsstyle conventions - Question #81Navigate Terraform workflow
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
resource dependenciesdepends_onimplicit dependenciesdependency graph - Question #82Use and create Terraform providers
Which provider authentication method prevents credentials from being stored in the state file?
provider authenticationenvironment variablesstate file securitycredentials - Question #84Read, generate, and modify configuration
Which Terraform collection type should you use to store key/value pairs?
map typecollection typesHCL data typeskey/value pairs - Question #85Navigate Terraform workflow
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
terraform initprovider pluginsplugin installationworkflow - Question #86Navigate Terraform workflow
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
terraform initterraform applycore workflowCLI commands - Question #87Understand Terraform Cloud and Enterprise capabilities
Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this securit...
Sentinel policypolicy as codeTerraform Cloudsecurity enforcement - Question #88Understand infrastructure as code (IaC) concepts
Which of the following is not a key principle of infrastructure as code?
infrastructure as codeIaC principlesidempotencegolden images - Question #89Implement and maintain state
A developer on your team is going lo leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] the...
terraform state rmstate managementresource removalCLI commands - Question #90Read, generate, and modify configuration
HashiCorp Configuration Language (HCL) supports user-denned functions.
HCLuser-defined functionsTerraform limitationsbuilt-in functions - Question #91Understand Terraform basics
Terraform providers are part of the Terraform core binary.
providersTerraform coreplugin architectureprovider separation - Question #92Read, generate, and modify configuration
How would you be able to reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following...
data sourcesattribute referenceHCL syntaxresource interpolation - Question #93Interact with Terraform modules
Which of the following module source paths does not specify a remote module?
module sourcelocal modulesremote modulesmodule paths - Question #94Use and create Terraform providers
Terraform configuration (including any module references) can contain only one Terraform provider type.
providersmultiple providersTerraform configurationprovider types - Question #95Use the Terraform CLI (outside of core workflow)
Which of these commands makes your code more human readable?
terraform fmtcode formattingCLI commandsreadability - Question #96Interact with Terraform modules
Any user can publish modules to the public Terraform Module Registry.
module registrypublic registrymodule publishingregistry access - Question #97Navigate Terraform workflow
Which task does terraform init not perform?
terraform initinitializationvariable validationworkflow steps - Question #98Understand infrastructure as code (IaC) concepts
Which of the following is not a benefit of adopting infrastructure as code?
infrastructure as codeIaC benefitsautomationversioning - Question #99Use Terraform outside of the core workflow
Which provisioner invokes a process on the resource created by Terraform?
provisionersremote-execresource lifecycle - Question #100Use the core Terraform workflow
What command does Terraform require the first time you run it within a configuration directory?
terraform initCLI commandsworking directoryinitialization - Question #101
What is not processed when running a terraform refresh?
- Question #102Read, generate, and modify configuration
Which of the following is not a valid string function in Terraform?
built-in functionsstring functionsHCLfunction reference