TERRAFORM-ASSOCIATE-003 Exam Questions
247 real TERRAFORM-ASSOCIATE-003 exam questions with expert-verified answers and explanations. Page 1 of 5.
- Question #1Tools for Test Analysts
What does Terraform not reference when running a terraform apply -refresh-only ?
Terraformrefresh-onlystate fileconfiguration files - Question #2Tools for Test Analysts
Which of the following is not a valid Terraform variable type?
Terraformvariable typesdata types - Question #3Tools for Test Analysts
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...
Terraformremote backendS3state migration - Question #4Tools for Test Analysts
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...
Terraformremote backendstate fileGit - Question #5Tools for Test Analysts
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...
Terraformterraform stateresource inspectionoutputs - Question #6Tools for Test Analysts
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Terraformterraform initpluginsupgrade - Question #7Tools for Test Analysts
What information does the public Terraform Module Registry automatically expose about published modules?
Terraformmodule registryinput variablesoutputs - Question #8Tools for Test Analysts
You must use different Terraform commands depending on the cloud provider you use.
Terraformcloud providerscross-platformprovider-agnostic - Question #9Tools for Test Analysts
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...
Infrastructure as CodeGitOpspull request workflowIaC best practices - Question #10Tools for Test Analysts
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Terraformterraform validatesyntax validationworkflow - Question #11Tools for Test Analysts
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
Terraformsplat expressionAWS instanceebs_block_device - Question #12Tools for Test Analysts
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
Terraformterraform fmtcode formattingrecursive modules - Question #13Tools for Test Analysts
What kind of configuration block will create an infrastructure object with settings specified within the block?
Terraformresource blockconfiguration blocksinfrastructure provisioning - Question #14Tools for Test Analysts
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Terraformstyle conventionindentationHCL formatting - Question #15Tools for Test Analysts
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...
Terraformstate file scopeterraform destroyVM management - Question #16Tools for Test Analysts
When do changes invoked by terraform apply take effect?
Terraformterraform applyresource providerprovisioning lifecycle - Question #17Tools for Test Analysts
What is the workflow for deploying new infrastructure with Terraform?
Terraformdeployment workflowinit plan applyworking directory - Question #18Tools for Test Analysts
You can develop a custom provider to manage its resources using Terraform.
Terraformcustom providerprovider developmentextensibility - Question #19Read, generate, and modify configuration
What is one disadvantage of using dynamic blocks in Terraform?
dynamic blocksHCL syntaxconfiguration readabilitynested blocks - Question #20Implement and maintain state
Which backend does the Terraform CU use by default?
local backendterraform backendterraform CLIdefault backend - Question #21Navigate the core Terraform workflow
How does Terraform manage most dependencies between resources?
resource dependenciesdependency graphimplicit dependenciesresource graph - Question #22Read, generate, and modify configuration
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.
splat expressionfor expressionlist comprehensioncomplex types - Question #23Implement and maintain state
It is best practice to store secret data in the same version control repository as your Terraform configuration.
secret managementsecurity best practicesversion controlsensitive data - Question #24Implement and maintain state
_______backends support state locking.
state lockingremote backendstate managementbackend types - Question #25Read, generate, and modify configuration
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...
object typeinput variablescomplex typesvariable types - Question #26Interact with Terraform modules
Which of the following statements about Terraform modules is not true?
modulesmodule sourcesmodule reusemodule access - Question #27Implement and maintain state
When you use a remote backend that needs authentication, HashiCorp recommends that you:
partial configurationremote backendauthenticationcredentials management - Question #28Read, generate, and modify configuration
You can reference a resource created with for_each using a Splat ( *) expression.
for_eachsplat expressionresource addressingmeta-arguments - Question #29Understand Terraform Cloud and Enterprise capabilities
Only the user that generated a plan may apply it.
terraform planterraform applyTerraform Cloudcollaboration - Question #30Use the Terraform CLI (outside of core workflow)
You cannot install third party plugins using terraform init.
terraform initprovider pluginsthird-party providersplugin installation - Question #31Understand Terraform Cloud and Enterprise capabilities
Which of these ate features of Terraform Cloud? Choose two correct answers.
Terraform Cloudremote state storageweb UIcloud features - Question #32Use the Terraform CLI (outside of core workflow)
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
TF_LOGdebuggingloggingenvironment variables - 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 backendsremote operations - Question #34Implement and maintain state
Which command add existing resources into Terraform state?
terraform importstate managementexisting resourcesimport command - 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 Cloudspeculative plansVCS integrationautomated runs - Question #36Understand Terraform basics
A Terraform provider is NOT responsible for:
terraform providerprovider responsibilitiesAPI interactionsresource lifecycle - Question #37Read, generate, and modify configuration
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
provider aliasmultiple providersmeta-argumentsprovider configuration - Question #38Implement and maintain state
Terraform variable names are saved in the state file.
state filevariable storageterraform statesensitive values - Question #39Use the core Terraform workflow
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 destroyCLI workflowresource 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.)
IaC benefitsticket-based systemsscalabilityprovisioning bottlenecks - Question #41Use the core Terraform workflow
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 applyresource removaldesired statestate reconciliation - Question #42Use the core Terraform workflow
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 planstate refreshconcurrent changesinfrastructure drift - Question #43Use the Terraform CLI (outside of core workflow)
Which parameters does terraform import require? (Choose two.)
terraform importresource addressresource IDCLI commands - Question #44Implement and maintain state
What does state looking accomplish?
state lockingconcurrent accessstate managementremote backends - Question #45Understand Terraform basics
What does this code do?
version constraintsprovider versioningpessimistic constraint operatorsemantic versioning - Question #46Use the Terraform CLI (outside of core workflow)
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
terraform fmtcode formattingCLI behavioridempotency - Question #47Interact with Terraform modules
The public Terraform Module Registry is free to use.
Terraform Registrypublic modulespricingmodule sources - Question #48Interact with Terraform modules
How do you specify a module's version when publishing it to the public terraform Module Registry?
module versioningTerraform Registrygit tagssemantic versioning - Question #49Understand Terraform Cloud 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 Cloud private registrymodule sharingaccess controlversioning - Question #50Understand Infrastructure as Code (IaC) concepts
Which are examples of infrastructure as code? (Choose two.)
IaC examplesversion controlconfiguration filesDocker