Cisco CCNA 200-301 REST APIs, Configuration Management, and JSON Practice Test 2

 

Topic 22 Practice Test 2 covers REST APIs, Configuration Management, and JSON for Cisco Certified Network Associate 200-301 CCNA and maps to objectives 6.5-6.7. For broader exam preparation, review the Cisco CCNA 200-301 Exam Dumps. Every option includes focused technical reasoning explaining both the networking concept and its fit to the scenario.

Question 1

The evidence from a troubleshooting tool retrieving the current health object shows that the selected mechanism must retrieve an existing resource without asking the API to create or remove it. Which option matches the API or automation evidence? Choose ONE.

  1. GET
  2. POST
  3. DELETE
  4. Content-Type: application/json

Correct Answer: A

Correct Answer

 

 

Answer A is correct because At a troubleshooting tool retrieving the current health object, GET is the best match. It reads an existing API resource. Engineers use it for retrieving current device or policy data. That satisfies the need to read the addressed resource for a troubleshooting tool retrieving the current health object.

Incorrect Answers

 

Answer B is incorrect because At a troubleshooting tool retrieving the current health object, POST addresses another function. It submits data to create a resource, usually for creating a child or collection item. This case at a troubleshooting tool retrieving the current health object needs to read the addressed resource; GET matches it more closely.

Answer C is incorrect because At a troubleshooting tool retrieving the current health object, DELETE addresses another function. It removes the addressed API resource, usually for deleting a known managed object. This case at a troubleshooting tool retrieving the current health object needs to read the addressed resource; GET matches it more closely.

Answer D is incorrect because At a troubleshooting tool retrieving the current health object, Content-Type: application/json addresses another function. It labels the request body as JSON, usually for sending a JSON request payload. This case at a troubleshooting tool retrieving the current health object needs to read the addressed resource; GET matches it more closely.

 

Question 2

An engineer working on a service catalog adding a new network request resource must create or submit a new resource through a collection-style endpoint. Which technology, method, or construct provides that behavior most directly? Choose ONE.

  1. An authorization token in the request
  2. POST
  3. A resource URI
  4. PUT

Correct Answer: B

Correct Answer

 

 

Answer B is correct because At a service catalog adding a new network request resource, POST is the best match. It submits data to create a resource. Engineers use it for creating a child or collection item. That satisfies the need to create or submit new data for a service catalog adding a new network request resource.

Incorrect Answers

 

Answer D is incorrect because At a service catalog adding a new network request resource, PUT addresses another function. It replaces data at a known URI, usually for updating a complete resource representation. This case at a service catalog adding a new network request resource needs to create or submit new data; POST matches it more closely.

Answer A is incorrect because At a service catalog adding a new network request resource, An authorization token in the request addresses another function. It carries accepted client authorization credentials, usually for calling a protected API endpoint. This case at a service catalog adding a new network request resource needs to create or submit new data; POST matches it more closely.

Answer C is incorrect because At a service catalog adding a new network request resource, A resource URI addresses another function. It identifies the target API resource, usually for addressing one object or collection. This case at a service catalog adding a new network request resource needs to create or submit new data; POST matches it more closely.

 

Question 3

A client updating the representation at a known device URI. The requirement is to replace or update the representation at a known resource URI. Which option matches the API or automation evidence? Choose ONE.

  1. Create, Read, Update, Delete (CRUD)
  2. DELETE
  3. PUT
  4. Content-Type: application/json

Correct Answer: C

Correct Answer

 

 

Answer C is correct because At a client updating the representation at a known device URI, PUT is the best match. It replaces data at a known URI. Engineers use it for updating a complete resource representation. That satisfies the need to replace the addressed resource for a client updating the representation at a known device URI.

Incorrect Answers

 

Answer B is incorrect because At a client updating the representation at a known device URI, DELETE addresses another function. It removes the addressed API resource, usually for deleting a known managed object. This case at a client updating the representation at a known device URI needs to replace the addressed resource; PUT matches it more closely.

