One cloud configuration always maps to a single remote workspace.
- ATrue
- BFalse (correct answer)
Reveal answer & explanationHide answer
The correct answer is B. Option B: False
Page 15 of 19 Β· 368 total questions.
One cloud configuration always maps to a single remote workspace.
The correct answer is B. Option B: False
Multiple team members are collaborating on infrastructure using Terraform and want to format their Terraform code following standard Terraform-style convention. How could they automatically ensure the code satisfies conventions?
The correct answer is D. Option D: Use terraform fmt
Explanation
terraform fmt rewrites Terraform configuration into the canonical style and formatting.
Which backend does the Terraform CLI use by default?
The correct answer is D. Option D: Local
The Terraform CLI will print output values from a child module after running terraform apply.
The correct answer is B. Option B: False
What does terraform refresh-only modify?
The correct answer is D. Option D: Your state file
Explanation
Terraform state maps resource addresses to remote objects and stores metadata needed to calculate changes efficiently.
What does terraform import do?
The correct answer is A. Option A: Imports existing resources into the state file
Explanation
Terraform state maps resource addresses to remote objects and stores metadata needed to calculate changes efficiently.
Which of the following is the correct way to pass the value in the variable num_servers into a module with the input server?
The correct answer is D. Option D: servers = var.num_servers
A developer on your team is going to tear down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?
The correct answer is C. Option C: terraform state rm aws_instance.ubuntu[l]
Explanation
terraform state subcommands inspect and safely modify resource bindings recorded in state.
Before you can use a remote backend, you must first execute terraform init.
The correct answer is A. Option A: True
What does running a terraform plan do?
The correct answer is D. Option D: Compares the state file to your Terraform code and determines if any changes need to be made
Explanation
Terraform state maps resource addresses to remote objects and stores metadata needed to calculate changes efficiently.
Which of the following statements about Terraform modules is not true?
The correct answer is A. Option A: Modules must be publicly accessible
Explanation
A Terraform module packages related resources into a reusable configuration with defined inputs and outputs.
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? (Choose two.)
The correct answer is A, D. Option A: End-users have to request infrastructure changes Option D: The more resources your organization needs, the more tickets your infrastructure team has to process This option scales automatically to match demand.
How do you specify a module's version when publishing it to the public Terraform Module Registry?
The correct answer is D. Option D: Tag a release in the associated repo
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
The correct answer is A. Option A: terraform plan -refresh-only
Explanation
terraform plan compares configuration and state with real infrastructure and previews the proposed changes without applying them.
Which command must you first run before performing further Terraform operations in a working directory?
The correct answer is C. Option C: terraform init
Explanation
terraform init initializes a working directory, installs required providers and modules, and configures the backend.
Which command lets you experiment with Terraform expressions?
The correct answer is A. Option A: terraform console
Explanation
terraform console evaluates Terraform expressions interactively using the current configuration and state.
What kind of configuration block will create an infrastructure object with settings specified within the block?
The correct answer is D. Option D: resource
When do changes invoked by terraform apply take effect?
The correct answer is B. Option B: Once the resource provider has fulfilled the request
Explanation
A provider plugin implements resource types and data sources that communicate with an external API.
What is the workflow for deploying new infrastructure with Terraform?
The correct answer is A. Option A: Write Terraform configuration, run terraform init to initialize the working directory or workspace, and run terraform apply
Explanation
terraform init initializes a working directory, installs required providers and modules, and configures the backend. terraform apply executes the dependency-aware changes required to make infrastructure match the configuration.
Which of these are features of Terraform Cloud? (Choose two.)
The correct answer is A, B. Option A: Remote state storage Option B: A web-based user interface (UI)
Explanation
Remote state stores shared state in a backend so teams and automation can coordinate access.
Showing questions 281β300 of 368 Β· Page 15 of 19