Cisco CCNA 200-301 Ansible, Terraform and JSON Practice Test

Topic 44 focuses on Ansible, Terraform and JSON for the Cisco Certified Network Associate (CCNA) certification and the 200-301 exam, using Cisco networking and Cisco IOS concepts where relevant. For broader exam preparation, review the Cisco CCNA 200-301 Exam Dumps page. Each question includes a concise explanation of the correct answer and the technical reason the other choices are incorrect.

Question 1

Which automation tool commonly uses agentless remote access and declarative task definitions to configure systems?

  1. JSON
  2. ansible-playbook command
  3. Ansible module
  4. Ansible

Correct Answer: D

 

Correct Answer

Answer D is correct because the selected answer describes an automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

Incorrect Answers

Answer A is incorrect because the “JSON” option describes a different concept: a structured text data format that represents objects with name-value pairs and arrays with ordered values.

Answer B is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer C is incorrect because the “Ansible module” option describes a different concept: a reusable unit of Ansible functionality that performs a specific task against a managed system.

 

Question 2

Which YAML file defines one or more plays and tasks to execute against managed hosts?

  1. Ansible playbook
  2. terraform apply
  3. JSON object
  4. Ansible inventory

Correct Answer: A

 

Correct Answer

Answer A is correct because the selected answer describes a YAML file that defines one or more plays and tasks to execute against managed hosts.

Incorrect Answers

Answer B is incorrect because the “terraform apply” option describes a different concept: the terraform apply command executes an approved Terraform plan to create, change, or remove managed infrastructure.

Answer C is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer D is incorrect because the “Ansible inventory” option describes a different concept: a definition of the hosts and groups that Ansible can target.

 

Question 3

Which definition of the hosts and groups Ansible can target?

  1. Ansible playbook
  2. JSON string
  3. Ansible inventory
  4. terraform init

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes a definition of the hosts and groups that Ansible can target.

Incorrect Answers

Answer A is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer B is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer D is incorrect because the “terraform init” option describes a different concept: the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

 

Question 4

Which reusable unit of Ansible functionality performs a specific task against a managed system?

  1. terraform apply
  2. YAML
  3. Ansible inventory
  4. Ansible module

Correct Answer: D

 

Correct Answer

Answer D is correct because the selected answer describes a reusable unit of Ansible functionality that performs a specific task against a managed system.

Incorrect Answers

Answer A is incorrect because the “terraform apply” option describes a different concept: the terraform apply command executes an approved Terraform plan to create, change, or remove managed infrastructure.

Answer B is incorrect because the “YAML” option describes a different concept: a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Answer C is incorrect because the “Ansible inventory” option describes a different concept: a definition of the hosts and groups that Ansible can target.

 

Question 5

What is a human-readable data-serialization format commonly used for Ansible playbooks and configuration data?

  1. Terraform
  2. Ansible module
  3. Ansible
  4. YAML

Correct Answer: D

 

Correct Answer

Answer D is correct because the selected answer describes a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Incorrect Answers

Answer A is incorrect because the “Terraform” option describes a different concept: an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Answer B is incorrect because the “Ansible module” option describes a different concept: a reusable unit of Ansible functionality that performs a specific task against a managed system.

Answer C is incorrect because the “Ansible” option describes a different concept: an automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

 

Question 6

Which infrastructure-as-code tool uses declarative configuration to create and manage infrastructure through providers?

  1. YAML
  2. Terraform provider
  3. Terraform
  4. Ansible

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Incorrect Answers

Answer A is incorrect because the “YAML” option describes a different concept: a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Answer B is incorrect because the “Terraform provider” option describes a different concept: a plugin that lets Terraform interact with a specific platform, API, or service.

Answer D is incorrect because the “Ansible” option describes a different concept: an automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

 

Question 7

Which plugin lets Terraform interact with a specific platform, API, or service?

  1. terraform init
  2. JSON
  3. Terraform provider
  4. terraform plan

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes a plugin that lets Terraform interact with a specific platform, API, or service.

Incorrect Answers

