A. Imports resources from one Terraform state file to another.
B. Imports existing resources into Terraform's state file.
C. Imports a new Terraform module into Terraform's state file.
D. Imports all infrastructure from the configured cloud provider.
E. Imports provider configuration from one state file to another.
Explanation:
Detailed
Rationale for Correct Answer (B):
terraform import allows Terraform to associate existing resources (created outside of Terraform or by another tool) with a Terraform configuration by writing them into the state file. After import, Terraform can manage those resources.
Analysis of Incorrect Options:
A. From one state file to another: Incorrect, import does not transfer between state files.
C. Importing a module: Incorrect, modules are defined in configuration, not imported.
D. Import all infrastructure: Incorrect, import is per-resource, not bulk.
E. Provider configuration transfer: Incorrect, provider configs are in .tf files, not imported with this command.
Key Concept:
The terraform import command bridges existing resources with Terraform state management.
Reference: Terraform Exam Objective C Implement and Maintain State.