TERRAFORM-ASSOCIATE-004 Exam Questions
262 real TERRAFORM-ASSOCIATE-004 exam questions with expert-verified answers and explanations. Page 2 of 6.
- Question #51Manage Terraform State
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Terraform CLITerraform StateState InspectionResource Attributes - Question #52Understand Terraform Providers
The_________determines how Terraform creates, updates, or delete resources.
Terraform providersResource lifecycleInfrastructure management - Question #53Work with Terraform Configurations
How does Terraform determine dependencies between resources?
Dependency GraphResource DependenciesExpressionsMeta-arguments - Question #54Manage Terraform State
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Terraform CLIState ManagementDrift DetectionRefresh Operations - Question #55Use Terraform CLI
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...
Terraform loggingDebuggingEnvironment variablesProvider loading - Question #56Understand Terraform Basics
Which of the following is not a valid Terraform collection type?
collection typesdata typestype system - Question #57Work with Terraform Modules
A module can always refer to all variables declared in its parent module.
Terraform ModulesModule InputsVariable ScopeModule Communication - Question #58Use Terraform CLI
You much initialize your working directory before running terraform validate.
terraform initterraform validateCLI workflowdirectory initialization - Question #59Work with Terraform Configurations
What type of block is used to construct a collection of nested configuration blocks?
Dynamic BlocksHCLConfiguration LanguageNested Blocks - Question #60Work 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...
Terraform ModulesModule OutputsModule CommunicationError Resolution - Question #61Manage Terraform State
Where does the Terraform local backend store its state?
Terraform stateLocal backendState file locationterraform.tfstate - Question #62Understand Terraform Providers
Where can Terraform not load a provider from?
Provider loadingPlugin architectureTerraform initProvider sources - Question #63Manage Terraform State
Select the command that doesn't cause Terraform to refresh its state.
Terraform stateState refreshTerraform CLIterraform state list - Question #64Use Terraform CLI
Which command lets you experiment with terraform expressions?
Terraform CLIConsole commandExpressionsInteractive experimentation - Question #65Understand Infrastructure as Code (IaC) Concepts
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?
IaC tool limitationsCloud-agnostic IaCMulti-cloud strategyCloudFormation - Question #66Manage Terraform State
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
Terraform stateRemote backendTerraform CloudState storage - Question #67Understand Terraform Providers
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....
Provider versioningDependency locking.terraform.lock.hclTerraform init - Question #68Manage Terraform State
What is a key benefit of the Terraform state file?
Terraform stateState file purposeSource of truthInfrastructure management - Question #69Manage Terraform State
You have to initialize a Terraform backend before it can be configured.
Terraform backendterraform initBackend configurationState management - Question #70Use Terraform CLI
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 CLIResource replacementState manipulationterraform taint - Question #71Work with Terraform Modules
How would you output returned values from a child module in the Terraform CLI output?
Terraform ModulesModule OutputsChild ModulesRoot Module Configuration - Question #72Work 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 Source SyntaxGit ModulesModule Versioning - Question #73Work with Terraform Modules
Terraform configuration can only import modules from the public registry.
Terraform modulesModule sourcesModule registryPrivate modules - Question #75Use Terraform CLI
Which configuration consistency errors does terraform validate report?
terraform validateconfiguration validationCLI commandsHCL syntax errors - Question #76Use Terraform CLI
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 CLIDestroy ResourcesPlan CommandPreview Changes - Question #77Use Terraform CLI
You can configure Terraform to log to a file using the TF_LOG environment variable.
Terraform loggingTF_LOGEnvironment variablesDebugging - Question #78Use Terraform CLI
When should you run terraform init?
terraform initCLI workflowInitializationProvider installation - Question #79Understand Terraform Cloud and Enterprise Capabilities
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
Terraform CloudPrivate RegistryModule RegistryAccess Control - Question #80Use Terraform CLI
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
terraform fmtCLI commandscode formatting - Question #81Work with Terraform Configurations
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Terraform dependenciesImplicit dependenciesExplicit dependenciesdepends_on argument - Question #82Understand Terraform Providers
Which provider authentication method prevents credentials from being stored in the state file?
Provider authenticationSecurity best practicesState file securityEnvironment variables - Question #84Understand Terraform Basics
Which Terraform collection type should you use to store key/value pairs?
Terraform data typescollection typesmapskey-value pairs - Question #85Use Terraform CLI
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 installationterraform CLI workflowdependencies - Question #86Use Terraform CLI
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
Terraform WorkflowTerraform CLIInfrastructure ProvisioningCore 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...
SentinelPolicy 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 PrinciplesIdempotenceVersion Control - Question #89Manage Terraform 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 managementterraform state rmResource lifecycleTerraform CLI - Question #90Work with Terraform Configurations
HashiCorp Configuration Language (HCL) supports user-denned functions.
HCLLanguage featuresUser-defined functionsConfiguration syntax - Question #91Understand Terraform Providers
Terraform providers are part of the Terraform core binary.
Terraform providersTerraform architecturePlugins - Question #92Work with Terraform Configurations
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 SourcesReferencing AttributesTerraform SyntaxExpressions - Question #93Work with Terraform Modules
Which of the following module source paths does not specify a remote module?
Module sourcesLocal modulesRemote modulesModule paths - Question #94Understand Terraform Providers
Terraform configuration (including any module references) can contain only one Terraform provider type.
Terraform providersmultiple providersconfiguration structure - Question #95Use Terraform CLI
Which of these commands makes your code more human readable?
Terraform CLICode formattingHCL syntaxReadability - Question #96Work with Terraform Modules
Any user can publish modules to the public Terraform Module Registry.
Terraform ModulesModule RegistryPublishing ModulesPublic Registry - Question #97Use Terraform CLI
Which task does terraform init not perform?
terraform initTerraform CLIInitialization processBackend configuration - Question #98Understand Infrastructure as Code (IaC) Concepts
Which of the following is not a benefit of adopting infrastructure as code?
Infrastructure as CodeIaC BenefitsIaC Concepts - Question #99Work with Terraform Configurations
Which provisioner invokes a process on the resource created by Terraform?
Provisionersremote-execResource configurationPost-creation actions - Question #100Use Terraform CLI
What command does Terraform require the first time you run it within a configuration directory?
terraform initTerraform workflowCLI commandsConfiguration initialization - Question #101Manage Terraform State
What is not processed when running a terraform refresh?
terraform refreshState managementTerraform CLIProviders - Question #102Work with Terraform Configurations
Which of the following is not a valid string function in Terraform?
Terraform functionsString manipulationBuilt-in functions