Question 36

Your manager has instructed you to start using terraform for your day-to-day operations, but your security team is concerned about the terraform state files. They have heard it contains confidential information, and are worried that it will not be securely protected. What should be your response to the security team in this regard?
  • Question 37

    What is the command you can use to set an environment variable named "var1"of type String?
  • Question 38

    From the answers below, select the advantages of using Infrastructure as Code.
  • Question 39

    A fellow developer on your team is asking for some help in refactoring their Terraform code. As part of their
    application's architecture, they are going to tear down an existing deployment managed by Terraform and
    deploy
    new. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep to perform
    some additional analysis.
    What command should be used to tell Terraform to no longer manage the resource?
  • Question 40

    Matt wants to import a manually created EC2 instance into terraform so that he can manage the EC2 instance
    through terraform going forward. He has written the configuration file of the EC2 instance before importing it
    to Terraform. Following is the code:
    resource "aws_instance" "matt_ec2" { ami = "ami-bg2640de" instance_type = "t2.micro"
    vpc_security_group_ids = ["sg-6ae7d613", "sg-53370035"] key_name = "mysecret" subnet_id =
    "subnet-9e3cfbc5" }
    The instance id of that EC2 instance is i-0260835eb7e9bd40 How he can import data of EC2 to state file?