Answer D is incorrect because At a client updating the representation at a known device URI, Content-Type: application/json addresses another function. It labels the request body as JSON, usually for sending a JSON request payload. This case at a client updating the representation at a known device URI needs to replace the addressed resource; PUT matches it more closely.

Answer A is incorrect because At a client updating the representation at a known device URI, Create, Read, Update, Delete (CRUD) addresses another function. It names create read update delete operations, usually for mapping data actions to API operations. This case at a client updating the representation at a known device URI needs to replace the addressed resource; PUT matches it more closely.

 

Question 4

During a cleanup workflow deleting a stale sandbox policy, the engineer needs a capability that will remove the addressed API resource. Which choice is correct for this use case? Choose ONE.

  1. An authorization token in the request
  2. A resource URI
  3. GET
  4. DELETE

Correct Answer: D

Correct Answer

 

 

Answer D is correct because At a cleanup workflow deleting a stale sandbox policy, DELETE is the best match. It removes the addressed API resource. Engineers use it for deleting a known managed object. That satisfies the need to remove the selected resource for a cleanup workflow deleting a stale sandbox policy.

Incorrect Answers

 

Answer A is incorrect because At a cleanup workflow deleting a stale sandbox policy, An authorization token in the request addresses another function. It carries accepted client authorization credentials, usually for calling a protected API endpoint. This case at a cleanup workflow deleting a stale sandbox policy needs to remove the selected resource; DELETE matches it more closely.

Answer B is incorrect because At a cleanup workflow deleting a stale sandbox policy, A resource URI addresses another function. It identifies the target API resource, usually for addressing one object or collection. This case at a cleanup workflow deleting a stale sandbox policy needs to remove the selected resource; DELETE matches it more closely.

Answer C is incorrect because At a cleanup workflow deleting a stale sandbox policy, GET addresses another function. It reads an existing API resource, usually for retrieving current device or policy data. This case at a cleanup workflow deleting a stale sandbox policy needs to remove the selected resource; DELETE matches it more closely.

 

Question 5

A design review for a script accessing an endpoint that rejects anonymous callers focuses on one requirement: authenticate or authorize the API client before access to a protected endpoint. Which option matches the API or automation evidence? Choose ONE.

  1. An authorization token in the request
  2. Create, Read, Update, Delete (CRUD)
  3. POST
  4. Content-Type: application/json

Correct Answer: A

Correct Answer

 

 

Answer A is correct because At a script accessing an endpoint that rejects anonymous callers, An authorization token in the request is the best match. It carries accepted client authorization credentials. Engineers use it for calling a protected API endpoint. That satisfies the need to prove access to the API for a script accessing an endpoint that rejects anonymous callers.

Incorrect Answers

 

Answer D is incorrect because At a script accessing an endpoint that rejects anonymous callers, Content-Type: application/json addresses another function. It labels the request body as JSON, usually for sending a JSON request payload. This case at a script accessing an endpoint that rejects anonymous callers needs to prove access to the API; An authorization token in the request matches it more closely.

Answer B is incorrect because At a script accessing an endpoint that rejects anonymous callers, Create, Read, Update, Delete (CRUD) addresses another function. It names create read update delete operations, usually for mapping data actions to API operations. This case at a script accessing an endpoint that rejects anonymous callers needs to prove access to the API; An authorization token in the request matches it more closely.

Answer C is incorrect because At a script accessing an endpoint that rejects anonymous callers, POST addresses another function. It submits data to create a resource, usually for creating a child or collection item. This case at a script accessing an endpoint that rejects anonymous callers needs to prove access to the API; An authorization token in the request matches it more closely.

 

Question 6

The evidence from an application sending structured JSON configuration data shows that the selected mechanism must identify the encoding of the request body as JSON. Which choice is correct for this use case? Choose ONE.

  1. PUT
  2. Content-Type: application/json
  3. A resource URI
  4. GET

