TA-002-P Exam Questions
446 real TA-002-P exam questions with expert-verified answers and explanations. Page 7 of 9.
- Question #303Implement and maintain state
True or False? Each Terraform workspace uses its own state file to manage the infrastructure associated with that particular workspace.
Terraform workspacesTerraform stateState filesInfrastructure management - Question #304Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
True or False? By default, Terraform destroy will prompt for confirmation before proceeding.
terraform destroyCLI commandsdefault behaviorconfirmation - Question #305Understand Terraform basics
Select the most accurate statement to describe the Terraform language from the following list.
Terraform definitionDeclarative languageIaC conceptsImmutable infrastructure - Question #306Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
A user creates three workspaces from the command line -prod, dev, and test. Which of the following commands will the user run to switch to the dev workspace?
Terraform workspacesCLI commandsterraform workspace select - Question #307Understand Terraform basics
Select all Operating Systems that Terraform is available for. (select five)
Terraform installationSupported operating systemsCLI compatibility - Question #308Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which of the following commands will launch the Interactive console for Terraform interpolations?
Terraform CLIInteractive Console - Question #309Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
During a terraform plan, a resource is successfully created but eventually fails during provisioning. What happens to the resource?
Tainted resourcesResource provisioningError handlingTerraform CLI - Question #310Read, generate, and modify configuration
Which of the following is not a valid Terraform string function?
Terraform functionsString functionsHCL - Question #311Understand Terraform basics
Which of the following statements best describes the Terraform list(...) type?
Terraform typesList typeData typesHCL - Question #312Implement and maintain state
True or False? When using the Terraform provider for Vault, the tight integration between these HashiCorp tools provides the ability to mask secrets in the terraform plan and state...
Terraform state securitySecrets managementTerraform plan securityVault integration - Question #313Read, generate, and modify configuration
Why might a user opt to include the following snippet in their configuration file?
Terraform versionsHCL syntaxConfiguration compatibilityTerraform 0.12 - Question #314Interact with Terraform modules
Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list...
Terraform ModulesModule RegistryPublishing ModulesSemantic Versioning - Question #315Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
A user runs terraform init on their RHEL based server and per the output, two provider plugins are downloaded: $ terraform init Initializing the backend... Initializing provider pl...
terraform initprovider pluginslocal file storageTerraform project structure - Question #316Read, generate, and modify configuration
Which of the following is an invalid variable name?
Terraform variablesReserved keywordsConfiguration syntax - Question #317Understand Terraform basics
In the following code snippet, the block type is identified by which string?
HCL syntaxBlock typesConfiguration structureResource block - Question #318Read, generate, and modify configuration
Which statements best describes what the local variable assignment is doing in the following code snippet:
localsfor expressionsdata structuresunique values - Question #319Read, generate, and modify configuration
What is the result of the following terraform function call?
Terraform functionsString functionsExpression evaluation - Question #320Read, generate, and modify configuration
In terraform, most resource dependencies are handled automatically. Which of the following statements describes best how terraform resource dependencies are handled?
Resource dependenciesDependency resolutionImplicit dependenciesTerraform configuration - Question #321Understand Terraform basics
From the code below, identify the implicit dependency:
Implicit dependenciesResource dependenciesTerraform graphResource ordering - Question #322Use Terraform Cloud and Terraform Enterprise capabilities
Terraform Cloud is more powerful when you integrate it with your version control system (VCS) provider. Select all the supported VCS providers from the answers below. (select four)
Terraform CloudVCS integrationSupported providersVersion control - Question #323Use Terraform Cloud and Terraform Enterprise capabilities
Terraform Enterprise (also referred to as pTFE) requires what type of backend database for a clustered deployment?
Terraform EnterpriseClustered DeploymentBackend DatabasePostgreSQL - Question #324Understand Terraform basics
When Terraform needs to be installed in a location where it does not have internet access to download the installer and upgrades, the installation is generally known as to be _____...
Terraform installationOffline environmentsNon-traditional installation - Question #325Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
When using providers that require the retrieval of data, such as the HashiCorp Vault provider, in what phase does Terraform actually retrieve the data required?
Terraform CLIProvidersterraform initProvider initialization - Question #327Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Where can Terraform not load a provider from?
Provider loadingTerraform initPluginsProvider installation - Question #328Read, generate, and modify configuration
Which argument(s) are required when declaring a Terraform variable?
Terraform variablesHCL syntaxRequired arguments - Question #329Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
terraform apply will fail if you have not run terraform plan first to update the plan output.
terraform applyterraform planTerraform CLIworkflow - Question #330Read, generate, and modify configuration
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in...
Dynamic blocksNested blocksVariablesConfiguration language - Question #331Understand infrastructure as code (IaC) concepts
Which of the following is not a benefit of adopting infrastructure as code?
IaC benefitsInfrastructure as CodeIaC concepts - Question #332Interact with Terraform modules
Which of the following statements about local modules is incorrect:
Local ModulesTerraform ModulesModule SourcingModule Versioning - Question #333Implement and maintain state
When you use a remote backend that needs authentication. HashrCorp recommends that you:
Remote BackendAuthenticationSecurity Best PracticesPartial Configuration - Question #334Implement and maintain state
What is a key benefit of the Terraform state file?
Terraform StateState FileDesired State - Question #335Read, generate, and modify configuration
When using multiple configurations of the same Terraform provider, what meta-argument must be included in any non-default provider configurations?
Terraform providersProvider configurationProvider aliasesMeta-arguments - Question #336Use Terraform Cloud and Terraform 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 #337Implement and maintain state
You have been working in a Cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that is listening on port 80. Afte...
Terraform stateState driftterraform applyInfrastructure reconciliation - Question #338Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which parameters does terraform import require? Choose two correct answers.
terraform importCLI parametersresource addressresource ID - Question #339Understand the purpose of Terraform (vs. other IaC)
If a DevOps team adopts AWS Cloud Formation as their standardized method for provisioning public cloud resources, which of the following scenarios poses a challenge for this team?
IaC toolsCloudFormationMulti-cloudIaC limitations - Question #340Read, generate, and modify configuration
As a member of the operations team, you need to run a script on a virtual machine created by Terraform. Which provisioned is best to use in your Terraform code?
Terraform provisionersremote-execVM automationScript execution - Question #341Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
The Terraform CLI will print output values from a child module after running terraform apply.
terraform applymodule outputsCLI output - Question #342Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
While attempting to deploy resources into your cloud provider using Terraform. you begin to see some odd behavior and experience sluggish responses. In order to troubleshoot you de...
Terraform CLIDebuggingLoggingEnvironment Variables - Question #343Implement and maintain state
What does terraform refresh modify?
terraform refreshstate filestate managementTerraform CLI - Question #344Implement and maintain state
You have to initialize a Terraform backend before it can be configured.
Terraform backendInitializationterraform initState management - Question #345Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which task does teraform init not perform?
terraform initCLI commandsprovidersmodules - Question #346Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Terraform plan updates your state file.
terraform planstate fileCLI commandsterraform workflow - Question #347Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
A terraform apply can not___________infrastructure.
terraform applyterraform importTerraform CLIinfrastructure management - Question #348Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Terra form installs its providers during which phase?
terraform initprovidersplugin installationTerraform workflow - Question #349Implement and maintain state
Terraform variable names are saved in the state file.
Terraform state fileState file contentsInput variables - Question #350Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Running terraform fmt without any flags in a directory with Terraform configuration files will check the formatting of those files without changing their contents.
terraform fmtCLI commandsCode formattingDefault behavior - Question #351Interact with Terraform modules
Open source Terraform can only import publicly-accessible and open-source modules.
Terraform modulesModule sourcesPrivate modulesOpen Source Terraform - Question #352Use Terraform Cloud and Terraform Enterprise capabilities
When does Sentinel enforce policy logic during a Terraform Enterprise run?
SentinelTerraform EnterprisePolicy enforcementRun lifecycle - Question #353Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
terraform validate validate validates that your infrastructure matches the Terraform state file.
terraform validateCLI commandsConfiguration validationState file