nerdexam
Huawei

H12-921_V1.0 · Question #163

Write a Python script to construct a NETCONF message using the ncclient library and configure the system time of the device by calling the API in which of the following options?

The correct answer is C. Atomic APIs. Atomic APIs (C) are the correct choice because NETCONF, used via ncclient, operates at the device level to perform discrete, granular configuration operations - such as setting system time - in a single, targeted transaction. These are called "atomic" because each call…

Data Center Network Automation and Intelligent O&M

Question

Write a Python script to construct a NETCONF message using the ncclient library and configure the system time of the device by calling the API in which of the following options?

Options

  • AIntent API
  • BWeb Services API
  • CAtomic APIs
  • DBusiness APIs

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    85% (22)
  • D
    8% (2)

Explanation

Atomic APIs (C) are the correct choice because NETCONF, used via ncclient, operates at the device level to perform discrete, granular configuration operations - such as setting system time - in a single, targeted transaction. These are called "atomic" because each call configures one specific function and either fully succeeds or fully fails, which is exactly how NETCONF's <edit-config> RPC behaves.

Intent API (A) is wrong because Intent APIs are high-level, business-logic-driven APIs (common in platforms like Cisco DNA Center) that express what you want the network to do, not how to configure a specific device parameter via a protocol like NETCONF.

Web Services API (B) is wrong because this refers broadly to REST/SOAP-based HTTP APIs - a different transport and paradigm from NETCONF, which operates over SSH using XML-encoded RPCs.

Business APIs (D) is wrong because Business APIs operate at the highest abstraction layer, focused on organizational outcomes, not protocol-level device configuration.

Memory tip: Think Atomic = Action on one thing. NETCONF/ncclient makes a precise, one-shot change (like setting the clock) - that's atomic. If the API sounds strategic or high-level (Intent, Business), it's not the one doing the low-level NETCONF work.

Topics

#NETCONF#ncclient#Atomic APIs#Device Configuration

Community Discussion

No community discussion yet for this question.

Full H12-921_V1.0 Practice