Answer A is incorrect because the “terraform init” option describes a different concept: the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Answer B is incorrect because the “JSON” option describes a different concept: a structured text data format that represents objects with name-value pairs and arrays with ordered values.

Answer D is incorrect because the “terraform plan” option describes a different concept: the terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.

 

Question 8

Which term describes data Terraform maintains to map declared resources to real infrastructure and track current managed state?

  1. Terraform
  2. terraform apply
  3. JSON
  4. Terraform state

Correct Answer: D

 

Correct Answer

Answer D is correct because it describes data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Incorrect Answers

Answer A is incorrect because the “Terraform” option describes a different concept: an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Answer B is incorrect because the “terraform apply” option describes a different concept: the terraform apply command executes an approved Terraform plan to create, change, or remove managed infrastructure.

Answer C is incorrect because the “JSON” option describes a different concept: a structured text data format that represents objects with name-value pairs and arrays with ordered values.

 

Question 9

Which model in which the desired end state is described and the tool determines actions required to reach state?

  1. Terraform
  2. JSON string
  3. Declarative configuration
  4. JSON Boolean

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes a model in which the desired end state is described and the tool determines actions required to reach that state.

Incorrect Answers

Answer A is incorrect because the “Terraform” option describes a different concept: an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Answer B is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer D is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

 

Question 10

Which structured text data format represents objects with name-value pairs and arrays with ordered values?

  1. JSON object
  2. JSON number
  3. JSON Boolean
  4. JSON

Correct Answer: D

 

Correct Answer

Answer D is correct because the selected answer describes a structured text data format that represents objects with name-value pairs and arrays with ordered values.

Incorrect Answers

Answer A is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer B is incorrect because the “JSON number” option describes a different concept: a JSON number represents a numeric value and is written without quotation marks.

Answer C is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

 

Question 11

A JSON value uses braces to contain name-value pairs. Which JSON structure is represented?

  1. JSON null
  2. JSON object
  3. JSON Boolean
  4. JSON number

Correct Answer: B

 

Correct Answer

Answer B is correct because the selected answer describes a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Incorrect Answers

Answer A is incorrect because the “JSON null” option describes a different concept: JSON null is the literal null and represents an explicitly empty or absent value.

Answer C is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

Answer D is incorrect because the “JSON number” option describes a different concept: a JSON number represents a numeric value and is written without quotation marks.

 

Question 12

A JSON value uses square brackets around an ordered list. Which JSON structure is represented?

  1. JSON
  2. JSON object
  3. JSON Boolean
  4. JSON array

Correct Answer: D

 

Correct Answer

Answer D is correct because the selected answer describes a JSON array is enclosed in square brackets and contains an ordered list of values.

Incorrect Answers

Answer A is incorrect because the “JSON” option describes a different concept: a structured text data format that represents objects with name-value pairs and arrays with ordered values.

Answer B is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer C is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

 

Question 13

A JSON value contains text enclosed in double quotation marks. Which data type does this syntax represent?

  1. JSON null
  2. JSON string
  3. terraform plan
  4. JSON object

Correct Answer: B

 

Correct Answer

Answer B is correct because the selected answer describes a JSON string is text enclosed in double quotation marks.

Incorrect Answers

Answer A is incorrect because the “JSON null” option describes a different concept: JSON null is the literal null and represents an explicitly empty or absent value.

Answer C is incorrect because the “terraform plan” option describes a different concept: the terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.

Answer D is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

 

Question 14

A valid JSON numeric value is written without quotation marks. Which JSON data type is being used?

  1. JSON object
  2. JSON number
  3. JSON null
  4. JSON Boolean

Correct Answer: B

 

Correct Answer

Answer B is correct because the selected answer describes a JSON number represents a numeric value and is written without quotation marks.

Incorrect Answers

Answer A is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer C is incorrect because the “JSON null” option describes a different concept: JSON null is the literal null and represents an explicitly empty or absent value.

Answer D is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

 

Question 15

Which JSON data type uses the lowercase literals true and false?

  1. JSON
  2. JSON array
  3. JSON Boolean
  4. Declarative configuration

Correct Answer: C

 

Correct Answer

Answer C is correct because JSON Boolean values are the lowercase literals true and false.

