• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

Terraform Associate Exam Study Guide 2023

Document preview thumbnail
Preview 2 out of 9 pages

init - "terraform ________" is the first command you should enter to initialize your Terraform environment and download any necessary configuration/provider files. plan - "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 - "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 - "terraform ______" is the command you should run to tear down your terraform managed resource(s). resource=aws_instance , block=myec2 - 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 - 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 - 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 - "terraform ______" fetches the latest configuration state of your resources (checks your current managed state vs real world infrastructure) T - T/F: terraform plan always makes terraform check for mismatches with current vs. desired state show - "terraform ________" gives you information from your state file on your current configuration. T - 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) - T/F: Outputted attributes CANNOT be used as inputs to other resources being created via terraform. variables, -vars - You can use a ________.tf file to reference vars. Alternatively, you can use the ______ command line flag to override variables. default, prompted - 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 - 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 file (including any defaults). type - the ______ arg in a variable block will restrict the type of value that will be accepted as the value for the variable. count - The _______ parameter on resources can simplify configurations and allow you to scale resources by increasing a number (rather than defining the resources multiple times) count object - In the resource blocks where count is set, an additional ______ _______ is available in expressions so you can modify the configuration of each instance. index - The count object has one attribute: the count._______ -- the distinct index number (starting with 0) corresponding to this instance. true_value, false_value - Fill in the blanks to complete the bool expression: condition ? ____________ : __________ local - ________ values assigns a name to an expression, allowing it to be used multiple times within a module without repeating it. repeating, moderation - Local values can be helpful to avoid _______ the same values/expressions multiple times in a configuration. If overused, they can actually make a configuration harder to read and therefore should be used in ________. functions - The terraform language includes a number of built-in __________ that you can use to transform and combine values.


Document information

Uploaded on
August 7, 2023
Number of pages
9
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Bestzone
3.9
(28)
Sold
189
Followers
111
Items
4974
Last sold
3 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.