Correct Answer: B

Correct Answer

 

 

Answer B is correct because At an application sending structured JSON configuration data, Content-Type: application/json is the best match. It labels the request body as JSON. Engineers use it for sending a JSON request payload. That satisfies the need to declare JSON body encoding for an application sending structured JSON configuration data.

Incorrect Answers

 

Answer C is incorrect because At an application sending structured JSON configuration data, A resource URI addresses another function. It identifies the target API resource, usually for addressing one object or collection. This case at an application sending structured JSON configuration data needs to declare JSON body encoding; Content-Type: application/json matches it more closely.

Answer D is incorrect because At an application sending structured JSON configuration data, GET addresses another function. It reads an existing API resource, usually for retrieving current device or policy data. This case at an application sending structured JSON configuration data needs to declare JSON body encoding; Content-Type: application/json matches it more closely.

Answer A is incorrect because At an application sending structured JSON configuration data, PUT addresses another function. It replaces data at a known URI, usually for updating a complete resource representation. This case at an application sending structured JSON configuration data needs to declare JSON body encoding; Content-Type: application/json matches it more closely.

 

Question 7

An engineer working on a client selecting the URI for a single managed device must address the exact REST resource or collection being operated on. Which technology, method, or construct provides that behavior most directly? Choose ONE.

  1. Create, Read, Update, Delete (CRUD)
  2. POST
  3. A resource URI
  4. DELETE

Correct Answer: C

Correct Answer

 

 

Answer C is correct because At a client selecting the URI for a single managed device, A resource URI is the best match. It identifies the target API resource. Engineers use it for addressing one object or collection. That satisfies the need to select the target resource for a client selecting the URI for a single managed device.

Incorrect Answers

 

Answer A is incorrect because At a client selecting the URI for a single managed device, Create, Read, Update, Delete (CRUD) addresses another function. It names create read update delete operations, usually for mapping data actions to API operations. This case at a client selecting the URI for a single managed device needs to select the target resource; A resource URI matches it more closely.

Answer B is incorrect because At a client selecting the URI for a single managed device, POST addresses another function. It submits data to create a resource, usually for creating a child or collection item. This case at a client selecting the URI for a single managed device needs to select the target resource; A resource URI matches it more closely.

Answer D is incorrect because At a client selecting the URI for a single managed device, DELETE addresses another function. It removes the addressed API resource, usually for deleting a known managed object. This case at a client selecting the URI for a single managed device needs to select the target resource; A resource URI matches it more closely.

 

Question 8

A design review translating create/read/update/delete into web operations. The requirement is to recognize the standard create/read/update/delete data-operation model. Which choice is correct for this use case? Choose ONE.

  1. PUT
  2. An authorization token in the request
  3. GET
  4. Create, Read, Update, Delete (CRUD)

Correct Answer: D

Correct Answer

 

 

Answer D is correct because At a design review translating create/read/update/delete into web operations, Create, Read, Update, Delete (CRUD) is the best match. It names create read update delete operations. Engineers use it for mapping data actions to API operations. That satisfies the need to recognize the CRUD model for a design review translating create/read/update/delete into web operations.

Incorrect Answers

 

Answer C is incorrect because At a design review translating create/read/update/delete into web operations, GET addresses another function. It reads an existing API resource, usually for retrieving current device or policy data. This case at a design review translating create/read/update/delete into web operations needs to recognize the CRUD model; Create, Read, Update, Delete (CRUD) matches it more closely.

Answer A is incorrect because At a design review translating create/read/update/delete into web operations, PUT addresses another function. It replaces data at a known URI, usually for updating a complete resource representation. This case at a design review translating create/read/update/delete into web operations needs to recognize the CRUD model; Create, Read, Update, Delete (CRUD) matches it more closely.