Incorrect Answers

Answer A is incorrect because the “JSON” option describes a different concept: a structured text data format that represents objects with name-value pairs and arrays with ordered values.

Answer B is incorrect because the “JSON array” option describes a different concept: a JSON array is enclosed in square brackets and contains an ordered list of values.

Answer D is incorrect because the “Declarative configuration” option describes a different concept: a model in which the desired end state is described and the tool determines actions required to reach that state.

 

Question 16

Which JSON literal represents an explicitly empty or absent value?

  1. JSON null
  2. JSON Boolean
  3. JSON object
  4. Ansible inventory

Correct Answer: A

 

Correct Answer

Answer A is correct because JSON null is the literal null and represents an explicitly empty or absent value.

Incorrect Answers

Answer B is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

Answer C is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer D is incorrect because the “Ansible inventory” option describes a different concept: a definition of the hosts and groups that Ansible can target.

 

Question 17

An operator needs to execute an Ansible playbook against selected hosts in the inventory. Which command performs this operation?

  1. ansible-playbook command
  2. Ansible inventory
  3. Ansible module
  4. Ansible playbook

Correct Answer: A

 

Correct Answer

Answer A is correct because the selected answer describes the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Incorrect Answers

Answer B is incorrect because the “Ansible inventory” option describes a different concept: a definition of the hosts and groups that Ansible can target.

Answer C is incorrect because the “Ansible module” option describes a different concept: a reusable unit of Ansible functionality that performs a specific task against a managed system.

Answer D is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

 

Question 18

A new Terraform working directory must be initialized and its required providers and modules retrieved. Which command should run first?

  1. Terraform provider
  2. Ansible playbook
  3. terraform init
  4. Declarative configuration

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Incorrect Answers

Answer A is incorrect because the “Terraform provider” option describes a different concept: a plugin that lets Terraform interact with a specific platform, API, or service.

Answer B is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer D is incorrect because the “Declarative configuration” option describes a different concept: a model in which the desired end state is described and the tool determines actions required to reach that state.

 

Question 19

An engineer wants to preview proposed Terraform infrastructure changes before execution. Which command generates this preview?

  1. Terraform state
  2. terraform plan
  3. terraform init
  4. ansible-playbook command

Correct Answer: B

 

Correct Answer

Answer B is correct because the selected answer describes the terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.

Incorrect Answers

Answer A is incorrect because the “Terraform state” option describes a different concept: Data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Answer C is incorrect because the “terraform init” option describes a different concept: the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Answer D is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

 

Question 20

The proposed Terraform infrastructure changes have been reviewed and must now be executed. Which command creates, changes or removes the managed resources?

  1. Ansible playbook
  2. ansible-playbook command
  3. Terraform provider
  4. terraform apply

Correct Answer: D

 

Correct Answer

Answer D is correct because the selected answer describes the terraform apply command executes an approved Terraform plan to create, change, or remove managed infrastructure.

Incorrect Answers

Answer A is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer B is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer C is incorrect because the “Terraform provider” option describes a different concept: a plugin that lets Terraform interact with a specific platform, API, or service.

 

Question 21

For Ansible, which statement is accurate?

  1. An infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.
  2. An automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.
  3. A JSON string is text enclosed in double quotation marks.
  4. A human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Correct Answer: B

 

Correct Answer

Answer B is correct because the choice accurately describes Ansible: An automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

Incorrect Answers

Answer A is incorrect because the “Terraform” option describes a different concept: an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Answer C is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer D is incorrect because the “YAML” option describes a different concept: a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

 

Question 22

For Ansible playbook, which statement is accurate?

  1. A YAML file that defines one or more plays and tasks to execute against managed hosts.
  2. A JSON string is text enclosed in double quotation marks.
  3. A definition of the hosts and groups that Ansible can target.
  4. An automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

Correct Answer: A

 

Correct Answer

Answer A is correct because the selected answer describes a YAML file that defines one or more plays and tasks to execute against managed hosts.

Incorrect Answers

Answer B is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer C is incorrect because the “Ansible inventory” option describes a different concept: a definition of the hosts and groups that Ansible can target.

