Terraform Associate UPDATED Exam Questions and CORRECT Answers
4 views 0 purchase
Course
Terraform Associate
Institution
Terraform Associate
Terraform Associate UPDATED Exam
Questions and CORRECT Answers
init - CORRECT ANSWER- "terraform ________" is the first command you should enter to
initialize your Terraform environment and download any necessary configuration/provider
files.
plan - CORRECT ANSWER- "terraform ______" is the...
Terraform Associate UPDATED Exam
Questions and CORRECT Answers
init - CORRECT ANSWER- "terraform ________" is the first command you should enter to
initialize your Terraform environment and download any necessary configuration/provider
files.
plan - CORRECT ANSWER- "terraform ______" is the command you should run to view
resources that will be generated from your various .tf files. It will also run a validation check
on your code to ensure proper syntax.
apply - CORRECT ANSWER- "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.
destroy - CORRECT ANSWER- "terraform ______" is the command you should run to tear
down your terraform managed resource(s).
resource=aws_instance , block=myec2 - CORRECT ANSWER- In the below code snippet,
identify which is the resource and which is the block identifiers (i.e. resource=_______ ,
block=_______)
resource "aws_instance" "myec2" {
...
}
.tfstate - CORRECT ANSWER- Terraform stores the current state of the infrastructure that is
being created from .tf files in the ________ file This allows terraform to map real world
resources to your current configuration.
T - CORRECT ANSWER- 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
configuration settings (revert any manual changes)
, refresh - CORRECT ANSWER- "terraform ______" fetches the latest configuration state of
your resources (checks your current managed state vs real world infrastructure)
T - CORRECT ANSWER- T/F: terraform plan always makes terraform check for mismatches
with current vs. desired state
show - CORRECT ANSWER- "terraform ________" gives you information from your state
file on your current configuration.
T - CORRECT ANSWER- 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.
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) -
CORRECT ANSWER- T/F: Outputted attributes CANNOT be used as inputs to other
resources being created via terraform.
variables, -vars - CORRECT ANSWER- You can use a ________.tf file to reference vars.
Alternatively, you can use the ______ command line flag to override variables.
default, prompted - CORRECT ANSWER- 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).
tfvars, override - CORRECT ANSWER- You can specify a file called
"terraform.__________" to define variable assignments. The values assigned to variables in
this file will _______________ the var values defined in the variables.tf file (including any
defaults).
type - CORRECT ANSWER- the ______ arg in a variable block will restrict the type of value
that will be accepted as the value for the variable.
count - CORRECT ANSWER- The _______ parameter on resources can simplify
configurations and allow you to scale resources by increasing a number (rather than defining
the resources multiple times)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.