TERRAFORM-ASSOCIATE-004 Exam Questions
262 real TERRAFORM-ASSOCIATE-004 exam questions with expert-verified answers and explanations. Page 1 of 6.
- Question #1Manage Terraform State
What does Terraform not reference when running a terraform apply -refresh-only ?
terraform applyrefresh-onlystate managementCLI behavior - Question #2Work with Terraform Configurations
Which of the following is not a valid Terraform variable type?
Terraform variablesData typesType constraintsInput variables - Question #3Manage Terraform State
You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf. Which command will migrate your current state...
Terraform state managementRemote backendsterraform init commandState migration - Question #4Manage Terraform State
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Wh...
Terraform backendsRemote stateState managementBackend types - Question #5Manage Terraform State
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP a...
Terraform StateCLI CommandsResource InspectionDebugging - Question #6Use Terraform CLI
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Terraform CLIProvider managementterraform init commandPlugin updates - Question #7Work with Terraform Modules
What information does the public Terraform Module Registry automatically expose about published modules?
Terraform Module RegistryModule InputsModule OutputsModule Documentation - Question #8Use Terraform CLI
You must use different Terraform commands depending on the cloud provider you use.
Terraform CLIProvider AbstractionUnified Workflow - Question #9Understand Infrastructure as Code (IaC) Concepts
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which...
IaC best practicesVersion control workflowsPull requestsChange management - Question #10Use Terraform CLI
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
terraform validateTerraform workflowsyntax validationCLI commands - Question #11Work with Terraform Configurations
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
Terraform LanguageSplat ExpressionResource AttributesNested Blocks - Question #12Use Terraform CLI
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
terraform fmtcode formattingCLI optionsmulti-module configurations - Question #13Work with Terraform Configurations
What kind of configuration block will create an infrastructure object with settings specified within the block?
Terraform resource blocksInfrastructure as CodeTerraform configuration - Question #14Work with Terraform Configurations
What is the Terraform style convention for indenting a nesting level compared to the one above it?
HCL formattingCode conventionsIndentationStyle guide - Question #15Manage Terraform State
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (V...
Terraform stateterraform destroyResource managementTerraform CLI - Question #16Understand Terraform Providers
When do changes invoked by terraform apply take effect?
terraform applyresource providerexecution flowchange propagation - Question #17Use Terraform CLI
What is the workflow for deploying new infrastructure with Terraform?
Terraform workflowterraform initterraform planterraform apply - Question #18Understand Terraform Providers
You can develop a custom provider to manage its resources using Terraform.
Custom providersProvider developmentTerraform extensibility - Question #19Work with Terraform Configurations
What is one disadvantage of using dynamic blocks in Terraform?
Dynamic BlocksTerraform LanguageConfiguration ReadabilityCode Maintainability - Question #20Manage Terraform State
Which backend does the Terraform CU use by default?
Terraform backendLocal stateDefault configurationState management - Question #21Understand Terraform Basics
How does Terraform manage most dependencies between resources?
Resource dependenciesAutomatic dependency resolutionTerraform graph - Question #22Work with Terraform Configurations
You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.
Terraform ExpressionsList ManipulationFor ExpressionsSplat Expressions - Question #23Work with Terraform Configurations
It is best practice to store secret data in the same version control repository as your Terraform configuration.
Secret managementSecurity best practicesSensitive dataVersion control - Question #24Manage Terraform State
_______backends support state locking.
Terraform backendsState lockingRemote stateState management - Question #25Work with Terraform Configurations
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string. Which variab...
Input VariablesVariable TypesComplex TypesObject Type - Question #26Work with Terraform Modules
Which of the following statements about Terraform modules is not true?
Terraform modulesModule sourcesModule compositionModule reusability - Question #27Manage Terraform State
When you use a remote backend that needs authentication, HashiCorp recommends that you:
Remote BackendsAuthenticationSecurity Best PracticesPartial Backend Configuration - Question #28Work with Terraform Configurations
You can reference a resource created with for_each using a Splat ( *) expression.
for_eachSplat expressionResource referencingCollection types - Question #29Use Terraform CLI
Only the user that generated a plan may apply it.
Terraform planTerraform applyWorkflowPermissions - Question #30Use Terraform CLI
You cannot install third party plugins using terraform init.
terraform initproviderspluginsinstallation - Question #31Understand Terraform Cloud and Enterprise Capabilities
Which of these ate features of Terraform Cloud? Choose two correct answers.
Terraform CloudWeb UIRemote StateFeatures - Question #32Use Terraform CLI
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
DebuggingTF_LOGEnvironment VariablesCLI Logging - Question #33Understand Terraform Cloud and Enterprise Capabilities
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Terraform CloudRemote ExecutionState BackendsPlatform Capabilities - Question #34Use Terraform CLI
Which command add existing resources into Terraform state?
Terraform CLIterraform importImporting resourcesTerraform state management - Question #35Understand Terraform Cloud and Enterprise Capabilities
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
Terraform CloudVCS IntegrationSpeculative PlansRun Triggers - Question #36Understand Terraform Providers
A Terraform provider is NOT responsible for:
Terraform ProvidersProvider ResponsibilitiesTerraform Core ArchitectureAPI Abstraction - Question #37Understand Terraform Providers
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Terraform ProvidersProvider ConfigurationAlias Meta-argument - Question #38Manage Terraform State
Terraform variable names are saved in the state file.
Terraform stateState file contentsVariables - Question #39Use Terraform CLI
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the res...
terraform destroyTerraform CLIResource lifecycleConfirmation prompt - Question #40Understand Infrastructure as Code (IaC) Concepts
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? (Choose two.)
Traditional ProvisioningManual ProcessesScalability IssuesIaC Motivation - Question #41Manage Terraform State
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resourc...
Terraform State ManagementResource DestructionTerraform Apply CommandConfiguration Reconciliation - Question #42Use Terraform CLI
You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working...
Terraform planTerraform applyState driftExecution plan - Question #43Use Terraform CLI
Which parameters does terraform import require? (Choose two.)
terraform importCLI commandsState managementResource identification - Question #44Manage Terraform State
What does state looking accomplish?
State lockingTerraform stateConcurrency controlRemote state - Question #45Understand Terraform Providers
What does this code do?
Provider versioningVersion constraintsOptimistic constraint operatorTerraform providers - Question #46Use Terraform CLI
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
terraform fmtCLI commandscode formattingconfiguration files - Question #47Work with Terraform Modules
The public Terraform Module Registry is free to use.
Terraform ModulesModule RegistryPublic RegistryFree Services - Question #48Work with Terraform Modules
How do you specify a module's version when publishing it to the public terraform Module Registry?
Terraform Module RegistryModule VersioningGit TagsModule Publishing - Question #49Understand Terraform Cloud and Enterprise Capabilities
Which method for sharing Terraform configurations fulfills the following criteria: 1. Keeps the configurations confidential within your organization 2. Support Terraform's semantic...
Terraform CloudPrivate RegistryModule SharingModule Versioning - Question #50Understand Infrastructure as Code (IaC) Concepts
Which are examples of infrastructure as code? (Choose two.)
Infrastructure as Code (IaC)Configuration ManagementVersion Control