Answer D is incorrect because the “Ansible” option describes a different concept: an automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

 

Question 23

For Ansible inventory, which statement is accurate?

  1. A definition of the hosts and groups that Ansible can target.
  2. The terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.
  3. A YAML file that defines one or more plays and tasks to execute against managed hosts.
  4. A human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Correct Answer: A

 

Correct Answer

Answer A is correct because the selected answer describes a definition of the hosts and groups that Ansible can target.

Incorrect Answers

Answer B is incorrect because the “terraform plan” option describes a different concept: the terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.

Answer C is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer D is incorrect because the “YAML” option describes a different concept: a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

 

Question 24

For Ansible module, which statement is accurate?

  1. A reusable unit of Ansible functionality that performs a specific task against a managed system.
  2. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.
  3. A YAML file that defines one or more plays and tasks to execute against managed hosts.
  4. An automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

Correct Answer: A

 

Correct Answer

Answer A is correct because it accurately defines Ansible module. The matching definition is: A reusable unit of Ansible functionality that performs a specific task against a managed system.

Incorrect Answers

Answer B is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer C is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer D is incorrect because the “Ansible” option describes a different concept: an automation tool that commonly uses agentless remote access and declarative task definitions to configure systems.

 

Question 25

For YAML, which statement is accurate?

  1. A YAML file that defines one or more plays and tasks to execute against managed hosts.
  2. A human-readable data-serialization format commonly used for Ansible playbooks and configuration data.
  3. A model in which the desired end state is described and the tool determines actions required to reach that state.
  4. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Correct Answer: B

 

Correct Answer

Answer B is correct because the choice accurately describes YAML: A human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Incorrect Answers

Answer A is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer C is incorrect because the “Declarative configuration” option describes a different concept: a model in which the desired end state is described and the tool determines actions required to reach that state.

Answer D is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

 

Question 26

For Terraform, which statement is accurate?

  1. An infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.
  2. A model in which the desired end state is described and the tool determines actions required to reach that state.
  3. Data Terraform maintains to map declared resources to real infrastructure and track current managed state.
  4. A human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Correct Answer: A

 

Correct Answer

Answer A is correct because the selected answer describes an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Incorrect Answers

Answer B is incorrect because the “Declarative configuration” option describes a different concept: a model in which the desired end state is described and the tool determines actions required to reach that state.

Answer C is incorrect because the “Terraform state” option describes a different concept: Data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Answer D is incorrect because the “YAML” option describes a different concept: a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

 

Question 27

For Terraform provider, which statement is accurate?

  1. Data Terraform maintains to map declared resources to real infrastructure and track current managed state.
  2. A plugin that lets Terraform interact with a specific platform, API, or service.
  3. An infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.
  4. A JSON array is enclosed in square brackets and contains an ordered list of values.

Correct Answer: B

 

Correct Answer

Answer B is correct because the selected answer describes a plugin that lets Terraform interact with a specific platform, API, or service.

Incorrect Answers

Answer A is incorrect because the “Terraform state” option describes a different concept: Data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Answer C is incorrect because the “Terraform” option describes a different concept: an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Answer D is incorrect because the “JSON array” option describes a different concept: a JSON array is enclosed in square brackets and contains an ordered list of values.

 

Question 28

For Terraform state, which statement is accurate?

  1. Data Terraform maintains to map declared resources to real infrastructure and track current managed state.
  2. A plugin that lets Terraform interact with a specific platform, API, or service.
  3. The terraform init command initializes a Terraform working directory and retrieves required providers and modules.
  4. A human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

Correct Answer: A

 

Correct Answer

Answer A is correct because it accurately defines Terraform state. The matching definition is: Data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Incorrect Answers

Answer B is incorrect because the “Terraform provider” option describes a different concept: a plugin that lets Terraform interact with a specific platform, API, or service.

Answer C is incorrect because the “terraform init” option describes a different concept: the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Answer D is incorrect because the “YAML” option describes a different concept: a human-readable data-serialization format commonly used for Ansible playbooks and configuration data.

 

Question 29

