Exams · US
CCNA practice questions: APIs, config tools and JSON
REST APIs, configuration management tools and JSON, including why to use HTTPS to protect API credentials.
Updated 17 November 2026 for CCNA 200-301 v1.1
Key facts
REST-based APIs expose resources through URIs and use stateless requests, each containing the information needed to process it.
Cisco, CCNA Exam v1.1 exam topics, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
CRUD means create, read, update, and delete, commonly mapped to POST, GET, PUT or PATCH, and DELETE, respectively.
Cisco, CCNA Exam v1.1 exam topics, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
PUT commonly replaces a resource, while PATCH applies a partial update.
Cisco, CCNA Exam v1.1 exam topics, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
REST API authentication can use HTTP Basic credentials, API keys, or bearer tokens.
Cisco, CCNA Exam v1.1 exam topics, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
Use HTTPS to protect API credentials and data in transit, because Basic authentication encodes credentials but does not encrypt them.
Cisco, CCNA Exam v1.1 exam topics, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
REST APIs commonly encode request and response data as JSON or XML, with HTTP headers identifying the data format.
Cisco, CCNA Exam v1.1 exam topics, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
Ansible automates configuration and operational tasks using playbooks and can manage devices without installing an agent on them.
Cisco, CCNA Exam v1.1 exam topics, 6.6 Recognize the capabilities of configuration management mechanisms such as Ansible and Terraform
Terraform uses declarative configuration and providers to provision and manage infrastructure resources.
Cisco, CCNA Exam v1.1 exam topics, 6.6 Recognize the capabilities of configuration management mechanisms such as Ansible and Terraform
A JSON object uses braces and contains comma-separated key-value pairs, with each key written as a double-quoted string.
Cisco, CCNA Exam v1.1 exam topics, 6.7 Recognize components of JSON-encoded data
A JSON array uses square brackets and contains an ordered list of comma-separated values.
Cisco, CCNA Exam v1.1 exam topics, 6.7 Recognize components of JSON-encoded data
JSON values can be strings, numbers, objects, arrays, true, false, or null.
Cisco, CCNA Exam v1.1 exam topics, 6.7 Recognize components of JSON-encoded data
Sample questions
1. An application needs to retrieve a device record from a REST API without changing it. Which HTTP method should it use?
- POST
- DELETE
- PATCH
- GET
Answer: D. GET
GET retrieves a resource. It is the HTTP method associated with the read operation in CRUD.
- POST: POST commonly creates a resource or submits data.
- DELETE: DELETE removes a resource.
- PATCH: PATCH applies a partial update to a resource.
Source: Cisco CCNA Exam v1.1 exam topics: topic statements and sub-topics; standard networking knowledge, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
2. An API defines a collection endpoint that accepts new device records. Which HTTP method commonly sends a new record to that endpoint?
- POST
- GET
- DELETE
- HEAD
Answer: A. POST
POST commonly submits data to a collection endpoint to create a resource. The API defines how it handles the submitted data.
- GET: GET retrieves a representation of a resource.
- DELETE: DELETE requests removal of a resource.
- HEAD: HEAD requests response headers without the response body.
Source: Cisco CCNA Exam v1.1 exam topics: topic statements and sub-topics; standard networking knowledge, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
3. A client uses HTTP Basic authentication over HTTPS. How are its credentials represented in the Authorization header?
- As an encrypted username and password
- As a Base64-encoded username and password
- As a username and password hashed with SHA-256
- As a digitally signed username and password
Answer: B. As a Base64-encoded username and password
Basic authentication encodes the username and password with Base64; that encoding is not encryption. HTTPS protects the credentials in transit.
- As an encrypted username and password: Basic authentication does not itself encrypt the credentials.
- As a username and password hashed with SHA-256: Basic authentication does not require a SHA-256 credential hash.
- As a digitally signed username and password: Basic authentication does not digitally sign the credentials.
Source: Cisco CCNA Exam v1.1 exam topics: topic statements and sub-topics; standard networking knowledge, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
4. An engineer wants to preview proposed infrastructure changes before applying a Terraform configuration. Which Terraform operation is designed for this?
- Apply
- Destroy
- Import
- Plan
Answer: D. Plan
A Terraform plan previews proposed changes based on the configuration and current state. The engineer can review the plan before applying it.
- Apply: Apply carries out proposed changes.
- Destroy: Destroy removes Terraform-managed resources.
- Import: Import associates an existing resource with Terraform state.
Source: Cisco CCNA Exam v1.1 exam topics: topic statements and sub-topics; standard networking knowledge, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)
5. A team wants to automate configuration on several devices with Ansible. Which two capabilities support this goal? (Choose two.)
- Running the same tasks against multiple devices
- Connecting to supported devices using SSH
- Requiring an Ansible agent on every managed device
- Eliminating the need for device credentials
Answer: A. Running the same tasks against multiple devices, B. Connecting to supported devices using SSH
Ansible can run tasks against multiple managed devices and connect to supported devices using SSH. This lets a team automate repeated configuration work.
- Requiring an Ansible agent on every managed device: Ansible does not require an agent on every managed device.
- Eliminating the need for device credentials: Ansible still needs appropriate credentials when a connection requires them.
Source: Cisco CCNA Exam v1.1 exam topics: topic statements and sub-topics; standard networking knowledge, 6.5 Describe characteristics of REST-based APIs (authentication types, CRUD, HTTP verbs, and data encoding)