04 November 2020

#Terraform

Terraform
What is Terraform init?
What is Terraform provider?
What is terraform init command?
What is terraform validate command?
What is terraform plan command?
What is terraform apply command?
What is terraform destroy command?
What is State File Locking?
What is a Remote Backend in Terraform?
What is a Tainted Resource?
What is Terraform D?
What is Expression Evaluation in terraform?
What is Vertex Evaluation in terraform?
What is Graph Walk in terraform?
What is Graph Builder in terraform?
What is State Manager in terraform?
What is Configuration Loader in terraform?
What is CLI (Command Line interface) in terraform?
What is Backend in terraform?
What is Resource Graph in Terraform.
What is Terragrunt, and what are its uses?
What is Terraform Core? Tell us some primary responsibilities of it.
What is the difference between Terraform and CloudFormation?
What is terraform state?
What is the use of terraform apply command?
What is the use of fmt command in Terraform?
What are the reasons for choosing Terraform for DevOps?
What are the ways to lock Terraform module versions?
What are the version controls supported by Terraform besides GitHub?
What are modules in Terraform?
What are some of the built-in provisioners available in Terraform?
What are the components of Terraform architecture?
What are some of the latest Terraform Azure Provider factors?
How do you use count terraform?
How to check the installed version of Terraform?
How to prevent Error Duplicate Resource
How to lock Terraform module versions?
How to ignore duplicate resource error during terraform apply?
Can I add policies to the open-source or pro version of Terraform enterprise?
Can I use Terraform for on-premises infrastructure?
Can Terraform be used for on-prem infrastructure?
Can you shortly explain the best practices for cloning an infrastructure with Terraform?
Define Modules in Terraform?
Define null resource in Terraform?
Does Terraform support multi-provider deployments?
Explain the uses of Terraform CLI and list some basic CLI commands?
How callbacks on Azure are utilised with the help of terraform?
How does Terraform work?
How does Terraform help in discovering plugins?
How is duplicate resource error ignored during terraform apply?
How will you upgrade plugins on Terraform?
How will you make an object of one module available for the other module at a high level?
How will you control and handle rollbacks when something goes wrong?
How would you recover from a failed apply in Terraform?
In which programming language Terraform is written?
Is Terraform usable for an on-prem infrastructure?
Is there a way to bulk import the state of current cloud subscription into Terraform state?
Name some major competitors of Terraform?
Name some major features of Terraform?
Share a few Terraform CLI Commands which you use only your day to day routine?
What do you mean by Terraform?
What do you mean by Terraform cloud?
What do you mean by Terragrunt, list some of its use cases?
What do you understand by Terraform in AWS?
What do you understand by terraform backend?
What does Terraform -version command do?
What does Terraform destroys command do?
What does Terraform fmt command do?
What does Terraform providers command do?
What if I encounter a serious error and want to rollback?
What is IAC?
What is Sub-graphs
What steps should be followed for making an object of one module to be available for the other module at a high level?
Which command destroys Terraform managed infrastructure?
Which command is used to destroy Terraform-managed infrastructure?
Why is Terraform used for DevOps?
What benefits infrastructure-as-code has?
What is HCL?
What is Provider?
What is Resource?
What is Provisioner?
What terraform.tfstate file is used for?
What is local-exec and remote-exec in the context of provisioners?
What is a "tainted resource"?
What terraform taint does?
What types of variables are supported in Terraform?
What is a data source? In what scenarios for example would need to use it?
What are output variables and what terraform output does?
What is the Terraform Registry?
What is the "Random" provider? What is it used for
Explain what Terraform is and how does it works
Explain what is "Terraform configuration"
Explain how implicit and explicit dependencies work in Terraform
Explain Modules
Explain remote-exec and local-exec
Explain "Remote State". When would you use it and how?
Explain "State Locking"
Why Terraform and not other technologies? (e.g. Ansible, Puppet, CloufFormation)
Why we are using terraform init?
Why we are using terraform plan?
Why we are using terraform validate?
Why we are using terraform apply?
How do you rename an existing resource?
How to write down a variable which changes by an external source or during terraform apply?
How do you test a terraform module?
Aside from .tfvars files or CLI arguments, how can you inject dependencies from other modules?
Give an example of several Terraform best practices
True or False? Terraform follows the mutable infrastructure paradigm
True or False? Terraform uses declarative style to describe the expected end state
  • An open source provisioning declarative tool that based on Infrastructure as a Code paradigm
  • designed on immutable infrastructure principles
  • Written in Golang and uses own syntax – HCL (Hashicorp Configuration Language), but also supports JSON
  • Helps to evolve the infrastructure, safely and predictably
  • Applies Graph Theory to IaaC and provides Automation, Versioning and Reusability
  • It is a multipurpose composition tool:
    • Composes multiple tiers (SaaS/PaaS/IaaS)
    • A plugin-based architecture model
  • It is not a cloud agnostic tool. It embraces all major Cloud Providers and provides common language to orchestrate the infrastructure resources
  • It is not a configuration management tool and other tools like chef, ansible exists in the market.
  • It is a tool for building, changing, and versioning infrastructure safely and efficiently. 
  • It uses its own domain-specific language called the Hashicorp Configuration Language (HCL): a fully JSON-compatible language for describing infrastructure as code.
  • It focuses on the higher-level abstraction of the data center and associated services, without sacrificing the ability to use configuration management tools to do what they do best. 
  • It can be used to orchestrate an AWS and OpenStack cluster simultaneously, while enabling 3rd-party providers like Cloudflare and DNSimple to be integrated to provide CDN and DNS services. 
  • This enables Terraform to represent and manage the entire infrastructure with its supporting services, instead of only the subset that exists within a single provider.
  • I have initiated terraform for AWS (Previously using cloudformation). The AWS provider offers a flexible means of providing credentials for authentication. The following methods are supported:
    • Static Credentials
    • Environment Variables
    • Shared Credentials File
    • EC2 Role

No comments:

Post a Comment

Most views on this month