exam questions

Exam 350-701 All Questions

View all questions & answers for the 350-701 exam

Exam 350-701 topic 1 question 58 discussion

Actual exam question from Cisco's 350-701
Question #: 58
Topic #: 1
[All 350-701 Questions]


Refer to the exhibit. What does the Python script accomplish?

  • A. It authenticates to a Cisco ISE server using the username or ersad.
  • B. It lists the LDAP users from the external identity store configured on Cisco ISE.
  • C. It authenticates to a Cisco ISE with an SSH connection.
  • D. It allows authentication with TLSv1 SSL protocol.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
zeroC00L
Highly Voted 3 years, 1 month ago
i would go with "A" here because: - B cant be correct the GET is going after /ers/config/internaluser which is ISE own User DB - C cant be correct we we take a lookat the "context=" part we see the connection will be build by using the SSL Libary D cant be correct again if we look at the "context" part we see they take the TLSv1.2 from the ssl libary not TLSv1
upvoted 16 times
...
4pelos
Most Recent 8 months, 1 week ago
Correct answer B Note: The purpose of this Python script is used to get the guest users through ISE External RESTful Services (ERS) API. ERS is designed to allow external clients to perform CRUD (Create, Read, Update, Delete) operations on Cisco ISE resources.
upvoted 1 times
...
blacknblue8
1 year, 4 months ago
Selected Answer: A
Option A is the correct one, the answer has a typo .. as I check on other website the "or" should be "of"
upvoted 4 times
...
Odorka222
1 year, 6 months ago
Selected Answer: D
it is the same code from cisco web pages :-) https://developer.cisco.com/docs/identity-services-engine/latest/#!internal-users-get-user-by-id/execution
upvoted 1 times
HDragovich
1 year, 6 months ago
not the same look at "context"part its TLSv1_2 not TLSV1
upvoted 1 times
...
iluvmicrosoft
7 months ago
its eerily similar tho.. and more interesting when you read what the purpose of the script is - thank you!
upvoted 1 times
...
Jessie45785
1 year, 6 months ago
code is not the same, under your link you can clearly see that ssl.PROTOCOL_TLSv1 is listed as a context, in presented question you have ssl.PROTOCOL_TLSv1_2 ... additionally it clearly tell you what this script is used for: ########################################################################### # # # This script demonstrates how to use the ISE ERS internal users # # API by executing a Python script. # # # . . . user = sys.argv[2] # "ersad" os "A" is the correct answer
upvoted 2 times
...
...
stalkr3
1 year, 7 months ago
I think D is the correct one. TLS is backwards-compatible. "After upgrading the default to 1.2, systems using 1.1 and 1.0 will continue to function, so if any of your processing requires 1.0 and 1.1, it will remain available."
upvoted 2 times
...
Jessie45785
1 year, 7 months ago
Selected Answer: A
I am sorry I have to correct myself A is correct - but the word "or" is probably a typo
upvoted 2 times
...
Jessie45785
1 year, 7 months ago
Selected Answer: D
Correct answers is D - A - make nonsense whatsoever - B - It is NOT external LDAP but internal DB - C - it is NOT SSH but restapi Call D - is Correct TLSv1_2 are allowed!
upvoted 2 times
...
Jessie45785
1 year, 7 months ago
Selected Answer: C
see @GetPat - it is clearly C
upvoted 1 times
...
GatPat
1 year, 10 months ago
This code imports the http.client, base64, ssl, and sys modules. The http.client module is used to create an HTTP connection, the base64 module is used to encode the user credentials, and the ssl module is used to create an SSL context. The sys module is used to access command line arguments passed to the script. The code sets the host, user, and password variables to the values of the first, second, and third command-line arguments respectively. It creates an HTTPS connection to the specified host on port 9060 using the http.client.HTTPSConnection class, passing the hostname and port to the constructor and specifying that the connection should use the SSL/TLS protocol version 1. The user credentials are then concatenated and encoded using the base64 module. The encoded credentials are saved in the encodedAuth variable. In summary, this code creates an HTTPS connection to a specified host, using a specified username and password, encoded with base64, and using SSL/TLS protocol version 1.
upvoted 4 times
...
otzu1
2 years, 6 months ago
A "the" username "or" ersad. I think the sysarg function can prompt if i'm not mistaking
upvoted 2 times
stalkr3
1 year, 7 months ago
How does the function takes ersad from the comment?
upvoted 2 times
...
...
ilikevenice
2 years, 7 months ago
This is part of the get-all-internal-users.py script, to extract all internal users from ISE. https://developer.cisco.com/docs/identity-services-engine/v1/#!internal-users-get-all-users/get-all-internal-userspy-source-code
upvoted 3 times
...
jaciro11
2 years, 8 months ago
Selected Answer: B
A discarded C and D also
upvoted 4 times
...
jaciro11
2 years, 8 months ago
user ersad is a comment on the code, so A cannot be
upvoted 4 times
...
dr4gn00t
2 years, 9 months ago
It is A. Only mistake is that user ersad is only a comment in the script. It will use what ever username is given as a second argument.
upvoted 4 times
...
gabbar
3 years, 1 month ago
Correct answer should be D
upvoted 1 times
jaciro11
3 years ago
Man the AUTH is doing with TLSv1.2 WTF Answer is A
upvoted 4 times
stalkr3
1 year, 7 months ago
TLS v1.2 is backwards compatible with v1.0
upvoted 1 times
...
asdasd123123iu
2 years, 5 months ago
A is incorrect because 'ersad' is commented. B is correct answer.
upvoted 2 times
alexyozgat24
1 year, 6 months ago
so i got the point why you are pointing for # comment out but - it is basically not comment out it's for reference sys.argv[1] is calling out ersad. after all other options I think A is make more sense. if the line was starting with #user=sys.argv[1] i would get your point.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago