Terraform Interview Questions:
====================================
1).what is the difference between terraform import and terraform move into terraform into our env
Effect on Terraform state
* terraform import
* Adds an existing resource to the Terraform state.
* Does not create or modify the actual infrastructure.
* terraform mv
* Moves or renames an existing resource within the Terraform state only.
* No impact on real infrastructure.
==================
terraform import aws_instance.my_ec2 i-1234567890abcdef
=====================
terraform mv aws_instance.old_name aws_instance.new_name
=======================
2).write a block for ec2 using the Terraform?
3).which terraform version we have to used into terraform >
1.5 and 1.6 version we have to used into it …
4).can you explain me the terraform import usage into terraform >
What is Terraform import?
* terraform import is used to bring existing infrastructure into Terraform state
* The resource already exists in the cloud and was not created by Terraform
6).what is the biggest issue which u have faced while u are in organisations into it?
7).where do you store the state file and managers the state file into terraform >
8).what is the use of modules into terraform into it?
module "vpc" {
source = "./modules/vpc"
cidr_block = "10.0.0.0/16"
}
===========
variable "vpc_cidr" {
description = "CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
==========
output "vpc_id" {
description = "The ID of the VPC"
value = aws_vpc.this.id
}
output "public_subnet_id" {
description = "The ID of the public subnet"
value = aws_subnet.public.id
}
9).How we can restore the terraform state file in our enviornment ?
10).what is the terraform taint command into terraform ?
Terraform taint – Explained
1️⃣ What is terraform taint?
* terraform taint marks a resource as “tainted” in the Terraform state
* Terraform will destroy and recreate this resource on the next terraform apply
* Useful when a resource is broken, misconfigured, or corrupted, but you don’t want to touch the rest of the infrastructure
===========
terraform taint
===============
11).How to destroy the any particular service with terraform >
To destroy a particular Terraform-managed resource, use terraform destroy -target=which safely deletes only that resource and updates the state.”
Linux Interview Questions: ==================== 1).Have you done any kind of automations into linux os ? 2).How much rate on yourself into linux os ? 3).How to extend the volume group into linux os ? 4).how to check the logical volume and hoe to check t check volume group into linux os ? 5).u know the booting sequences into linux os ? 6).so what we do into the grub into linux os ? 7).have you used find command into linux os ? 8).differnece between find and grep command into linux os ? 9).have to find the files which is modified by 7 days ago .so how to u are going to end used into find command into linux os ? 10).if you want to find all these logs fils and compressed Ito linux os ? 111)..which you find the how much file size is it ? 12).can u find a file which auger then 100mb? 13)How to list out the open files which is finished into the PID into linux os ? 14).what are all the things I have to done into linux os ? 1======= How to good at database side into linux os ? Have you logg...
Comments
Post a Comment