GoConqr has a new look! Let us know what you think.

Quiz

Terraform Associate

Marcos Soares 30 questions

Take the quiz

Questions in this quiz (30)

  1. 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?
    1. AIssue Terraform plan instance.type”.t2.large” and it deploys the
      instance
    2. BModify the tf.variables with the instance type and issue terraform
      apply
    3. CCreate a new file my.tfvars and add the type of the instance and
      issue terraform plan and apply
    4. DModify the terraform.tfvars with the instance type and issue
      terraform plan and then terraform apply to deploy the instances
  2. 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?
    1. AEncrypt the plain text values to show output as random values
    2. BPassword is encrypted in database
    3. CUse sensitive Parameter
    4. DUse terraform plan -var-file= “password=no” to hide output values
  3. 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?
    1. Aterraform workspace –new –new-hire
    2. Bterraform workspace new new-hire
    3. Cterraform workspace init new-hire
    4. Dterraform workspace new-hire
  4. 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.
    1. AWindows
    2. BAmazon Linux
    3. CFreeBSD
    4. DSolaris
    5. EMacOS
    6. FAll of the above
  5. 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?
    1. ATF_help
    2. BTF_LOG
    3. CTF_Debug
    4. DTF_var_log
  6. 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?
    1. Aterraform state
    2. Bterraform current
    3. Cterraform show
    4. Dterraform inspect
  7. 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?
    1. Amain.tf
    2. Bvariables.tf
    3. Cprovisioner.tf
    4. Dterraform.tfstate
  8. 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?
    1. AEnsure the existing resources are in a shutdown state so that during import there are no issues.
    2. BEnsure the resources of the existing infrastructure are updated in
      the configuration file.
    3. CAdd all the resource details to state files
    4. DRun terraform show and refresh to see updated state files and then terraform import.
  9. 9Choose the best option from below to make Terraform code more user configuration-centric.
    1. AVariables
    2. BLocal values
    3. CInput Variable
    4. DModules
  10. 10Which of the following is a meta-argument defined in the configuration files of Terraform?
    1. Atfvar
    2. Bdepends_on
    3. Cinstance_aws
    4. Dvar1

Information

Description
Técnico teraform Quiz on Terraform Associate, created by Marcos Soares on 06/12/2022.
Language
Português
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?