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.

12 questions · 11 key rules

Updated 17 November 2026 for CCNA 200-301 v1.1

Key facts

Sample questions

Tap a question to see the answer and the rule behind it.
  1. APIs, config tools1. An application needs to retrieve a device record from a REST API without changing it. Which HTTP method should it use?
    1. POST
    2. DELETE
    3. PATCH
    4. GET
    Show answer and explanation

    Answer: D. GET

    GET retrieves a resource. It is the HTTP method associated with the read operation in CRUD.

    Why the others are wrong

    • 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. APIs, config tools2. An API defines a collection endpoint that accepts new device records. Which HTTP method commonly sends a new record to that endpoint?
    1. POST
    2. GET
    3. DELETE
    4. HEAD
    Show answer and explanation

    Answer: A. POST

    POST commonly submits data to a collection endpoint to create a resource. The API defines how it handles the submitted data.

    Why the others are wrong

    • 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. APIs, config tools3. A client uses HTTP Basic authentication over HTTPS. How are its credentials represented in the Authorization header?
    1. As an encrypted username and password
    2. As a Base64-encoded username and password
    3. As a username and password hashed with SHA-256
    4. As a digitally signed username and password
    Show answer and explanation

    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.

    Why the others are wrong

    • 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. APIs, config tools4. An engineer wants to preview proposed infrastructure changes before applying a Terraform configuration. Which Terraform operation is designed for this?
    1. Apply
    2. Destroy
    3. Import
    4. Plan
    Show answer and explanation

    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.

    Why the others are wrong

    • 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. APIs, config tools5. A team wants to automate configuration on several devices with Ansible. Which two capabilities support this goal? (Choose two.)
    1. Running the same tasks against multiple devices
    2. Connecting to supported devices using SSH
    3. Requiring an Ansible agent on every managed device
    4. Eliminating the need for device credentials
    Show answer and explanation

    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.

    Why the others are wrong

    • 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)

Sign up free

Other CCNA topics

GoConqr Original practice questions, each checked by a second, independent review. Think a question is wrong? Use Report under it.

Independent study resource. Not affiliated with Cisco. These are not real exam questions.

© Visual Maths Resources Ltd

Feedback

What is it about?