exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 121 discussion

Actual exam question from Cisco's 200-901
Question #: 121
Topic #: 1
[All 200-901 Questions]

Refer to the exhibit.

Given the API documentation for the UCS SDK Python class, UcsHandle, which code snippet creates a handle instance?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B
Reference:
https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2016/pdf/LTRINI%202020-LG.pdf

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
DavMan
Highly Voted 4 years, 6 months ago
It is B, port should be int
upvoted 79 times
ionycash
3 years, 5 months ago
username= and password= are wrong on B
upvoted 2 times
jowela
3 years, 4 months ago
How are they wrong. They are correct, and they would be correct even if the order was different.
upvoted 8 times
Piji
2 years, 10 months ago
In Python function if the paramerters order is different, you need to name the variable name and value, which in this case the order also is correct, and if you name the value with varialble it is not wrong, it is extra information. The port should be int which in A answer is Str, that is wrong, so B is correct answer.
upvoted 6 times
...
...
...
...
lowfell
Highly Voted 3 years, 10 months ago
DEFINIVELY A See https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2016/pdf/LTRINI%202020-LG.pdf
upvoted 9 times
cchcano
3 years, 3 months ago
in this post the page 10 looks examples and the option B is correct
upvoted 1 times
...
...
mellohello
Most Recent 1 year, 11 months ago
Option 1 is correct. Option 2 is also correct, as the parameters can be specified in any order as long as they are named correctly. Option 3 is incorrect, as the secure parameter should be a boolean value (either True or False), not an integer. Option 4 is a duplicate of option 3.
upvoted 1 times
herrmann69
10 months ago
Option 1 (A) has the port as a string, but it should be an int. Option 2 (B) is correct.
upvoted 3 times
...
...
kalulosu
2 years, 3 months ago
I think A. Not need ip="xx" and hostname +"xx" and Params correct is "secure = true "https://python.hotexamples.com/jp/examples/ucsmsdk.ucshandle/UcsHandle/-/python-ucshandle-class-examples.html
upvoted 1 times
...
macxsz
2 years, 5 months ago
Only B shows port int
upvoted 1 times
...
anagy11
2 years, 8 months ago
Definitely B
upvoted 4 times
...
unnamed23
3 years, 3 months ago
D. in the real exam there are different answer handle = UcsHandle("10.1.2.254","admin","password", port=443, secure=1)
upvoted 3 times
Piji
2 years, 10 months ago
D is wrong, becuase the secure variable is boolean and only can get Ture/False not the int.
upvoted 4 times
...
...
Medra76
3 years, 8 months ago
IT MUST BE "B", because port is integer and the others options have port as String.
upvoted 8 times
...
JimGrayham
3 years, 10 months ago
Answer is B. https://sdbrett.com/post/2018-03-23-intro-to-ucsmsdk/ secure = (bool) True/False not integer
upvoted 5 times
...
blinksink
3 years, 11 months ago
B is correct: In Python we can specify the arg name in the function call and B is the only possibility where Port is an int and not a string.
upvoted 4 times
...
davariganesh
3 years, 11 months ago
B is correct
upvoted 2 times
...
Ruley13
3 years, 11 months ago
Only B is the right one. Port is integer so no ". https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2016/pdf/LTRINI%202020-LG.pdf
upvoted 2 times
...
uerdemk
4 years ago
A iş the correct one.
upvoted 2 times
...
MirNa_007
4 years, 1 month ago
I would say B as the port is not a String. IP, username and password can be also written as attribute='value' according to: https://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/ansible-ucs/
upvoted 4 times
...
svaruniyer
4 years, 2 months ago
Looks to be D
upvoted 2 times
...
DavePaul67
4 years, 2 months ago
My vote is B as if you look at 'skullq' below mentions 'port' is ignored. Then by that rule both 'port' and 'secure' values could be ignored. So A or C would then be valid? B is justified by page 13 of the following document. ip=, username= and password= can be used with handle= https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2017/pdf/LTRDCN-2031-LG.pdf
upvoted 3 times
...
DavePaul67
4 years, 2 months ago
My vote is B as if you look at 'skullq' below mentions 'port' is ignored. Then by that rule both 'port' and 'secure' values could be ignored. So A or C would then be valid? B is justified by page 13 of the following document. ip=, username= and password= can be used with handle= https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2017/pdf/LTRDCN-2031-LG.pdf
upvoted 2 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 ...