Answer B is incorrect because At a design review translating create/read/update/delete into web operations, An authorization token in the request addresses another function. It carries accepted client authorization credentials, usually for calling a protected API endpoint. This case at a design review translating create/read/update/delete into web operations needs to recognize the CRUD model; Create, Read, Update, Delete (CRUD) matches it more closely.

 

Question 9

During a NOC running the same configuration steps across access switches, the engineer needs a capability that will encode an ordered repeatable task workflow in YAML. Which answer best explains the observed behavior? Choose ONE.

  1. An Ansible playbook written in YAML
  2. A Terraform provider
  3. An Ansible inventory
  4. An Ansible network module

Correct Answer: A

Correct Answer

 

 

Answer A is correct because At a NOC running the same configuration steps across access switches, An Ansible playbook written in YAML is the best match. It defines repeatable automation tasks in YAML. Engineers use it for running ordered configuration workflows. That satisfies the need to encode the automation workflow for a NOC running the same configuration steps across access switches.

Incorrect Answers

 

Answer C is incorrect because At a NOC running the same configuration steps across access switches, An Ansible inventory addresses another function. It groups managed hosts and variables, usually for targeting selected device groups. This case at a NOC running the same configuration steps across access switches needs to encode the automation workflow; An Ansible playbook written in YAML matches it more closely.

Answer D is incorrect because At a NOC running the same configuration steps across access switches, An Ansible network module addresses another function. It performs a reusable automation task, usually for executing supported device operations. This case at a NOC running the same configuration steps across access switches needs to encode the automation workflow; An Ansible playbook written in YAML matches it more closely.

Answer B is incorrect because At a NOC running the same configuration steps across access switches, A Terraform provider addresses another function. It connects Terraform to a platform API, usually for managing vendor resources through Terraform. This case at a NOC running the same configuration steps across access switches needs to encode the automation workflow; An Ansible playbook written in YAML matches it more closely.

 

Question 10

A design review for an automation project separating web servers and routers into target groups focuses on one requirement: group and describe the managed hosts that a playbook targets. Which answer best explains the observed behavior? Choose ONE.

  1. Ansible agentless automation
  2. An Ansible inventory
  3. Terraform configuration in HCL
  4. Terraform state

Correct Answer: B

Correct Answer

 

 

Answer B is correct because At an automation project separating web servers and routers into target groups, An Ansible inventory is the best match. It groups managed hosts and variables. Engineers use it for targeting selected device groups. That satisfies the need to define playbook targets for an automation project separating web servers and routers into target groups.

Incorrect Answers

 

Answer A is incorrect because At an automation project separating web servers and routers into target groups, Ansible agentless automation addresses another function. It uses existing remote management interfaces, usually for automating devices without resident agents. This case at an automation project separating web servers and routers into target groups needs to define playbook targets; An Ansible inventory matches it more closely.

Answer C is incorrect because At an automation project separating web servers and routers into target groups, Terraform configuration in HCL addresses another function. It declares desired infrastructure resources in HCL, usually for describing infrastructure as code. This case at an automation project separating web servers and routers into target groups needs to define playbook targets; An Ansible inventory matches it more closely.

Answer D is incorrect because At an automation project separating web servers and routers into target groups, Terraform state addresses another function. It tracks Terraform-managed resource mappings, usually for remembering resources between Terraform runs. This case at an automation project separating web servers and routers into target groups needs to define playbook targets; An Ansible inventory matches it more closely.

 

Question 11

The evidence from a network automation design using SSH and APIs to managed devices shows that the selected mechanism must automate devices through existing remote interfaces without installing resident agents. Which mechanism should the engineer select? Choose ONE.

  1. A Terraform provider
  2. terraform plan
  3. Ansible agentless automation
  4. An Ansible network module

Correct Answer: C

Correct Answer

 

 

Answer C is correct because At a network automation design using SSH and APIs to managed devices, Ansible agentless automation is the best match. It uses existing remote management interfaces. Engineers use it for automating devices without resident agents. That satisfies the need to avoid installing endpoint agents for a network automation design using SSH and APIs to managed devices.

