200-301 exam dumps

200-301 practice question 501 of 506

Cisco Certified Network Associate. Free level, Cisco. Free question with the correct answer and a full explanation.

200-301 Question 501

Single answer

You are tasked with deploying a web server infrastructure in a multi-cloud environment using Terraform. During the deployment, you want to ensure that the same infrastructure can be provisioned on both AWS and Azure without duplicating your configuration code. Which Terraform feature enables this functionality?

  1. A

    Terraform Modules

  2. B

    Terraform Workspaces

  3. C

    Terraform Providers

  4. D

    Terraform State Files

Show answer and explanation

Correct answer: A

Explanation

Terraform Modules allow you to write reusable infrastructure code that can be parameterized and used across multiple environments or cloud providers. By defining your infrastructure as a module, you can easily deploy it on AWS and Azure without duplicating code, making them the ideal choice for this scenario.

  • A. Correct.

    Terraform Modules are reusable, self-contained configurations that can be called multiple times with different parameters. They enable reusability and abstraction, which is ideal for deploying the same infrastructure on multiple platforms.

  • B. Incorrect.

    Terraform Workspaces are used to manage different instances of state files, typically for environments like dev, test, and prod. They do not directly help in reusing configuration across multiple clouds.

  • C. Incorrect.

    Terraform Providers are plugins for interacting with APIs of cloud platforms like AWS or Azure. While necessary for multi-cloud deployments, they do not directly enable reusability of configuration.

  • D. Incorrect.

    Terraform State Files store information about the deployed infrastructure. They are critical for tracking resources but do not aid in reusing configuration across clouds.

Timed practice exam

Take a 200-301 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam