EMT Practice Test

1. Question Content...


Question List

Question1: What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.

Question2: When does Sentinel enforce policy logic during a Terraform Cloud run?

Question3: Terraform configuration (including any module references) can contain only one Terraform provider type.

Question4: You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?

Question5: Which of the following is not a benefit of adopting infrastructure as code?

Question6: Which task does terraform init not perform?

Question7: Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.

Question8: How would you output returned values from a child module in the Terraform CLI output?

Question9: Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

Question10: Why would you use the -replace flag for terraform apply?

Question11: The Terraform binary version and provider versions must match each other in a single configuration.

Question12: _______backends support state locking.

Question13: You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource "main'.
Which of these is the correct way to define the output value?

Question14: In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.

Question15: Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files.
How can you protect that data?

Question16: Which command lets you experiment with terraform expressions?

Question17: What is the Terraform style convention for indenting a nesting level compared to the one above it?

Question18: You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?

Question19: You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?

Question20: What information does the public Terraform Module Registry automatically expose about published modules?

Question21: You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.

Question22: You must use different Terraform commands depending on the cloud provider you use.

Question23: You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?

Question24: How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

Question25: One remote backend configuration always maps to a single remote workspace.

Question26: Which backend does the Terraform CU use by default?

Question27: terraform validate confirms that your infrastructure matches the Terraform state file.

Question28: When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?

Question29: You can develop a custom provider to manage its resources using Terraform.

Question30: Which of these statements about Terraform Cloud workspaces is false?

Question31: You can reference a resource created with for_each using a Splat ( *) expression.

Question32: What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Question33: As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?

Question34: Only the user that generated a plan may apply it.

Question35: When do changes invoked by terraform apply take effect?

Question36: Which command add existing resources into Terraform state?

Question37: terraform validate reports syntax check errors for which of the following?

Question38: You much initialize your working directory before running terraform validate.

Question39: Which of these ate features of Terraform Cloud? Choose two correct answers.

Question40: In Terraform HCL, an object type of object({name=string, age-number}) would match this value.

Question41: A terraform apply can not _________ infrastructure.

Question42: How does Terraform determine dependencies between resources?

Question43: If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?

Question44: What does this code do?

Question45: Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

Question46: Which of the following statements about Terraform modules is not true?

Question47: Select the command that doesn't cause Terraform to refresh its state.

Question48: What type of block is used to construct a collection of nested configuration blocks?

Question49: Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:

Question50: A Terraform provider is NOT responsible for:

Question51: What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?

Question52: Variables declared within a module are accessible outside of the module.

Question53: Which of the following should you put into the required_providers block?

Question54: What feature stops multiple users from operating on the Terraform state at the same time?

Question55: It is best practice to store secret data in the same version control repository as your Terraform configuration.

Question56: How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?

Question57: What does the default "local" Terraform backend store?

Question58: Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Git::https://example.com/vpc.git)?

Question59: Which of the following is not a valid siring function in Terraform?

Question60: Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.

Question61: terraform plan updates your state file.

Question62: Any user can publish modules to the public Terraform Module Registry.

Question63: You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.

Question64: Which Terraform collection type should you use to store key/value pairs?

Question65: You have to initialize a Terraform backend before it can be configured.

Question66: Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

Question67: Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.

Question68: What is the workflow for deploying new infrastructure with Terraform?

Question69: You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully.
What should you do to delete the newly-created VM with Terraform?

Question70: Which of these is true about Terraform's plugin-based architecture?

Question71: Which of these commands makes your code more human readable?