TA-002-P Exam Questions
446 real TA-002-P exam questions with expert-verified answers and explanations. Page 6 of 9.
- Question #253Interact with Terraform modules
Which one is the right way to import a local module names consul?
Terraform ModulesLocal ModulesModule SourceRelative Paths - Question #254Interact with Terraform modules
Your team uses terraform OSS . You have created a number of resuable modules for important , independent network components that you want to share with your team to enhance consist...
Terraform ModulesModule SharingTerraform OSSTerraform Registry - Question #255Understand the purpose of Terraform (vs. other IaC)
Using multi-cloud and provider-agnostic tools provides which of the following benefits?
Multi-cloud benefitsProvider-agnostic toolsIaC advantagesUnified tooling - Question #256Understand Terraform basics
A variable az has the following default value. What will be the datatype of the variable? az=["us- west-1a","us-east-1a"]
Terraform variablesHCL data typesList typeConfiguration syntax - Question #257Use Terraform Cloud and Terraform Enterprise capabilities
Your team lead does not trust the junior terraform engineers who now have access to the git repo . So , he wants you to have some sort of a checking layer , whereby , you can ensur...
Policy as CodeSentinelTerraform EnterpriseCompliance - Question #258Read, generate, and modify configuration
Which of the following connection types are supported by the remote-exec provisioner? (select two)
remote-exec provisionerconnection typessshWinRM - Question #259Use Terraform Cloud and Terraform Enterprise capabilities
Select all features which are exclusive to Terraform Enterprise. (Select Three)
Terraform EnterpriseTerraform Cloud featuresProduct differentiationEnterprise capabilities - Question #260Implement and maintain state
Valarie has created a database instance in AWS and for ease of use is outputting the value of the database password with the following code. Valarie wants to hide the output value...
Terraform outputsSensitive dataState file securityCLI output - Question #261Understand Terraform basics
Select the feature below that best completes the sentence: The following list represents the different types of __________ available in Terraform. 1. max 2. min 3. join 4. replace...
Terraform functionsHCLBuilt-in functions - Question #262Implement and maintain state
Named workspaces are not a suitable isolation mechanism for strong separation between staging and production?
Terraform WorkspacesEnvironment IsolationState ManagementBest Practices - Question #263Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Talal is a DevOps engineer and he has deployed the production infrastructure using Terraform. He is using a very large configuration file to maintain and update the actual infrastr...
terraform planperformance optimizationconfiguration modularityCLI flags - Question #264Read, generate, and modify configuration
Your team has started using terraform OSS in a big way , and now wants to deploy multi region deployments (DR) in aws using the same terraform files . You want to deploy the same i...
Provider configurationProvider aliasesMulti-region deployment - Question #265Understand Terraform basics
Which of the following is considered a Terraform plugin?
Terraform ProvidersTerraform ArchitecturePlugins - Question #266Read, generate, and modify configuration
Multiple provider instances blocks for AWS can be part of a single configuration file?
ProvidersConfigurationProvider AliasesMulti-region/account - Question #267Interact with Terraform modules
In the example below, where is the value of the DNS record's IP address originating from? 1. resource "aws_route53_record" "www" 2. { 3. zone_id = aws_route53_zone.primary.zone_id...
Terraform modulesModule outputsResource configurationData referencing - Question #268Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
What does the command terraform fmt do?
terraform fmtCLIcode formattingconfiguration files - Question #269Implement and maintain state
Which feature of Terraform allows multiple state files for a single configuration file depending upon the environment?
Terraform WorkspacesState ManagementEnvironmentsInfrastructure as Code - Question #270Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Terraform will sync all resources in state by default for every plan and apply, hence for larger infrastructures this can slow down terraform plan and terraform apply commands?
Terraform stateterraform plan/applyperformanceresource synchronization - Question #271Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Your company has a lot of workloads in AWS , and Azure that were respectively created using CloudFormation , and AzureRM Templates. However , now your CIO has decided to use Terraf...
terraform importexisting infrastructureCLI commandsstate management - Question #272Read, generate, and modify configuration
In order to make a Terraform configuration file dynamic and/or reusable, static values should be converted to use what?
Input variablesConfiguration reusabilityDynamic configurations - Question #273Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Which Terraform command will check and report errors within modules, attribute names, and value types to make sure they are syntactically valid and internally consistent?
Terraform CLIValidationConfiguration syntaxError checking - Question #274Read, generate, and modify configuration
When using constraint expressions to signify a version of a provider, which of the following are valid provider versions that satisfy the expression found in the following code sni...
Provider versioningVersion constraintsOptimistic operatorConfiguration syntax - Question #275Understand Terraform basics
resource "aws_s3_bucket" "example" { bucket = "my-test-s3-terraform-bucket" ...} resource "aws_iam_role" "test_role" { name = "test_role" ...} Due to the way that the application c...
Terraform dependenciesExplicit dependenciesdepends_onResource ordering - Question #276Implement and maintain state
Which of the below backends support state locking?
Terraform backendsState lockingRemote state - Question #277Read, generate, and modify configuration
Which of the following value will be accepted for my_var? 1. variable "my_var" 2. { 3. type = string 4. }
Terraform variablesVariable typesString typeType coercion - Question #278Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Select two answers to complete the following sentence: Before a new provider can be used, it must be ______ and _______.
Terraform providersProvider declarationterraform initProvider workflow - Question #279Read, generate, and modify configuration
Given the Terraform configuration below, in which order will the resources be created?
Terraform Dependency GraphResource Creation OrderImplicit DependenciesAWS EC2 - Question #280Implement and maintain state
By default, where does Terraform store its state file?
Terraform statestate filedefault behaviorlocal state - Question #281Implement and maintain state
What are some of the features of Terraform state? (select three)
Terraform stateResource mappingInfrastructure managementEfficiency - Question #282Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
When configuring a remote backend in Terraform, it might be a good idea to purposely omit some of the required arguments to ensure secrets and other important data aren't inadverte...
Terraform Backendterraform initCLI ConfigurationSecrets Management - Question #283Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
What Terraform command can be used to inspect the current state file?
terraform showstate fileCLI commandinspect state - Question #284Use Terraform Cloud and Terraform Enterprise capabilities
Select the answer below that completes the following statement: Terraform Cloud can be managed from the CLI but requires __________?
Terraform CloudCLI authenticationAPI token - Question #285Read, generate, and modify configuration
What Terraform feature is shown in the example below?
dynamic blockresource configurationblock iterationHCL - Question #286Use Terraform Cloud and Terraform Enterprise capabilities
HashiCorp offers multiple versions of Terraform, including Terraform open-source, Terraform Cloud, and Terraform Enterprise. Which of the following Terraform features are only avai...
Terraform Enterprise featuresTerraform Cloud tiersSAML SSOAudit logging - Question #287Understand infrastructure as code (IaC) concepts
What are the benefits of using Infrastructure as Code? (select five)
IaC benefitsAutomationRepeatabilityDisaster recovery - Question #288Understand infrastructure as code (IaC) concepts
What are some of the problems of how infrastructure was traditionally managed before Infrastructure as Code? (select three)
Traditional Infrastructure ManagementIaC ProblemsManual ProcessesAutomation Benefits - Question #289Understand Terraform basics
What is the best and easiest way for Terraform to read and write secrets from HashiCorp Vault?
Terraform ProvidersHashiCorp VaultSecrets ManagementIntegration - Question #290Use Terraform Cloud and Terraform Enterprise capabilities
True or False: Workspaces provide identical functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.
WorkspacesTerraform CloudTerraform EnterpriseFeature comparison - Question #291Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
True or False? terraform init cannot automatically download Community providers.
terraform initproviderscommunity providersprovider installation - Question #292Implement and maintain state
Which of the following terraform subcommands could be used to remove the lock on the state for the current configuration?
terraform CLIstate managementstate lockingforce-unlock - Question #293Interact with Terraform modules
A user has created a module called "my_test_module" and committed it to GitHub. Over time, several commits have been made with updates to the module, each tagged in GitHub with an...
Terraform modulesModule sourceGit modulesModule versioning - Question #294Read, generate, and modify configuration
In the example below, the depends_on argument creates what type of dependency?
explicit dependenciesdepends_on argumentresource dependencies - Question #295Read, generate, and modify configuration
What is the result of the following terraform function call?
Terraform FunctionsHCLExpressionsBoolean Logic - Question #296Read, generate, and modify configuration
While Terraform is generally written using the HashiCorp Configuration Language (HCL), what other syntax can Terraform are expressed in?
Terraform syntaxConfiguration languageHCLJSON - Question #297Use Terraform Cloud and Terraform Enterprise capabilities
Select the operating systems which are supported for a clustered Terraform Enterprise: (select four)
Terraform EnterpriseClusteringSupported OSDeployment - Question #298Understand Terraform basics
In order to reduce the time it takes to provision resources, Terraform uses parallelism. By default, how many resources will Terraform provision concurrently?
Terraform parallelismDefault concurrencyResource provisioningPerformance tuning - Question #299Understand Terraform basics
Provider dependencies are created in several different ways. Select the valid provider dependencies from the following list: (select three)
Provider dependenciesTerraform configurationTerraform stateProviders - Question #300Implement and maintain state
Complete the following sentence: The terraform state command can be used to ____
terraform statestate managementCLI commandsstate modification - Question #301Read, generate, and modify configuration
The following is a snippet from a Terraform configuration file: Which, when validated, results in the following error: Fill in the blank in the error message with the correct strin...
Provider configurationAliasesTerraform errorsConfiguration syntax - Question #302Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
True or False. The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. If drift is detected betw...
terraform refreshTerraform CLIstate managementinfrastructure drift