Incorrect Answers

 

Answer D is incorrect because At a network automation design using SSH and APIs to managed devices, An Ansible network module addresses another function. It performs a reusable automation task, usually for executing supported device operations. This case at a network automation design using SSH and APIs to managed devices needs to avoid installing endpoint agents; Ansible agentless automation matches it more closely.

Answer A is incorrect because At a network automation design using SSH and APIs to managed devices, A Terraform provider addresses another function. It connects Terraform to a platform API, usually for managing vendor resources through Terraform. This case at a network automation design using SSH and APIs to managed devices needs to avoid installing endpoint agents; Ansible agentless automation matches it more closely.

Answer B is incorrect because At a network automation design using SSH and APIs to managed devices, terraform plan addresses another function. It previews proposed Terraform changes, usually for reviewing changes before apply. This case at a network automation design using SSH and APIs to managed devices needs to avoid installing endpoint agents; Ansible agentless automation matches it more closely.

 

Question 12

An engineer working on a platform team describing desired infrastructure declaratively must declare desired infrastructure resources and attributes in Terraform configuration. Which technology, method, or construct provides that behavior most directly? Choose ONE.

  1. An Ansible inventory
  2. A Terraform provider
  3. terraform plan
  4. Terraform configuration in HCL

Correct Answer: D

Correct Answer

 

 

Answer D is correct because At a platform team describing desired infrastructure declaratively, Terraform configuration in HCL is the best match. It declares desired infrastructure resources in HCL. Engineers use it for describing infrastructure as code. That satisfies the need to declare desired infrastructure state for a platform team describing desired infrastructure declaratively.

Incorrect Answers

 

Answer B is incorrect because At a platform team describing desired infrastructure declaratively, A Terraform provider addresses another function. It connects Terraform to a platform API, usually for managing vendor resources through Terraform. This case at a platform team describing desired infrastructure declaratively needs to declare desired infrastructure state; Terraform configuration in HCL matches it more closely.

Answer C is incorrect because At a platform team describing desired infrastructure declaratively, terraform plan addresses another function. It previews proposed Terraform changes, usually for reviewing changes before apply. This case at a platform team describing desired infrastructure declaratively needs to declare desired infrastructure state; Terraform configuration in HCL matches it more closely.

Answer A is incorrect because At a platform team describing desired infrastructure declaratively, An Ansible inventory addresses another function. It groups managed hosts and variables, usually for targeting selected device groups. This case at a platform team describing desired infrastructure declaratively needs to declare desired infrastructure state; Terraform configuration in HCL matches it more closely.

 

Question 13

A Terraform configuration managing a vendor platform through its API. The requirement is to load the integration plugin that communicates with the target platform API. Which mechanism should the engineer select? Choose ONE.

  1. A Terraform provider
  2. Terraform state
  3. An Ansible playbook written in YAML
  4. Ansible agentless automation

Correct Answer: A

Correct Answer

 

 

Answer A is correct because At a Terraform configuration managing a vendor platform through its API, A Terraform provider is the best match. It connects Terraform to a platform API. Engineers use it for managing vendor resources through Terraform. That satisfies the need to integrate Terraform with the platform for a Terraform configuration managing a vendor platform through its API.

Incorrect Answers

 

Answer B is incorrect because At a Terraform configuration managing a vendor platform through its API, Terraform state addresses another function. It tracks Terraform-managed resource mappings, usually for remembering resources between Terraform runs. This case at a Terraform configuration managing a vendor platform through its API needs to integrate Terraform with the platform; A Terraform provider matches it more closely.

Answer C is incorrect because At a Terraform configuration managing a vendor platform through its API, An Ansible playbook written in YAML addresses another function. It defines repeatable automation tasks in YAML, usually for running ordered configuration workflows. This case at a Terraform configuration managing a vendor platform through its API needs to integrate Terraform with the platform; A Terraform provider matches it more closely.

Answer D is incorrect because At a Terraform configuration managing a vendor platform through its API, Ansible agentless automation addresses another function. It uses existing remote management interfaces, usually for automating devices without resident agents. This case at a Terraform configuration managing a vendor platform through its API needs to integrate Terraform with the platform; A Terraform provider matches it more closely.

 

Question 14

During an engineer checking the proposed Terraform change set, the engineer needs a capability that will preview intended infrastructure changes before applying them. Which choice is the best technical match? Choose ONE.

  1. Ansible agentless automation
  2. terraform plan
  3. Terraform configuration in HCL
  4. An Ansible playbook written in YAML

Correct Answer: B

Correct Answer

 

 

Answer B is correct because At an engineer checking the proposed Terraform change set, terraform plan is the best match. It previews proposed Terraform changes. Engineers use it for reviewing changes before apply. That satisfies the need to preview the pending change set for an engineer checking the proposed Terraform change set.

Incorrect Answers

 

Answer D is incorrect because At an engineer checking the proposed Terraform change set, An Ansible playbook written in YAML addresses another function. It defines repeatable automation tasks in YAML, usually for running ordered configuration workflows. This case at an engineer checking the proposed Terraform change set needs to preview the pending change set; terraform plan matches it more closely.

Answer A is incorrect because At an engineer checking the proposed Terraform change set, Ansible agentless automation addresses another function. It uses existing remote management interfaces, usually for automating devices without resident agents. This case at an engineer checking the proposed Terraform change set needs to preview the pending change set; terraform plan matches it more closely.

Answer C is incorrect because At an engineer checking the proposed Terraform change set, Terraform configuration in HCL addresses another function. It declares desired infrastructure resources in HCL, usually for describing infrastructure as code. This case at an engineer checking the proposed Terraform change set needs to preview the pending change set; terraform plan matches it more closely.

 

Question 15

A response representing one site and its attributes receives this payload: {“site”:”branch7″,”active”:true}. What JSON structure is the outermost value? Choose ONE.

  1. Valid standard JSON syntax
  2. A JSON array enclosed in [ ]
  3. A JSON object enclosed in { }
  4. Standard JSON value types

Correct Answer: C

Correct Answer

 

 

Answer C is correct because At a response representing one site and its attributes, A JSON object enclosed in { } is the best match. It groups named members inside braces. Engineers use it for representing one structured record. That satisfies the need to identify a JSON object for a response representing one site and its attributes.

Incorrect Answers

 

Answer B is incorrect because At a response representing one site and its attributes, A JSON array enclosed in [ ] addresses another function. It stores ordered values inside brackets, usually for representing a list of items. This case at a response representing one site and its attributes needs to identify a JSON object; A JSON object enclosed in { } matches it more closely.

Answer D is incorrect because At a response representing one site and its attributes, Standard JSON value types addresses another function. It represents standard JSON value forms, usually for interpreting JSON primitive and container values. This case at a response representing one site and its attributes needs to identify a JSON object; A JSON object enclosed in { } matches it more closely.

Answer A is incorrect because At a response representing one site and its attributes, Valid standard JSON syntax addresses another function. It follows standard JSON syntax rules, usually for sending parser-compatible request bodies. This case at a response representing one site and its attributes needs to identify a JSON object; A JSON object enclosed in { } matches it more closely.

 

Question 16

A response carrying several VLAN objects in sequence receives this payload: [“Gi1/0/1″,”Gi1/0/2″,”Gi1/0/3”]. What JSON structure is represented by the outermost brackets? Choose ONE.

  1. A JSON object key/value member
  2. Follow the nested JSON hierarchy
  3. A JSON object enclosed in { }
  4. A JSON array enclosed in [ ]

Correct Answer: D

Correct Answer

 

 

