Topic 22 Practice Test 3 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
An engineer working on a compliance job reading configuration state from an API must retrieve an existing resource without asking the API to create or remove it. Which technology, method, or construct provides that behavior most directly? Choose ONE.
- GET
- DELETE
- Content-Type: application/json
- POST
Correct Answer: A
Correct Answer
Answer A is correct because The evidence from a compliance job reading configuration state from an API points to GET. This choice reads an existing API resource. Its normal use is retrieving current device or policy data. The workflow at a compliance job reading configuration state from an API requires the engineer to read the addressed resource, confirming GET.
Incorrect Answers
Answer D is incorrect because Using POST at a compliance job reading configuration state from an API would make sense for creating a child or collection item, because it submits data to create a resource. The workflow at a compliance job reading configuration state from an API must read the addressed resource; that points to GET instead.
Answer B is incorrect because Using DELETE at a compliance job reading configuration state from an API would make sense for deleting a known managed object, because it removes the addressed API resource. The workflow at a compliance job reading configuration state from an API must read the addressed resource; that points to GET instead.
Answer C is incorrect because Using Content-Type: application/json at a compliance job reading configuration state from an API would make sense for sending a JSON request payload, because it labels the request body as JSON. The workflow at a compliance job reading configuration state from an API must read the addressed resource; that points to GET instead.
Question 2
An orchestration client creating a new child resource. The requirement is to create or submit a new resource through a collection-style endpoint. Which option matches the API or automation evidence? Choose ONE.
- A resource URI
- POST
- PUT
- An authorization token in the request
Correct Answer: B
Correct Answer
Answer B is correct because The evidence from an orchestration client creating a new child resource points to POST. This choice submits data to create a resource. Its normal use is creating a child or collection item. The workflow at an orchestration client creating a new child resource requires the engineer to create or submit new data, confirming POST.
Incorrect Answers
Answer C is incorrect because Using PUT at an orchestration client creating a new child resource would make sense for updating a complete resource representation, because it replaces data at a known URI. The workflow at an orchestration client creating a new child resource must create or submit new data; that points to POST instead.
Answer D is incorrect because Using An authorization token in the request at an orchestration client creating a new child resource would make sense for calling a protected API endpoint, because it carries accepted client authorization credentials. The workflow at an orchestration client creating a new child resource must create or submit new data; that points to POST instead.
Answer A is incorrect because Using A resource URI at an orchestration client creating a new child resource would make sense for addressing one object or collection, because it identifies the target API resource. The workflow at an orchestration client creating a new child resource must create or submit new data; that points to POST instead.
Question 3
During an automation client replacing a resource using its known URL, the engineer needs a capability that will replace or update the representation at a known resource URI. Which mechanism should the engineer select? Choose ONE.
- DELETE
- Content-Type: application/json
- PUT
- Create, Read, Update, Delete (CRUD)
Correct Answer: C
Correct Answer
Answer C is correct because The evidence from an automation client replacing a resource using its known URL points to PUT. This choice replaces data at a known URI. Its normal use is updating a complete resource representation. The workflow at an automation client replacing a resource using its known URL requires the engineer to replace the addressed resource, confirming PUT.
Incorrect Answers
Answer A is incorrect because Using DELETE at an automation client replacing a resource using its known URL would make sense for deleting a known managed object, because it removes the addressed API resource. The workflow at an automation client replacing a resource using its known URL must replace the addressed resource; that points to PUT instead.
Answer B is incorrect because Using Content-Type: application/json at an automation client replacing a resource using its known URL would make sense for sending a JSON request payload, because it labels the request body as JSON. The workflow at an automation client replacing a resource using its known URL must replace the addressed resource; that points to PUT instead.
Answer D is incorrect because Using Create, Read, Update, Delete (CRUD) at an automation client replacing a resource using its known URL would make sense for mapping data actions to API operations, because it names create read update delete operations. The workflow at an automation client replacing a resource using its known URL must replace the addressed resource; that points to PUT instead.
Question 4
A design review for a lifecycle job removing a decommissioned resource focuses on one requirement: remove the addressed API resource. Which mechanism should the engineer select? Choose ONE.
- A resource URI
- GET
- An authorization token in the request
- DELETE
Correct Answer: D
Correct Answer
Answer D is correct because The evidence from a lifecycle job removing a decommissioned resource points to DELETE. This choice removes the addressed API resource. Its normal use is deleting a known managed object. The workflow at a lifecycle job removing a decommissioned resource requires the engineer to remove the selected resource, confirming DELETE.
Incorrect Answers
Answer C is incorrect because Using An authorization token in the request at a lifecycle job removing a decommissioned resource would make sense for calling a protected API endpoint, because it carries accepted client authorization credentials. The workflow at a lifecycle job removing a decommissioned resource must remove the selected resource; that points to DELETE instead.
Answer A is incorrect because Using A resource URI at a lifecycle job removing a decommissioned resource would make sense for addressing one object or collection, because it identifies the target API resource. The workflow at a lifecycle job removing a decommissioned resource must remove the selected resource; that points to DELETE instead.
Answer B is incorrect because Using GET at a lifecycle job removing a decommissioned resource would make sense for retrieving current device or policy data, because it reads an existing API resource. The workflow at a lifecycle job removing a decommissioned resource must remove the selected resource; that points to DELETE instead.
Question 5
The evidence from a program calling a REST service that requires authenticated access shows that the selected mechanism must authenticate or authorize the API client before access to a protected endpoint. Which option matches the API or automation evidence? Choose ONE.
- An authorization token in the request
- POST
- Content-Type: application/json
- Create, Read, Update, Delete (CRUD)
Correct Answer: A
Correct Answer
Answer A is correct because The evidence from a program calling a REST service that requires authenticated access points to An authorization token in the request. This choice carries accepted client authorization credentials. Its normal use is calling a protected API endpoint. The workflow at a program calling a REST service that requires authenticated access requires the engineer to prove access to the API, confirming An authorization token in the request.
Incorrect Answers
Answer C is incorrect because Using Content-Type: application/json at a program calling a REST service that requires authenticated access would make sense for sending a JSON request payload, because it labels the request body as JSON. The workflow at a program calling a REST service that requires authenticated access must prove access to the API; that points to An authorization token in the request instead.
Answer D is incorrect because Using Create, Read, Update, Delete (CRUD) at a program calling a REST service that requires authenticated access would make sense for mapping data actions to API operations, because it names create read update delete operations. The workflow at a program calling a REST service that requires authenticated access must prove access to the API; that points to An authorization token in the request instead.
Answer B is incorrect because Using POST at a program calling a REST service that requires authenticated access would make sense for creating a child or collection item, because it submits data to create a resource. The workflow at a program calling a REST service that requires authenticated access must prove access to the API; that points to An authorization token in the request instead.
Question 6
An engineer working on a tool transmitting a JSON-encoded request payload must identify the encoding of the request body as JSON. Which technology, method, or construct provides that behavior most directly? Choose ONE.
- A resource URI
- Content-Type: application/json
- GET
- PUT
Correct Answer: B
Correct Answer
Answer B is correct because The evidence from a tool transmitting a JSON-encoded request payload points to Content-Type: application/json. This choice labels the request body as JSON. Its normal use is sending a JSON request payload. The workflow at a tool transmitting a JSON-encoded request payload requires the engineer to declare JSON body encoding, confirming Content-Type: application/json.
Incorrect Answers
Answer A is incorrect because Using A resource URI at a tool transmitting a JSON-encoded request payload would make sense for addressing one object or collection, because it identifies the target API resource. The workflow at a tool transmitting a JSON-encoded request payload must declare JSON body encoding; that points to Content-Type: application/json instead.
Answer C is incorrect because Using GET at a tool transmitting a JSON-encoded request payload would make sense for retrieving current device or policy data, because it reads an existing API resource. The workflow at a tool transmitting a JSON-encoded request payload must declare JSON body encoding; that points to Content-Type: application/json instead.
Answer D is incorrect because Using PUT at a tool transmitting a JSON-encoded request payload would make sense for updating a complete resource representation, because it replaces data at a known URI. The workflow at a tool transmitting a JSON-encoded request payload must declare JSON body encoding; that points to Content-Type: application/json instead.
Question 7
A developer composing the address of a specific API resource. The requirement is to address the exact REST resource or collection being operated on. Which choice is correct for this use case? Choose ONE.
- POST
- DELETE
- A resource URI
- Create, Read, Update, Delete (CRUD)
Correct Answer: C
Correct Answer
Answer C is correct because The evidence from a developer composing the address of a specific API resource points to A resource URI. This choice identifies the target API resource. Its normal use is addressing one object or collection. The workflow at a developer composing the address of a specific API resource requires the engineer to select the target resource, confirming A resource URI.
Incorrect Answers
Answer D is incorrect because Using Create, Read, Update, Delete (CRUD) at a developer composing the address of a specific API resource would make sense for mapping data actions to API operations, because it names create read update delete operations. The workflow at a developer composing the address of a specific API resource must select the target resource; that points to A resource URI instead.
Answer A is incorrect because Using POST at a developer composing the address of a specific API resource would make sense for creating a child or collection item, because it submits data to create a resource. The workflow at a developer composing the address of a specific API resource must select the target resource; that points to A resource URI instead.
Answer B is incorrect because Using DELETE at a developer composing the address of a specific API resource would make sense for deleting a known managed object, because it removes the addressed API resource. The workflow at a developer composing the address of a specific API resource must select the target resource; that points to A resource URI instead.
Question 8
During a certification review comparing CRUD operations with HTTP actions, the engineer needs a capability that will recognize the standard create/read/update/delete data-operation model. Which option directly satisfies the requirement? Choose ONE.
- An authorization token in the request
- GET
- PUT
- Create, Read, Update, Delete (CRUD)
Correct Answer: D
Correct Answer
Answer D is correct because The evidence from a certification review comparing CRUD operations with HTTP actions points to Create, Read, Update, Delete (CRUD). This choice names create read update delete operations. Its normal use is mapping data actions to API operations. The workflow at a certification review comparing CRUD operations with HTTP actions requires the engineer to recognize the CRUD model, confirming Create, Read, Update, Delete (CRUD).
Incorrect Answers
Answer B is incorrect because Using GET at a certification review comparing CRUD operations with HTTP actions would make sense for retrieving current device or policy data, because it reads an existing API resource. The workflow at a certification review comparing CRUD operations with HTTP actions must recognize the CRUD model; that points to Create, Read, Update, Delete (CRUD) instead.
Answer C is incorrect because Using PUT at a certification review comparing CRUD operations with HTTP actions would make sense for updating a complete resource representation, because it replaces data at a known URI. The workflow at a certification review comparing CRUD operations with HTTP actions must recognize the CRUD model; that points to Create, Read, Update, Delete (CRUD) instead.
Answer A is incorrect because Using An authorization token in the request at a certification review comparing CRUD operations with HTTP actions would make sense for calling a protected API endpoint, because it carries accepted client authorization credentials. The workflow at a certification review comparing CRUD operations with HTTP actions must recognize the CRUD model; that points to Create, Read, Update, Delete (CRUD) instead.
Question 9
A design review for a network engineer codifying repeated tasks in a YAML workflow focuses on one requirement: encode an ordered repeatable task workflow in YAML. Which choice is the best technical match? Choose ONE.
- An Ansible playbook written in YAML
- An Ansible inventory
- An Ansible network module
- A Terraform provider
Correct Answer: A
Correct Answer
Answer A is correct because The evidence from a network engineer codifying repeated tasks in a YAML workflow points to An Ansible playbook written in YAML. This choice defines repeatable automation tasks in YAML. Its normal use is running ordered configuration workflows. The workflow at a network engineer codifying repeated tasks in a YAML workflow requires the engineer to encode the automation workflow, confirming An Ansible playbook written in YAML.
Incorrect Answers
Answer B is incorrect because Using An Ansible inventory at a network engineer codifying repeated tasks in a YAML workflow would make sense for targeting selected device groups, because it groups managed hosts and variables. The workflow at a network engineer codifying repeated tasks in a YAML workflow must encode the automation workflow; that points to An Ansible playbook written in YAML instead.
Answer C is incorrect because Using An Ansible network module at a network engineer codifying repeated tasks in a YAML workflow would make sense for executing supported device operations, because it performs a reusable automation task. The workflow at a network engineer codifying repeated tasks in a YAML workflow must encode the automation workflow; that points to An Ansible playbook written in YAML instead.
Answer D is incorrect because Using A Terraform provider at a network engineer codifying repeated tasks in a YAML workflow would make sense for managing vendor resources through Terraform, because it connects Terraform to a platform API. The workflow at a network engineer codifying repeated tasks in a YAML workflow must encode the automation workflow; that points to An Ansible playbook written in YAML instead.
Question 10
The evidence from a large playbook targeting routers by inventory group shows that the selected mechanism must group and describe the managed hosts that a playbook targets. Which choice is correct for this use case? Choose ONE.
- Terraform configuration in HCL
- An Ansible inventory
- Terraform state
- Ansible agentless automation
Correct Answer: B
Correct Answer
Answer B is correct because The evidence from a large playbook targeting routers by inventory group points to An Ansible inventory. This choice groups managed hosts and variables. Its normal use is targeting selected device groups. The workflow at a large playbook targeting routers by inventory group requires the engineer to define playbook targets, confirming An Ansible inventory.
Incorrect Answers
Answer D is incorrect because Using Ansible agentless automation at a large playbook targeting routers by inventory group would make sense for automating devices without resident agents, because it uses existing remote management interfaces. The workflow at a large playbook targeting routers by inventory group must define playbook targets; that points to An Ansible inventory instead.
Answer A is incorrect because Using Terraform configuration in HCL at a large playbook targeting routers by inventory group would make sense for describing infrastructure as code, because it declares desired infrastructure resources in HCL. The workflow at a large playbook targeting routers by inventory group must define playbook targets; that points to An Ansible inventory instead.
Answer C is incorrect because Using Terraform state at a large playbook targeting routers by inventory group would make sense for remembering resources between Terraform runs, because it tracks Terraform-managed resource mappings. The workflow at a large playbook targeting routers by inventory group must define playbook targets; that points to An Ansible inventory instead.
Question 11
An engineer working on a team managing switches without installing resident automation software must automate devices through existing remote interfaces without installing resident agents. Which technology, method, or construct provides that behavior most directly? Choose ONE.
- terraform plan
- An Ansible network module
- Ansible agentless automation
- A Terraform provider
Correct Answer: C
Correct Answer
Answer C is correct because The evidence from a team managing switches without installing resident automation software points to Ansible agentless automation. This choice uses existing remote management interfaces. Its normal use is automating devices without resident agents. The workflow at a team managing switches without installing resident automation software requires the engineer to avoid installing endpoint agents, confirming Ansible agentless automation.
Incorrect Answers
Answer B is incorrect because Using An Ansible network module at a team managing switches without installing resident automation software would make sense for executing supported device operations, because it performs a reusable automation task. The workflow at a team managing switches without installing resident automation software must avoid installing endpoint agents; that points to Ansible agentless automation instead.
Answer D is incorrect because Using A Terraform provider at a team managing switches without installing resident automation software would make sense for managing vendor resources through Terraform, because it connects Terraform to a platform API. The workflow at a team managing switches without installing resident automation software must avoid installing endpoint agents; that points to Ansible agentless automation instead.
Answer A is incorrect because Using terraform plan at a team managing switches without installing resident automation software would make sense for reviewing changes before apply, because it previews proposed Terraform changes. The workflow at a team managing switches without installing resident automation software must avoid installing endpoint agents; that points to Ansible agentless automation instead.
Question 12
A cloud-network project declaring resources in Terraform code. The requirement is to declare desired infrastructure resources and attributes in Terraform configuration. Which mechanism should the engineer select? Choose ONE.
- A Terraform provider
- terraform plan
- An Ansible inventory
- Terraform configuration in HCL
Correct Answer: D
Correct Answer
Answer D is correct because The evidence from a cloud-network project declaring resources in Terraform code points to Terraform configuration in HCL. This choice declares desired infrastructure resources in HCL. Its normal use is describing infrastructure as code. The workflow at a cloud-network project declaring resources in Terraform code requires the engineer to declare desired infrastructure state, confirming Terraform configuration in HCL.
Incorrect Answers
Answer A is incorrect because Using A Terraform provider at a cloud-network project declaring resources in Terraform code would make sense for managing vendor resources through Terraform, because it connects Terraform to a platform API. The workflow at a cloud-network project declaring resources in Terraform code must declare desired infrastructure state; that points to Terraform configuration in HCL instead.
Answer B is incorrect because Using terraform plan at a cloud-network project declaring resources in Terraform code would make sense for reviewing changes before apply, because it previews proposed Terraform changes. The workflow at a cloud-network project declaring resources in Terraform code must declare desired infrastructure state; that points to Terraform configuration in HCL instead.
Answer C is incorrect because Using An Ansible inventory at a cloud-network project declaring resources in Terraform code would make sense for targeting selected device groups, because it groups managed hosts and variables. The workflow at a cloud-network project declaring resources in Terraform code must declare desired infrastructure state; that points to Terraform configuration in HCL instead.
Question 13
During a Terraform deployment loading the plugin for its target platform, the engineer needs a capability that will load the integration plugin that communicates with the target platform API. Which option matches the API or automation evidence? Choose ONE.
- A Terraform provider
- An Ansible playbook written in YAML
- Ansible agentless automation
- Terraform state
Correct Answer: A
Correct Answer
Answer A is correct because The evidence from a Terraform deployment loading the plugin for its target platform points to A Terraform provider. This choice connects Terraform to a platform API. Its normal use is managing vendor resources through Terraform. The workflow at a Terraform deployment loading the plugin for its target platform requires the engineer to integrate Terraform with the platform, confirming A Terraform provider.
Incorrect Answers
Answer D is incorrect because Using Terraform state at a Terraform deployment loading the plugin for its target platform would make sense for remembering resources between Terraform runs, because it tracks Terraform-managed resource mappings. The workflow at a Terraform deployment loading the plugin for its target platform must integrate Terraform with the platform; that points to A Terraform provider instead.
Answer B is incorrect because Using An Ansible playbook written in YAML at a Terraform deployment loading the plugin for its target platform would make sense for running ordered configuration workflows, because it defines repeatable automation tasks in YAML. The workflow at a Terraform deployment loading the plugin for its target platform must integrate Terraform with the platform; that points to A Terraform provider instead.
Answer C is incorrect because Using Ansible agentless automation at a Terraform deployment loading the plugin for its target platform would make sense for automating devices without resident agents, because it uses existing remote management interfaces. The workflow at a Terraform deployment loading the plugin for its target platform must integrate Terraform with the platform; that points to A Terraform provider instead.
Question 14
A design review for a production review checking what Terraform intends to change focuses on one requirement: preview intended infrastructure changes before applying them. Which mechanism should the engineer select? Choose ONE.
- Terraform configuration in HCL
- terraform plan
- An Ansible playbook written in YAML
- Ansible agentless automation
Correct Answer: B
Correct Answer
Answer B is correct because The evidence from a production review checking what Terraform intends to change points to terraform plan. This choice previews proposed Terraform changes. Its normal use is reviewing changes before apply. The workflow at a production review checking what Terraform intends to change requires the engineer to preview the pending change set, confirming terraform plan.
Incorrect Answers
Answer C is incorrect because Using An Ansible playbook written in YAML at a production review checking what Terraform intends to change would make sense for running ordered configuration workflows, because it defines repeatable automation tasks in YAML. The workflow at a production review checking what Terraform intends to change must preview the pending change set; that points to terraform plan instead.
Answer D is incorrect because Using Ansible agentless automation at a production review checking what Terraform intends to change would make sense for automating devices without resident agents, because it uses existing remote management interfaces. The workflow at a production review checking what Terraform intends to change must preview the pending change set; that points to terraform plan instead.
Answer A is incorrect because Using Terraform configuration in HCL at a production review checking what Terraform intends to change would make sense for describing infrastructure as code, because it declares desired infrastructure resources in HCL. The workflow at a production review checking what Terraform intends to change must preview the pending change set; that points to terraform plan instead.
Question 15
A JSON payload holding one policy with named attributes receives this payload: {“policy”:”guest”,”enabled”:false}. What JSON structure is the outermost value? Choose ONE.
- A JSON array enclosed in [ ]
- Standard JSON value types
- A JSON object enclosed in { }
- Valid standard JSON syntax
Correct Answer: C
Correct Answer
Answer C is correct because The evidence from a JSON payload holding one policy with named attributes points to A JSON object enclosed in { }. This choice groups named members inside braces. Its normal use is representing one structured record. The workflow at a JSON payload holding one policy with named attributes requires the engineer to identify a JSON object, confirming A JSON object enclosed in { }.
Incorrect Answers
Answer A is incorrect because Using A JSON array enclosed in [ ] at a JSON payload holding one policy with named attributes would make sense for representing a list of items, because it stores ordered values inside brackets. The workflow at a JSON payload holding one policy with named attributes must identify a JSON object; that points to A JSON object enclosed in { } instead.
Answer B is incorrect because Using Standard JSON value types at a JSON payload holding one policy with named attributes would make sense for interpreting JSON primitive and container values, because it represents standard JSON value forms. The workflow at a JSON payload holding one policy with named attributes must identify a JSON object; that points to A JSON object enclosed in { } instead.
Answer D is incorrect because Using Valid standard JSON syntax at a JSON payload holding one policy with named attributes would make sense for sending parser-compatible request bodies, because it follows standard JSON syntax rules. The workflow at a JSON payload holding one policy with named attributes must identify a JSON object; that points to A JSON object enclosed in { } instead.
Question 16
A JSON payload holding multiple policy objects in order receives this payload: [{“vlan”:10},{“vlan”:20},{“vlan”:30}]. What JSON structure is represented by the outermost brackets? Choose ONE.
- Follow the nested JSON hierarchy
- A JSON object enclosed in { }
- A JSON object key/value member
- A JSON array enclosed in [ ]
Correct Answer: D
Correct Answer
Answer D is correct because The evidence from a JSON payload holding multiple policy objects in order points to A JSON array enclosed in [ ]. This choice stores ordered values inside brackets. Its normal use is representing a list of items. The workflow at a JSON payload holding multiple policy objects in order requires the engineer to identify a JSON array, confirming A JSON array enclosed in [ ].
Incorrect Answers
Answer C is incorrect because Using A JSON object key/value member at a JSON payload holding multiple policy objects in order would make sense for reading one object member, because it associates a key with its value. The workflow at a JSON payload holding multiple policy objects in order must identify a JSON array; that points to A JSON array enclosed in [ ] instead.
Answer A is incorrect because Using Follow the nested JSON hierarchy at a JSON payload holding multiple policy objects in order would make sense for locating a nested response value, because it follows keys and array indexes. The workflow at a JSON payload holding multiple policy objects in order must identify a JSON array; that points to A JSON array enclosed in [ ] instead.
Answer B is incorrect because Using A JSON object enclosed in { } at a JSON payload holding multiple policy objects in order would make sense for representing one structured record, because it groups named members inside braces. The workflow at a JSON payload holding multiple policy objects in order must identify a JSON array; that points to A JSON array enclosed in [ ] instead.
Question 17
An engineer interpreting the syntax of “mtu”: 1500 examines this JSON: {“hostname”:”dist1″,”up”:true}. Which statement correctly describes the syntax joining a member name to its value? Choose ONE.
- A JSON object key/value member
- A JSON array enclosed in [ ]
- Standard JSON value types
- Valid standard JSON syntax
Correct Answer: A
Correct Answer
Answer A is correct because The evidence from an engineer interpreting the syntax of “mtu”: 1500 points to A JSON object key/value member. This choice associates a key with its value. Its normal use is reading one object member. The workflow at an engineer interpreting the syntax of “mtu”: 1500 requires the engineer to recognize a key-value member, confirming A JSON object key/value member.
Incorrect Answers
Answer C is incorrect because Using Standard JSON value types at an engineer interpreting the syntax of “mtu”: 1500 would make sense for interpreting JSON primitive and container values, because it represents standard JSON value forms. The workflow at an engineer interpreting the syntax of “mtu”: 1500 must recognize a key-value member; that points to A JSON object key/value member instead.
Answer D is incorrect because Using Valid standard JSON syntax at an engineer interpreting the syntax of “mtu”: 1500 would make sense for sending parser-compatible request bodies, because it follows standard JSON syntax rules. The workflow at an engineer interpreting the syntax of “mtu”: 1500 must recognize a key-value member; that points to A JSON object key/value member instead.
Answer B is incorrect because Using A JSON array enclosed in [ ] at an engineer interpreting the syntax of “mtu”: 1500 would make sense for representing a list of items, because it stores ordered values inside brackets. The workflow at an engineer interpreting the syntax of “mtu”: 1500 must recognize a key-value member; that points to A JSON object key/value member instead.
Question 18
An API response mixing text, numeric, boolean, and null values receives {“port”:443,”secure”:true,”description”:”api”,”error”:null}. Which option correctly identifies the value forms used here? Choose ONE.
- Follow the nested JSON hierarchy
- Standard JSON value types
- A JSON object enclosed in { }
- A JSON object key/value member
Correct Answer: B
Correct Answer
Answer B is correct because The evidence from an API response mixing text, numeric, boolean, and null values points to Standard JSON value types. This choice represents standard JSON value forms. Its normal use is interpreting JSON primitive and container values. The workflow at an API response mixing text, numeric, boolean, and null values requires the engineer to identify JSON value types, confirming Standard JSON value types.
Incorrect Answers
Answer A is incorrect because Using Follow the nested JSON hierarchy at an API response mixing text, numeric, boolean, and null values would make sense for locating a nested response value, because it follows keys and array indexes. The workflow at an API response mixing text, numeric, boolean, and null values must identify JSON value types; that points to Standard JSON value types instead.
Answer C is incorrect because Using A JSON object enclosed in { } at an API response mixing text, numeric, boolean, and null values would make sense for representing one structured record, because it groups named members inside braces. The workflow at an API response mixing text, numeric, boolean, and null values must identify JSON value types; that points to Standard JSON value types instead.
Answer D is incorrect because Using A JSON object key/value member at an API response mixing text, numeric, boolean, and null values would make sense for reading one object member, because it associates a key with its value. The workflow at an API response mixing text, numeric, boolean, and null values must identify JSON value types; that points to Standard JSON value types instead.
Question 19
An engineer tracing a nested site-to-device-to-interface value receives {“fabric”:{“nodes”:[{“id”:”n1″,”links”:[{“state”:”up”}]}]}}. Which interpretation correctly reaches the link state up? Choose ONE.
- A JSON array enclosed in [ ]
- Standard JSON value types
- Follow the nested JSON hierarchy
- Valid standard JSON syntax
Correct Answer: C
Correct Answer
Answer C is correct because The evidence from an engineer tracing a nested site-to-device-to-interface value points to Follow the nested JSON hierarchy. This choice follows keys and array indexes. Its normal use is locating a nested response value. The workflow at an engineer tracing a nested site-to-device-to-interface value requires the engineer to trace the nested hierarchy, confirming Follow the nested JSON hierarchy.
Incorrect Answers
Answer D is incorrect because Using Valid standard JSON syntax at an engineer tracing a nested site-to-device-to-interface value would make sense for sending parser-compatible request bodies, because it follows standard JSON syntax rules. The workflow at an engineer tracing a nested site-to-device-to-interface value must trace the nested hierarchy; that points to Follow the nested JSON hierarchy instead.
Answer A is incorrect because Using A JSON array enclosed in [ ] at an engineer tracing a nested site-to-device-to-interface value would make sense for representing a list of items, because it stores ordered values inside brackets. The workflow at an engineer tracing a nested site-to-device-to-interface value must trace the nested hierarchy; that points to Follow the nested JSON hierarchy instead.
Answer B is incorrect because Using Standard JSON value types at an engineer tracing a nested site-to-device-to-interface value would make sense for interpreting JSON primitive and container values, because it represents standard JSON value forms. The workflow at an engineer tracing a nested site-to-device-to-interface value must trace the nested hierarchy; that points to Follow the nested JSON hierarchy instead.
Question 20
A developer correcting a malformed body before an API call compares candidate request bodies. Which payload is valid JSON? Choose ONE.
- {name:”edge”,enabled:true}
- {‘name’:’edge’,’enabled’:True}
- {“name”:”edge”,”enabled”:true,}
- {“name”:”edge”,”ports”:[1,2,3],”enabled”:true}
Correct Answer: D
Correct Answer
Answer D is correct because For a developer correcting a malformed body before an API call, 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 B is incorrect because For a developer correcting a malformed body before an API call, 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 C is incorrect because For a developer correcting a malformed body before an API call, 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 A is incorrect because For a developer correcting a malformed body before an API call, 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.