For Declarative configuration, which statement is accurate?

  1. Data Terraform maintains to map declared resources to real infrastructure and track current managed state.
  2. The terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.
  3. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.
  4. A model in which the desired end state is described and the tool determines actions required to reach that state.

Correct Answer: D

 

Correct Answer

Answer D is correct because the choice accurately describes Declarative configuration: A model in which the desired end state is described and the tool determines actions required to reach that state.

Incorrect Answers

Answer A is incorrect because the “Terraform state” option describes a different concept: Data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Answer B is incorrect because the “terraform plan” option describes a different concept: the terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.

Answer C is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

 

Question 30

For JSON, which statement is accurate?

  1. JSON null is the literal null and represents an explicitly empty or absent value.
  2. A structured text data format that represents objects with name-value pairs and arrays with ordered values.
  3. A JSON string is text enclosed in double quotation marks.
  4. JSON Boolean values are the lowercase literals true and false.

Correct Answer: B

 

Correct Answer

Answer B is correct because the selected answer describes a structured text data format that represents objects with name-value pairs and arrays with ordered values.

Incorrect Answers

Answer A is incorrect because the “JSON null” option describes a different concept: JSON null is the literal null and represents an explicitly empty or absent value.

Answer C is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer D is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

 

Question 31

For JSON object, which statement is accurate?

  1. JSON Boolean values are the lowercase literals true and false.
  2. A JSON array is enclosed in square brackets and contains an ordered list of values.
  3. A JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.
  4. JSON null is the literal null and represents an explicitly empty or absent value.

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Incorrect Answers

Answer A is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

Answer B is incorrect because the “JSON array” option describes a different concept: a JSON array is enclosed in square brackets and contains an ordered list of values.

Answer D is incorrect because the “JSON null” option describes a different concept: JSON null is the literal null and represents an explicitly empty or absent value.

 

Question 32

For JSON array, which statement is accurate?

  1. A JSON array is enclosed in square brackets and contains an ordered list of values.
  2. A JSON string is text enclosed in double quotation marks.
  3. JSON Boolean values are the lowercase literals true and false.
  4. A YAML file that defines one or more plays and tasks to execute against managed hosts.

Correct Answer: A

 

Correct Answer

Answer A is correct because it accurately defines JSON array. The matching definition is: A JSON array is enclosed in square brackets and contains an ordered list of values.

Incorrect Answers

Answer B is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer C is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

Answer D is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

 

Question 33

For JSON string, which statement is accurate?

  1. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.
  2. JSON null is the literal null and represents an explicitly empty or absent value.
  3. A JSON string is text enclosed in double quotation marks.
  4. A JSON array is enclosed in square brackets and contains an ordered list of values.

Correct Answer: C

 

Correct Answer

Answer C is correct because the choice accurately describes JSON string: A JSON string is text enclosed in double quotation marks.

Incorrect Answers

Answer A is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer B is incorrect because the “JSON null” option describes a different concept: JSON null is the literal null and represents an explicitly empty or absent value.

Answer D is incorrect because the “JSON array” option describes a different concept: a JSON array is enclosed in square brackets and contains an ordered list of values.

 

Question 34

For JSON number, which statement is accurate?

  1. A JSON string is text enclosed in double quotation marks.
  2. JSON Boolean values are the lowercase literals true and false.
  3. A JSON number represents a numeric value and is written without quotation marks.
  4. A JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes a JSON number represents a numeric value and is written without quotation marks.

Incorrect Answers

Answer A is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

Answer B is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

Answer D is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

 

Question 35

For JSON Boolean, which statement is accurate?

  1. A JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.
  2. A JSON array is enclosed in square brackets and contains an ordered list of values.
  3. A JSON string is text enclosed in double quotation marks.
  4. JSON Boolean values are the lowercase literals true and false.

Correct Answer: D

 

Correct Answer

Answer D is correct because JSON Boolean values are the lowercase literals true and false.

Incorrect Answers

Answer A is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer B is incorrect because the “JSON array” option describes a different concept: a JSON array is enclosed in square brackets and contains an ordered list of values.

