Timedora
Free Practice Quiz Question List

6 Infrastructure as Code for Networks Online Quiz Questions

Use this free practice quiz with 20 questions to review 6 Infrastructure as Code for Networks, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: Infrastructure as code prohibits all changes to network infrastructure made through consoles or other tools.

  1. A

    True

  2. B

    False

02
True or false
1 point

True or false: If a network configuration is syntactically valid, it is necessarily safe to apply.

  1. A

    True

  2. B

    False

03
Written response
1 point

What term describes a difference between declared network configuration and the infrastructure actually in place?

04
Choose one
1 point

In an infrastructure-as-code workflow, what is the role of a provider?

  1. A

    It stores a record linking each configuration address to a remote object identity.

  2. B

    It translates configuration into API operations.

  3. C

    It guarantees that every proposed network change is harmless.

  4. D

    It replaces the need to review changes in version control.

05
Fill in the blank
1 point

In Terraform, the record that links configuration addresses to remote object identities is called .

06
Choose one
1 point

A team has generated a Terraform plan for a network change. What does the plan do by default?

  1. A

    It applies proposed changes and updates state immediately.

  2. B

    It previews proposed actions without itself making those changes.

  3. C

    It guarantees that every proposed action will preserve connectivity.

  4. D

    It removes the need to compare configuration with recorded state.

07
Fill in the blank
1 point

A reusable network module groups related resources behind .

08
Written response
1 point

In the example Terraform configuration, what is the address of the VPC resource?

09
Open ended
1 point

A team must migrate workloads from an old subnet to a new one. Describe a safe sequence for the migration and explain why the old subnet should not be retired first.

10
True or false
1 point

True or false: Using a lifecycle control to create a replacement before destroying an old network resource eliminates the need to review the plan or plan a migration.

  1. A

    True

  2. B

    False

11
Choose one
1 point

A virtual network was created outside Terraform, and the team now wants Terraform to manage it. Which approach aligns with the recommended state practices?

  1. A

    Delete the existing object and create a replacement through configuration.

  2. B

    Edit the state file directly to add the object.

  3. C

    Import the existing object carefully and maintain the expected one-to-one mapping.

  4. D

    Remove the configuration and rely on the provider to discover the object automatically.

12
Choose one
1 point

A team wants repeatable network deployments and reviewable changes. Which approach best follows infrastructure-as-code practice?

  1. A

    Describe the desired network in configuration and let the tool determine the needed operations.

  2. B

    Make each network change manually in a console, then record it in notes.

  3. C

    Write a script that always recreates every network resource from scratch.

  4. D

    Use configuration only to document the network after it has been created.

13
Written response
1 point

What control should a team use with a shared backend to help prevent conflicting operations on Terraform state?

14
Choose one
1 point

A team needs a shared way to manage Terraform state while reducing conflicting operations and protecting sensitive values. Which practice is most appropriate?

  1. A

    Store the state file in the shared source-code repository so everyone can edit it.

  2. B

    Give every team member a separate local state file and merge them after deployments.

  3. C

    Use a suitable shared backend with access controls and locking, and keep state files out of version control.

  4. D

    Edit the state file directly whenever a remote resource changes.

15
Choose one
1 point

A team wants to package a standard virtual network and its subnets so other teams can reuse the pattern by providing inputs and receiving outputs. What should it create?

  1. A

    A report that records every API call made during a deployment.

  2. B

    A reusable group of related resources exposed through inputs and outputs.

  3. C

    A state file that maps resource addresses to remote identities.

  4. D

    A plan that previews proposed resource changes.

16
Written response
1 point

In a subnet resource, vpc_id = aws_vpc.core.id refers to the VPC's identifier. What concise term describes the relationship this reference establishes between the resources?

17
Choose one
1 point

A provider indicates that a network resource's changed attribute cannot be updated in place. What may the plan propose?

  1. A

    The plan may propose destroying and recreating the resource.

  2. B

    The tool must always change the attribute in place.

  3. C

    The tool will automatically remove the resource from state and leave it unmanaged.

  4. D

    The configuration becomes invalid because managed resources cannot be replaced.

18
Choose one
1 point

An existing network object should remain in place, but the team no longer wants Terraform to manage it. Which approach best matches that intention?

  1. A

    Delete the remote object manually and leave its configuration unchanged.

  2. B

    Remove its state entry by directly editing the state file.

  3. C

    Use the documented state-removal or resource-migration process to stop managing the object without deleting it.

  4. D

    Keep applying the configuration until the resource is recreated.

19
Choose all
1 point

A virtual network uses the address range 10.20.0.0/16. Which subnet ranges are entirely contained within it? Select all that apply.

  1. A

    10.20.1.0/24

  2. B

    10.20.255.0/24

  3. C

    10.21.0.0/24

  4. D

    10.19.8.0/24

20
Choose all
1 point

A team wants to reproduce the same network setup in two lab environments and trace which configuration change led to a difference. Which practices directly support these goals? Select all that apply.

  1. A

    Keep configuration in version control so changes can be reviewed and traced.

  2. B

    Reuse the same reviewed configuration to help produce consistent environments.

  3. C

    Rely on each operator to remember and re-enter the configuration.

  4. D

    Make configuration changes without recording them, since the provider tracks every decision.