Answer D is correct because At a response carrying several VLAN objects in sequence, A JSON array enclosed in [ ] is the best match. It stores ordered values inside brackets. Engineers use it for representing a list of items. That satisfies the need to identify a JSON array for a response carrying several VLAN objects in sequence.

Incorrect Answers

 

Answer A is incorrect because At a response carrying several VLAN objects in sequence, A JSON object key/value member addresses another function. It associates a key with its value, usually for reading one object member. This case at a response carrying several VLAN objects in sequence needs to identify a JSON array; A JSON array enclosed in [ ] matches it more closely.

Answer B is incorrect because At a response carrying several VLAN objects in sequence, Follow the nested JSON hierarchy addresses another function. It follows keys and array indexes, usually for locating a nested response value. This case at a response carrying several VLAN objects in sequence needs to identify a JSON array; A JSON array enclosed in [ ] matches it more closely.

Answer C is incorrect because At a response carrying several VLAN objects in sequence, A JSON object enclosed in { } addresses another function. It groups named members inside braces, usually for representing one structured record. This case at a response carrying several VLAN objects in sequence needs to identify a JSON array; A JSON array enclosed in [ ] matches it more closely.

 

Question 17

A parser reading the value associated with the key role examines this JSON: {“role”:”distribution”,”priority”:10}. Which statement correctly describes the syntax joining a member name to its value? Choose ONE.

  1. A JSON object key/value member
  2. Valid standard JSON syntax
  3. A JSON array enclosed in [ ]
  4. Standard JSON value types

Correct Answer: A

Correct Answer

 

 

Answer A is correct because At a parser reading the value associated with the key role, A JSON object key/value member is the best match. It associates a key with its value. Engineers use it for reading one object member. That satisfies the need to recognize a key-value member for a parser reading the value associated with the key role.

Incorrect Answers

 

Answer D is incorrect because At a parser reading the value associated with the key role, Standard JSON value types addresses another function. It represents standard JSON value forms, usually for interpreting JSON primitive and container values. This case at a parser reading the value associated with the key role needs to recognize a key-value member; A JSON object key/value member matches it more closely.

Answer B is incorrect because At a parser reading the value associated with the key role, Valid standard JSON syntax addresses another function. It follows standard JSON syntax rules, usually for sending parser-compatible request bodies. This case at a parser reading the value associated with the key role needs to recognize a key-value member; A JSON object key/value member matches it more closely.

Answer C is incorrect because At a parser reading the value associated with the key role, A JSON array enclosed in [ ] addresses another function. It stores ordered values inside brackets, usually for representing a list of items. This case at a parser reading the value associated with the key role needs to recognize a key-value member; A JSON object key/value member matches it more closely.

 

Question 18

An engineer distinguishing strings, booleans, numbers, and null receives {“name”:”ap17″,”clients”:23,”managed”:false,”note”:null}. Which option correctly identifies the value forms used here? Choose ONE.

  1. A JSON object key/value member
  2. Standard JSON value types
  3. Follow the nested JSON hierarchy
  4. A JSON object enclosed in { }

Correct Answer: B

Correct Answer

 

 

Answer B is correct because At an engineer distinguishing strings, booleans, numbers, and null, Standard JSON value types is the best match. It represents standard JSON value forms. Engineers use it for interpreting JSON primitive and container values. That satisfies the need to identify JSON value types for an engineer distinguishing strings, booleans, numbers, and null.

Incorrect Answers

 

Answer C is incorrect because At an engineer distinguishing strings, booleans, numbers, and null, Follow the nested JSON hierarchy addresses another function. It follows keys and array indexes, usually for locating a nested response value. This case at an engineer distinguishing strings, booleans, numbers, and null needs to identify JSON value types; Standard JSON value types matches it more closely.

Answer D is incorrect because At an engineer distinguishing strings, booleans, numbers, and null, A JSON object enclosed in { } addresses another function. It groups named members inside braces, usually for representing one structured record. This case at an engineer distinguishing strings, booleans, numbers, and null needs to identify JSON value types; Standard JSON value types matches it more closely.