Answer C is incorrect because the “JSON string” option describes a different concept: a JSON string is text enclosed in double quotation marks.

 

Question 36

For JSON null, which statement is accurate?

  1. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.
  2. JSON null is the literal null and represents an explicitly empty or absent value.
  3. A JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.
  4. JSON Boolean values are the lowercase literals true and false.

Correct Answer: B

 

Correct Answer

Answer B is correct because it accurately defines JSON null. The matching definition is: JSON null is the literal null and represents an explicitly empty or absent value.

Incorrect Answers

Answer A is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer C is incorrect because the “JSON object” option describes a different concept: a JSON object is enclosed in braces and contains unordered name-value pairs separated by commas.

Answer D is incorrect because the “JSON Boolean” option describes a different concept: JSON Boolean values are the lowercase literals true and false.

 

Question 37

For ansible-playbook command, which statement is accurate?

  1. The terraform init command initializes a Terraform working directory and retrieves required providers and modules.
  2. A definition of the hosts and groups that Ansible can target.
  3. A reusable unit of Ansible functionality that performs a specific task against a managed system.
  4. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Correct Answer: D

 

Correct Answer

Answer D is correct because the choice accurately describes ansible-playbook command: The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Incorrect Answers

Answer A is incorrect because the “terraform init” option describes a different concept: the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Answer B is incorrect because the “Ansible inventory” option describes a different concept: a definition of the hosts and groups that Ansible can target.

Answer C is incorrect because the “Ansible module” option describes a different concept: a reusable unit of Ansible functionality that performs a specific task against a managed system.

 

Question 38

For terraform init, which statement is accurate?

  1. The terraform init command initializes a Terraform working directory and retrieves required providers and modules.
  2. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.
  3. Data Terraform maintains to map declared resources to real infrastructure and track current managed state.
  4. An infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

Correct Answer: A

 

Correct Answer

Answer A is correct because the selected answer describes the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Incorrect Answers

Answer B is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer C is incorrect because the “Terraform state” option describes a different concept: Data Terraform maintains to map declared resources to real infrastructure and track current managed state.

Answer D is incorrect because the “Terraform” option describes a different concept: an infrastructure-as-code tool that uses declarative configuration to create and manage infrastructure through providers.

 

Question 39

For terraform plan, which statement is accurate?

  1. A plugin that lets Terraform interact with a specific platform, API, or service.
  2. The ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.
  3. The terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.
  4. A JSON array is enclosed in square brackets and contains an ordered list of values.

Correct Answer: C

 

Correct Answer

Answer C is correct because the selected answer describes the terraform plan command previews the changes Terraform proposes to make to reach the declared desired state.

Incorrect Answers

Answer A is incorrect because the “Terraform provider” option describes a different concept: a plugin that lets Terraform interact with a specific platform, API, or service.

Answer B is incorrect because the “ansible-playbook command” option describes a different concept: the ansible-playbook command is commonly used to execute an Ansible playbook against the inventory and selected hosts.

Answer D is incorrect because the “JSON array” option describes a different concept: a JSON array is enclosed in square brackets and contains an ordered list of values.

 

Question 40

For terraform apply, which statement is accurate?

  1. A YAML file that defines one or more plays and tasks to execute against managed hosts.
  2. The terraform apply command executes an approved Terraform plan to create, change, or remove managed infrastructure.
  3. A plugin that lets Terraform interact with a specific platform, API, or service.
  4. The terraform init command initializes a Terraform working directory and retrieves required providers and modules.

Correct Answer: B

 

Correct Answer

Answer B is correct because it accurately defines terraform apply. The matching definition is: The terraform apply command executes an approved Terraform plan to create, change, or remove managed infrastructure.

Incorrect Answers

Answer A is incorrect because the “Ansible playbook” option describes a different concept: a YAML file that defines one or more plays and tasks to execute against managed hosts.

Answer C is incorrect because the “Terraform provider” option describes a different concept: a plugin that lets Terraform interact with a specific platform, API, or service.

Answer D is incorrect because the “terraform init” option describes a different concept: the terraform init command initializes a Terraform working directory and retrieves required providers and modules.

img