init "terraform ______" is the command you should run to view resources that will be generated from your vario us .tf files. It will also run a validation check on your code to ensure proper syntax. CORRRECT -plan "terraform ______" is the command you should run that will result in a confirmation prompt. This will actually spin up the resources defined in your .tf files. CORRRECT -
apply "terraform ______" is the command you should run to tear down your terraform managed resource(s). CORRRECT -destroy In the below code snippet, identify which is the resource and which is the block identifiers (i.e. res ource=_______ , block=_______) resource "aws_instance" "myec2" { ... } CORRRECT -resource=aws_instance , block=myec2 Terraform stores the current state of the infrastructure that is being created from .tf files in the ________ file This allows terra form to map real world resources to your current configuration. CORRRECT -.tfstate T/F: If your desired state differs from your current state (i.e. manual changes occurred outside of terraform), then using "terraform apply" will reset your configurati on settings (revert any manual changes) CORRRECT -T "terraform ______" fetches the latest configuration state of your resources (checks your current managed state vs real world infrastructure) CORRRECT -refresh T/F: terraform plan always makes te rraform check for mismatches with current vs. desired state CORRRECT -T "terraform ________" gives you information from your state file on your current configuration. CORRRECT -show T/F: If your desired state does not define/mention a property of your resources that is later modified (manually), terraform will NOT track any drift from those manual changes. CORRRECT -T T/F: Outputted attributes CANNOT be used as inputs to other re sources being created via terraform. CORRRECT -F (outputted resources can be used as inputs for other resources definitions -- make sure you specify attributes in your outputs or it will list the entire list of attributes as an output) You can use a _ _______.tf file to reference vars. Alternatively, you can use the ______ command line flag to override variables. CORRRECT -variables, -vars If no override value(s) are defined in the command line for variables, the _______ variable value(s) are used. If no default value is supplied for your variables, you will be ___________ by terraform to specify value(s). CORRRECT -default, prompted You can specify a file called "terraform.__________" to define variable assignments. The values assigned to vari ables in this file will _______________ the var values defined in the variables.tf file (including any defaults). CORRRECT -tfvars, override the ______ arg in a variable block will restrict the type of value that will be accepted as the value for the variable. CORRRECT -type The _______ parameter on resources can simplify configurations and allow you to scale resources by increasing a number (rather than defining the resources multiple times) CORRRECT -count In the resource blocks where count is set, an additional ______ _______ is available in expressions so you can modify the configuration of each instance. CORRRECT -
count object The count object has one attribute: the count._______ -- the distinct index number (starting with 0) corresp onding to this instance. CORRRECT -index Fill in the blanks to complete the bool expression: condition ? ____________ : __________ CORRRECT -true_value, false_value ________ values assigns a name to an expression, allowing it to be used multiple times within a module without repeating it. CORRRECT -local