Test
Terraform Associate
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (30)
1Terraform is currently being used by your organisation to create resources on AWS for the development of a web application. One of your coworkers wants to change the instance type to "t2.large" while keeping the default set values. What adjustments does the teammate make in order to meet his goal?
- AIssue Terraform plan instance.type”.t2.large” and it deploys the
instance - BModify the tf.variables with the instance type and issue terraform
apply - CCreate a new file my.tfvars and add the type of the instance and
issue terraform plan and apply - DModify the terraform.tfvars with the instance type and issue
terraform plan and then terraform apply to deploy the instances
- AIssue Terraform plan instance.type”.t2.large” and it deploys the
2You are part of a security team that has noticed current terraform code outputs the password of the database after you issue the terraform apply command. You have been asked to ensure the safety of the passwords. How would you achieve it?
- AEncrypt the plain text values to show output as random values
- BPassword is encrypted in database
- CUse sensitive Parameter
- DUse terraform plan -var-file= “password=no” to hide output values
3One of your colleagues is new to Terraform and wants to add a new workspace named new-hire. What command he should execute from the following?
- Aterraform workspace –new –new-hire
- Bterraform workspace new new-hire
- Cterraform workspace init new-hire
- Dterraform workspace new-hire
4You're preparing to install Terraform on client workstations and want to see which operating systems are supported. Which of the following operating systems is supported? Please select the appropriate option.
- AWindows
- BAmazon Linux
- CFreeBSD
- DSolaris
- EMacOS
- FAll of the above
5John is a newbie to Terraform and wants to enable detailed logging to find all the details Which environment variable does he need to set?
- ATF_help
- BTF_LOG
- CTF_Debug
- DTF_var_log
6You have made changes to your tfvar files and would like to know the contents of the state file. What command can be used for the given requirement?
- Aterraform state
- Bterraform current
- Cterraform show
- Dterraform inspect
7Your firm employs a version control system (for example, git) and has requested that you commit all terraform code to it. During the commit, you must be cautious with sensitive information. Which of
the following files should be left out of the commit?- Amain.tf
- Bvariables.tf
- Cprovisioner.tf
- Dterraform.tfstate
8Your company's infrastructure is now hosted on Azure, and you intend to use Terraform for further development and migration of existing resources to Terraform. You've been tasked with planning
and implementing it, as well as ensuring that the old infrastructure is correctly moved.
You attempted to utilise the terraform import command but were
unable to do so. What are the things that must be considered when
importing?- AEnsure the existing resources are in a shutdown state so that during import there are no issues.
- BEnsure the resources of the existing infrastructure are updated in
the configuration file. - CAdd all the resource details to state files
- DRun terraform show and refresh to see updated state files and then terraform import.
9Choose the best option from below to make Terraform code more user configuration-centric.
- AVariables
- BLocal values
- CInput Variable
- DModules
10Which of the following is a meta-argument defined in the configuration files of Terraform?
- Atfvar
- Bdepends_on
- Cinstance_aws
- Dvar1
11Your configuration file has been locked accidentally. What of the following command would you use to unlock?
- Aterraform filename-unlock
- Bdelete the file and create a new state file
- Cterraform force-unlock
- Dstate.tf -unlock
12Where are all the configuration files (backend and plugins) saved when you run the terraform init command?
- Aterraform.tfstate stores all the current configuration
- B.terraform/home directory
- C.terraform/plugins directory
- DConfig.tf where all the init configurations are saved.
13Suppose terraform code is taking up some values which are not defined inside the code files. In which of the following options issue might have occurred?
- AIssue in main.tf file
- BIssue in vars.tf file
- CIssue in terraform.tfvars
- DIssue in Environment Variables
14You want to evaluate an expression in terraform before applying it. How can you perform this evaluation? Select from below.
- AExecute terraform Graph command or see the graph of the
resources. - BExecute terraform validate.
- COn terraform console, validate the expression.
- DPush the code to the repository.
- AExecute terraform Graph command or see the graph of the
15What is the series of steps used to execute terraform code? Choose the (right) option.
- APlan -> Apply
- BWrite -> Apply -> Plan
- CWrite -> Plan -> Apply
- DPlan -> Apply -> Write
16Which option will you use to run provisioners that are not associated with any resources?
- Alocal-exec
- Bnull_resource
- Csalt-masterless
- Dremote-exec
17Which language does terraform support from the below list?
- Axml
- Bjavascript
- CHashicorp Language & JSON
- DPlaintext
18You have the following configuration and have received an error message stating that the 'provider' configuration is duplicated. Which of the following commands will you use to ensure that multiple configurations are permitted?
- AAlias
- BLabel
- CModule
- DResource for each provider
19What is the provider version of Google Cloud being used in Terraform?
- A1.9.1
- B1.0.0
- C1.8.0
- D1.9.2
20Which of the following are supported backend types in Terraform? (Select more than one)
- Aconsul
- Bgcs
- Cmanta
- Dbitbucket
21On executing terraform plan, terraform scans the code and appends any missing argument before terraform apply.
- ATrue
- BFalse
22Do terraform workspaces help in adding/allowing multiple state files for a single configuration?
- ATrue
- BFalse
23Resources in terraform can have same identifiers(Resource type + Block name).
- ATrue
- BFalse
24You have created a virtual machine manually on azure and would like to use terraform import to import it. Does terraform import work in this scenario?
- ATrue
- Bfalse
25Will the password be shown as plain text in logs if you apply a sensitive flag for database password while running terraform plan & apply commands on the console?
- ATrue
- BFalse
26terraform state rm is the only command to delete all the resources configured using Terraform.
- ATrue
- BFalse
27Your team members can make changes to the statefile, once you have exeuted 'terraform plan'. True or False.
- ATrue
- BFalse
28Current state and desired state should be in same state all the time?
- AYes
- BNo
29When using the auto-approve option with terraform destroy, it requests confirmation from user before destroying the resources.
- ATrue
- BFalse
30Whenever you add a new provider, do you always required to issue terraform init before executing terraform plan & apply command?
- ATrue
- BFalse
Información
- Descripción
- Técnico teraform Test sobre Terraform Associate, creado por Marcos Soares el 06/12/2022.
- Autor
- Marcos Soares
- Idioma
- Português
- Visitas
- 0
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test