nerdexam
Cisco

300-635 · Question #33

Refer to the exhibit. Cisco Intersight has an NTP server policy called My_NTP_Policy configured that contains a single NTP server pool entry "pool.ntp.org". Which Cisco Intersight API call adds an add

The correct answer is B. HTTP PATCH Method URL: https://intersight.com/api/v1/ntp/Policies/{My_NTP_Policy MOID} Bodytext: { "NtpServers":[ "pool.ntp.org", "10.20.0.1" ]. Option B is correct because modifying an existing resource requires the HTTP PATCH method targeting the specific policy via its MOID (Managed Object ID) in the URL, and the body must include the full array of desired NTP servers - both the existing pool.ntp.org and the new 10.20.

Cisco Intersight

Question

Refer to the exhibit. Cisco Intersight has an NTP server policy called My_NTP_Policy configured that contains a single NTP server pool entry "pool.ntp.org". Which Cisco Intersight API call adds an additional NTP server (10.20.0.1) to the My_NTP_Policy server policy?

Options

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    81% (21)
  • C
    12% (3)
  • D
    4% (1)

Explanation

Option B is correct because modifying an existing resource requires the HTTP PATCH method targeting the specific policy via its MOID (Managed Object ID) in the URL, and the body must include the full array of desired NTP servers - both the existing pool.ntp.org and the new 10.20.0.1 - since the NtpServers field is replaced entirely, not appended.

Option A fails on two counts: POST creates new resources rather than updating existing ones, and it omits the MOID needed to target the specific policy. Option C uses PUT (full resource replacement) without a MOID, so Intersight wouldn't know which policy to update, and it also drops pool.ntp.org entirely. Option D uses the correct PATCH method and MOID URL but passes NtpServers as a plain string instead of an array, and omits the existing server - so pool.ntp.org would be lost.

Memory tip: Think "PATCH the full array to the MOID" - PATCH = partial update, but NTP server lists are replaced, so always include every server you want to keep, and always target the specific object with its MOID.

Topics

#Intersight API#HTTP PATCH Method#NTP Server Policy#REST API Design

Community Discussion

No community discussion yet for this question.

Full 300-635 Practice