nerdexam
Cisco

350-501 · Question #312

Refer to the exhibit. What is the purpose of this JSON script?

The correct answer is A. It changes the existing password.. The JSON script, implicitly a NETCONF or RESTCONF payload, targets a user's credentials, specifically modifying the password field for an existing user. This action effectively changes the user's current password to a new one.

Automation and Assurance

Question

Refer to the exhibit. What is the purpose of this JSON script?

Exhibit

350-501 question #312 exhibit

Options

  • AIt changes the existing password.
  • BIt updates a user authentication record.
  • CIt deletes a user's authentication record.
  • DIt confirms a user's login credentials.

How the community answered

(37 responses)
  • A
    86% (32)
  • B
    5% (2)
  • C
    8% (3)

Why each option

The JSON script, implicitly a NETCONF or RESTCONF payload, targets a user's credentials, specifically modifying the `password` field for an existing user. This action effectively changes the user's current password to a new one.

AIt changes the existing password.Correct

The JSON script would contain a request to modify a user's authentication data, specifically targeting the `password` field for an existing user. This operation, typically a PATCH or PUT in a RESTCONF context, effectively changes the existing password associated with that user.

BIt updates a user authentication record.

While a password change is an an update to a user authentication record, option B is too broad; changing an existing password is a more specific and accurate description than generally 'updating a user authentication record'.

CIt deletes a user's authentication record.

Deleting a user's authentication record would involve a DELETE operation on the user object, not a modification of the password field.

DIt confirms a user's login credentials.

Confirming login credentials is an authentication process, typically a POST to a login endpoint or an SSH/NETCONF session initiation, not a data modification script.

Concept tested: RESTCONF/NETCONF JSON payload for password management

Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netconf/configuration/xe-3s/nc-xe-3s-book/nc-restconf.html

Topics

#JSON#API#Password Management#Automation Scripting

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice