TA-002-P Exam Questions
446 real TA-002-P exam questions with expert-verified answers and explanations. Page 3 of 9.
- Question #101Interact with Terraform modules
If a module declares a variable with a default, that variable must also be defined within the module.
Terraform variablesModule variablesDefault valuesVariable definition - Question #102Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project , and download all plugins from the internet repository , regardle...
terraform initplugin managementCLI behaviorcaching - Question #103Understand Terraform basics
The Terraform language does not support user-defined functions, and so only the functions built in to the language are available for use.
Terraform functionsHCL limitationslanguage featuresuser-defined functions - Question #104Read, generate, and modify configuration
Which of the below configuration file formats are supported by Terraform? (Select TWO)
Terraform configurationHCLJSONSupported file formats - Question #105Use Terraform Cloud and Terraform Enterprise capabilities
Please identify the offerings which are unique to Terraform Enterprise, and not available in either Terraform OSS, or Terraform Cloud. Select four.
Terraform EnterpriseTerraform CloudFeature comparisonDeployment models - Question #106Implement and maintain state
terraform refresh command will not modify infrastructure, but does modify the state file.
terraform refreshstate fileinfrastructure as codeCLI - Question #107Understand Terraform basics
Which of the following clouds does not have a provider maintained HashiCorp?
Terraform ProvidersProvider MaintenanceCloud ProvidersHashiCorp Ecosystem - Question #108Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
You have declared a variable name my_var in terraform configuration without a value associated with it. variable my_var {} After running terraform plan it will show an error as var...
Terraform variablesVariable declarationterraform plan behaviorConfiguration syntax - Question #109Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Environment variables can be used to set variables. The environment variables must be in the format "____"_<variablename>. Select the correct prefix string from the following list.
Terraform variablesEnvironment variablesCLI configurationVariable precedence - Question #110Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
The terraform init command is always safe to run multiple times, to bring the working directory up to date with changes in the configuration. Though subsequent runs may give errors...
terraform initCLI commandssafe operationsconfiguration updates - Question #111Read, generate, and modify configuration
ABC Enterprise has recently tied up with multiple small organizations for exchanging database information. Due to this, the firewall rules are increasing and are more than 100 rule...
Dynamic BlocksConfiguration ManagementRepetitive ConfigurationNested Blocks - Question #112Understand Terraform basics
True or False: A list(...) contain a number of values of the same type while an object(...) can contain a number of values of different types.
Data TypesHCLListsObjects - Question #113Implement and maintain state
You do not need to specify every required argument in the backend configuration. Omitting certain arguments may be desirable to avoid storing secrets, such as access keys, within t...
Terraform backendPartial configurationSecrets managementState management - Question #114Read, generate, and modify configuration
lookup retrieves the value of a single element from which of the below data type?
Terraform functionslookup functionTerraform data typesmap data type - Question #115Implement and maintain state
Terraform must track metadata such as resource dependencies. Where is this data stored?
Terraform stateState fileResource dependenciesMetadata tracking - Question #116Use Terraform Cloud and Terraform Enterprise capabilities
Which of the below are paid features of Terraform Cloud?
Terraform CloudPaid FeaturesSentinel policiesCost Estimation - Question #117Read, generate, and modify configuration
Provisioners should only be used as a last resort.
ProvisionersBest PracticesResource Configuration - Question #118Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?
Terraform CLIterraform taintResource lifecycleForce recreation - Question #119Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
What allows you to conveniently switch between multiple instances of a single configuration within its single backend?
WorkspacesTerraform CLIState managementMultiple environments - Question #120Implement and maintain state
terraform refresh will update the state file?
terraform refreshstate filestate managementTerraform CLI - Question #121Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
What does terrafom plan do ?
terraform planexecution planTerraform CLIstate file - Question #122Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.
Terraform CLILoggingEnvironment variables - Question #123Implement and maintain state
Workspaces in Terraform provides similar functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.
Terraform WorkspacesState ManagementTerraform CloudTerraform CLI - Question #124Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
The current implementation of Terraform import can only import resources into the state. It does not generate configuration.
terraform importTerraform stateConfiguration generation - Question #125Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Terraform has detailed logs which can be enabled by setting the _________ environmental variable.
loggingenvironment variablesTerraform CLItroubleshooting - Question #126Understand Terraform basics
Which of the following best describes a Terraform provider?
Terraform providerCore conceptsAPI integration - Question #127Read, generate, and modify configuration
Which one of the following will run echo 0 and echo 1 on a newly created host?
provisionersremote-execlocal-execconfiguration - Question #128Use Terraform Cloud and Terraform Enterprise capabilities
How can you ensure that the engineering team who has access to git repo will not create any non-compliant resources that might lead to a security audit failure in future. your team...
Terraform EnterpriseSentinelPolicy as CodeSecurity Compliance - Question #129Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
If you enable TF_LOG = DEBUG, the log will be stored in syslog.log file in the currect directory.
TF_LOGLoggingDebuggingCLI - Question #130Implement and maintain state
When using remote state, state is only ever held in memory when used by Terraform.
Remote StateState ManagementTerraform StateMemory Usage - Question #131Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which one of the following command will rewrite Terraform configuration files to a canonical format and style.
Terraform CLIterraform fmtConfiguration formattingCanonical style - Question #132Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
You have created a custom variable definition file testing.tfvars. How will you use it for provisioning infrastructure?
Terraform CLIVariablesterraform applytfvars files - Question #133Understand Terraform basics
You want to get involved in the development of Terraform. As this is an open source project, you would like to contribute a fix for an open issue of Terraform. What programming lan...
Terraform developmentOpen source contributionGo programming languageTerraform architecture - Question #134Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Terraform import command can import resources into modules as well directly into the root of your state.
Terraform importState managementModulesCLI commands - Question #135Understand Terraform basics
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?
Terraform variablesData typesObjectsTuples - Question #136Implement and maintain state
Which of the following best describes the default local backend?
Terraform stateLocal backendState lockingFilesystem storage - Question #137Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.
Terraform CLIProvidersVersion ConstraintsCommand Reference - Question #138Use Terraform Cloud and Terraform Enterprise capabilities
Which of the following represents a feature of Terraform Cloud that is NOT free to customers?
Terraform Cloud featuresPricing tiersRole-Based Access ControlTeam Management - Question #139Read, generate, and modify configuration
What is the purpose of using the local-exec provisioner? (Select Two)
local-exec provisionerprovisionersTerraform configurationcommand execution - Question #140Implement and maintain state
terraform state subcommands such as list are read-only commands, do read-only commands create state backup files?
terraform stateread-only commandsstate backupCLI behavior - Question #141Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
You want to use terraform import to start managing infrastructure that was not originally provisioned through infrastructure as code. Before you can import the resource's current s...
terraform importconfiguration filesresource declarationmanaging existing infrastructure - Question #142Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which of the below terraform commands do not run terraform refresh implicitly before taking actual action of the command?
Terraform CLIImplicit refreshterraform initterraform import - Question #143Understand Terraform basics
You want to use different AMI images for different regions and for the purpose you have defined following code block. 1. variable "images" 2. { 3. type = "map" 4. 5. default = { 6....
Terraform variablesMap data typeHCL syntaxVariable access - Question #144Understand Terraform basics
By default, a defined provisioner is a creation-time provisioner.
ProvisionersResource LifecycleTerraform Defaults - Question #145Implement and maintain state
What is the default backend for Terraform?
Terraform backendsState managementDefault configurationLocal backend - Question #146Use Terraform Cloud and Terraform Enterprise capabilities
You want terraform plan and apply to be executed in Terraform Cloud's run environment but the output is to be streamed locally. Which one of the below you will choose?
Terraform CloudRemote BackendsCLI IntegrationRemote Operations - Question #147Understand Terraform basics
Which of the following Terraform files should be ignored by Git when committing code to a repo? (select Three)
Git ignoreTerraform stateTerraform variablesBest practices - Question #148Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
What is the command you can use to set an environment variable named "var1"of type String?
Environment variablesTerraform variablesCLI usage - Question #149Use Terraform Cloud and Terraform Enterprise capabilities
What feature of Terraform Cloud and/or Terraform Enterprise can you publish and maintain a set of custom modules which can be used within your organization?
Terraform CloudTerraform EnterprisePrivate Module RegistryModules - Question #150Understand Terraform basics
Terraform works well in Windows but a Windows server is required.
Terraform compatibilityOperating systemsWindowsSystem requirements