exam questions

Exam 300-735 All Questions

View all questions & answers for the 300-735 exam

Exam 300-735 topic 1 question 20 discussion

Actual exam question from Cisco's 300-735
Question #: 20
Topic #: 1
[All 300-735 Questions]


Refer to the exhibit. A Python function named "query" has been developed and the goal is to use it to query the service "com.cisco.ise.session" via Cisco pxGrid
2.0 APIs.
How is the function called, if the goal is to identify the sessions that are associated with the IP address 10.0.0.50?

  • A. query(config, secret, "getSessionByIpAddress/10.0.0.50", "ipAddress")
  • B. query(config, "10.0.0.50", url, payload)
  • C. query(config, secret, url, "10.0.0.50")
  • D. query(config, secret, url, '{"ipAddress": "10.0.0.50"}')
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hatsec
10 months, 1 week ago
Answer is D
upvoted 1 times
...
shiiitboi
1 year, 11 months ago
@alainJ, Your idea is right but execution is wrong. If you look at option D closely, the Python dictionary object is string-quoted '{"ipAddress": "10.0.0.50"}' so that it can be encoded and added as parameterized url string
upvoted 2 times
...
ysp9997
2 years, 1 month ago
D https://developer.cisco.com/docs/pxgrid/#!query-for-session-based-on-ip-address/java-sample-code
upvoted 2 times
...
alainJ
2 years, 1 month ago
correct is C since data=str.encode(payload) is used (encode function requires a string, not a python dictionary).
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...