TERRAFORM-ASSOCIATE-003 Exam Questions
247 real TERRAFORM-ASSOCIATE-003 exam questions with expert-verified answers and explanations. Page 3 of 5.
- Question #104Interact with Terraform modules
Module version is required to reference a module on the Terraform Module Registry.
module registrymodule versioningmodule sources - Question #106Use the core Terraform workflow
terraform validate confirms that your infrastructure matches the Terraform state file.
terraform validateconfiguration validationCLI commandsstate file - Question #107Use the core Terraform workflow
Which command must you first run before performing further Terraform operations in a working directory?
terraform initCLI commandsworking directory - Question #108Implement and maintain state
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform mana...
terraform state listterraform state showstate inspectionresource management - Question #109Understand Terraform Cloud capabilities
When does Sentinel enforce policy logic during a Terraform Cloud run?
Sentinelpolicy enforcementTerraform Cloudrun phases - Question #110Implement and maintain state
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage...
terraform importexisting resourcesstate managementconfiguration writing - Question #111Use the core Terraform workflow
A terraform apply can not _________ infrastructure.
terraform applyterraform importCLI commandscore workflow - Question #112Implement and maintain state
How is terraform import run?
terraform importCLI commandsstate management - Question #113Understand Terraform basics
A provider configuration block is required in every Terraform configuration. Example:
provider configurationprovider blockHCL syntax - Question #114Use the core Terraform workflow
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability. How can you format Terraform H...
terraform fmtHCL formattingcode styleCI/CD - Question #115Implement and maintain state
One remote backend configuration always maps to a single remote workspace.
remote backendTerraform Cloudworkspacesstate backend - Question #116Use the core Terraform workflow
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
terraform applystate fileinfrastructure provisioningexecution plan - Question #117Implement and maintain state
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a n...
Terraform workspacesmultiple environmentsstate isolationstate backend - Question #118Implement and maintain state
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
terraform state showCLI commandsstate inspectionresource attributes - Question #119Implement and maintain state
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
state driftterraform refreshmanual changesstate management - Question #120Read, generate, and modify configuration
Which option cannot be used to keep secrets out of Terraform configuration files?
secrets managementsensitive dataenvironment variablesvariable inputs - Question #121Understand Infrastructure as Code (IaC) concepts
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
infrastructure as codeIaC benefitsversion controloperator error - Question #122Understand Terraform Basics
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
provider local namesrequired_providersprovider configuration - Question #123Understand Terraform Basics
Terraform providers are always installed from the Internet.
provider installationprivate registrylocal mirrorplugin cache - Question #124Implement and Maintain State
What feature stops multiple users from operating on the Terraform state at the same time?
state lockingconcurrent operationsstate management - Question #125Read, Generate, and Modify Configuration
Which of the following is not a valid siring function in Terraform?
built-in functionsstring functionsHCL syntax - Question #126Implement and Maintain State
What does the default "local" Terraform backend store?
local backendstate filebackend types - Question #127Understand Terraform Cloud Capabilities
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
Terraform CloudVCS integrationworkspace runsCI/CD triggers - Question #128Use the Terraform CLI (outside of core workflow)
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
sensitive variablesCI/CD pipeline-var flagsecrets injection - Question #129Interact with Terraform Modules
If a module declares a variable with a default, that variable must also be defined within the module.
module variablesdefault valuesvariable declaration - Question #130Implement and Maintain State
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
state driftout-of-band changesstate fileAzure - Question #131Understand Terraform Basics
Which of the following should you put into the required_providers block?
required_providersversion constraintsprovider syntax - Question #132Understand Infrastructure as Code (IaC) Concepts
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
Infrastructure as CodeIaC conceptsautomationdeclarative configuration - Question #133Implement and Maintain State
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
state lockinglocked operationsterraform destroyterraform apply - Question #134Implement and Maintain State
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
secrets managementenvironment variablesbackend securitysensitive credentials - Question #135Understand Terraform Cloud Capabilities
Which of these statements about Terraform Cloud workspaces is false?
Terraform Cloudworkspacesrole-based accessCLI workspace switching - Question #136Implement and Maintain State
When should you use the force-unlock command?
force-unlockstate lockinglock management - Question #137Navigate Terraform Workflow
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
terraform importexisting infrastructureconfiguration writingimport workflow - Question #138Interact with Terraform Modules
Variables declared within a module are accessible outside of the module.
module variablesvariable scopemodule encapsulation - Question #139Implement and Maintain State
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
encrypted backendstate securitysensitive datasecrets management - Question #140Understand Terraform Basics
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
dependency lock fileversion constraintsterraform init.terraform.lock.hcl - Question #141Implement and Maintain State
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
backend migrationterraform initstate migrationbackend configuration - Question #142Understand Terraform basics
What does Terraform use the .terraform.lock.hc1 file for?
lock fileprovider dependenciesversion pinningdependency locking - Question #143Implement and maintain state
Why does this backend configuration not follow best practices?
backend configurationcredentials securitybest practicessensitive data - Question #144Interact with Terraform modules
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
modulesvariable inheritanceinput variablesmodule configuration - Question #145Understand Terraform Cloud capabilities
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.
Sentinelpolicy-as-codeTerraform Cloudcompliance enforcement - Question #146Understand Terraform basics
Which of these is true about Terraform's plugin-based architecture?
plugin architectureproviderscustom providerTerraform core - Question #147Understand Terraform basics
The Terraform binary version and provider versions must match each other in a single configuration.
provider versioningTerraform binaryversion compatibilityversion constraints - Question #148Understand Terraform basics
Which of the following is not true of Terraform providers?
providersprovider authorshipHashiCorpcommunity providers - Question #149Understand Infrastructure as Code (IaC) concepts
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
IaC benefitsinfrastructure as codeversion controloperator error - Question #150Understand Terraform Cloud capabilities
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
Sentinelpolicy-as-codeTerraform Cloudcompliance enforcement - Question #151Interact with Terraform modules
Which of the following is not a valid source path for specifying a module?
module sourcesmodule registrylocal modulessource syntax - Question #152Implement and maintain state
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
remote backendbackend migrationstate backendbest practices - Question #153Read, generate, and modify configuration
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
data sourcesdata blockconfiguration blocksread-only resources - Question #154Implement and maintain state
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
state lockingconcurrent runsstate backendremote state