Answer A is incorrect because At an engineer distinguishing strings, booleans, numbers, and null, A JSON object key/value member addresses another function. It associates a key with its value, usually for reading one object member. This case at an engineer distinguishing strings, booleans, numbers, and null needs to identify JSON value types; Standard JSON value types matches it more closely.

 

Question 19

A parser reading devices[0].interfaces[1].name receives {“sites”:[{“name”:”HQ”,”devices”:[{“hostname”:”core1″}]}]}. Which interpretation correctly reaches the hostname core1? Choose ONE.

  1. Valid standard JSON syntax
  2. A JSON array enclosed in [ ]
  3. Follow the nested JSON hierarchy
  4. Standard JSON value types

Correct Answer: C

Correct Answer

 

 

Answer C is correct because At a parser reading devices[0].interfaces[1].name, Follow the nested JSON hierarchy is the best match. It follows keys and array indexes. Engineers use it for locating a nested response value. That satisfies the need to trace the nested hierarchy for a parser reading devices[0].interfaces[1].name.

Incorrect Answers

 

Answer A is incorrect because At a parser reading devices[0].interfaces[1].name, Valid standard JSON syntax addresses another function. It follows standard JSON syntax rules, usually for sending parser-compatible request bodies. This case at a parser reading devices[0].interfaces[1].name needs to trace the nested hierarchy; Follow the nested JSON hierarchy matches it more closely.

Answer B is incorrect because At a parser reading devices[0].interfaces[1].name, A JSON array enclosed in [ ] addresses another function. It stores ordered values inside brackets, usually for representing a list of items. This case at a parser reading devices[0].interfaces[1].name needs to trace the nested hierarchy; Follow the nested JSON hierarchy matches it more closely.

Answer D is incorrect because At a parser reading devices[0].interfaces[1].name, Standard JSON value types addresses another function. It represents standard JSON value forms, usually for interpreting JSON primitive and container values. This case at a parser reading devices[0].interfaces[1].name needs to trace the nested hierarchy; Follow the nested JSON hierarchy matches it more closely.

 

Question 20

An API test failing because its body uses nonstandard JSON syntax compares candidate request bodies. Which payload is valid JSON? Choose ONE.

  1. {“name”:”edge”,”enabled”:true,}
  2. {name:”edge”,enabled:true}
  3. {‘name’:’edge’,’enabled’:True}
  4. {“threshold”:80,”alert”:false,”owner”:”noc”}

Correct Answer: D

Correct Answer

 

 

Answer D is correct because For an API test failing because its body uses nonstandard JSON syntax, this candidate is valid standard JSON: object keys and string values use double quotes, the boolean literal is lowercase, and no trailing comma appears. A standards-compliant parser can therefore accept the body directly.

Incorrect Answers

 

Answer C is incorrect because For an API test failing because its body uses nonstandard JSON syntax, this candidate is invalid JSON because it contains single quotes, capitalized Python-style booleans. The request body must follow standard JSON quoting and literal rules, so the API parser can reject this form before processing the data.

Answer A is incorrect because For an API test failing because its body uses nonstandard JSON syntax, this candidate is invalid JSON because it contains a trailing comma. The request body must follow standard JSON quoting and literal rules, so the API parser can reject this form before processing the data.

Answer B is incorrect because For an API test failing because its body uses nonstandard JSON syntax, this candidate is invalid JSON because it contains an unquoted object key. The request body must follow standard JSON quoting and literal rules, so the API parser can reject this form before processing the data.

Leave a Reply

How It Works

img
Step 1. Choose Exam
on ExamLabs
Download IT Exams Questions & Answers
img
Step 2. Open Exam with
Avanset Exam Simulator
Press here to download VCE Exam Simulator that simulates real exam environment
img
Step 3. Study
& Pass
IT Exams Anywhere, Anytime!