nerdexam
Cisco

200-901 · Question #68

RESTCONF supports which three methods? (Choose three.)

The correct answer is B. patch C. put E. get. RESTCONF maps network configuration operations to standard HTTP methods including GET, PUT, and PATCH; lock, get-config, and edit-config are NETCONF RPC operations that do not exist in RESTCONF.

Understanding and Using APIs

Question

RESTCONF supports which three methods? (Choose three.)

Options

  • Alock
  • Bpatch
  • Cput
  • Dget-config
  • Eget
  • Fedit-config

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    93% (28)
  • F
    3% (1)

Why each option

RESTCONF maps network configuration operations to standard HTTP methods including GET, PUT, and PATCH; lock, get-config, and edit-config are NETCONF RPC operations that do not exist in RESTCONF.

Alock

lock is a NETCONF RPC operation used to lock a configuration datastore for exclusive access; RESTCONF has no equivalent lock operation as it relies on HTTP semantics.

BpatchCorrect

PATCH is a valid RESTCONF method defined in RFC 8040 used to apply partial modifications to an existing resource without replacing it entirely.

CputCorrect

PUT is a valid RESTCONF method that creates or fully replaces a target resource at a specified URI, directly mapping to the HTTP PUT semantic.

Dget-config

get-config is a NETCONF RPC operation for reading a specific datastore such as running or candidate; it does not exist in RESTCONF, which uses HTTP GET instead.

EgetCorrect

GET is a core RESTCONF method used to retrieve configuration or operational state data from a resource, mapping directly to the HTTP GET method.

Fedit-config

edit-config is a NETCONF RPC operation for modifying configuration datastores; RESTCONF replaces this with HTTP methods such as PUT, POST, and PATCH.

Concept tested: RESTCONF HTTP methods versus NETCONF RPC operations

Source: https://www.rfc-editor.org/rfc/rfc8040

Topics

#RESTCONF#API Methods#HTTP#Network Programmability

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice