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
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.
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
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
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."
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!
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.
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
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
...
...
...
...
This section is not available anymore. Please use the main Exam Page.350-701 Exam Questions
Log in to ExamTopics
Sign in:
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.
zeroC00L
Highly Voted 3 years, 1 month ago4pelos
Most Recent 8 months, 1 week agoblacknblue8
1 year, 4 months agoOdorka222
1 year, 6 months agoHDragovich
1 year, 6 months agoiluvmicrosoft
7 months agoJessie45785
1 year, 6 months agostalkr3
1 year, 7 months agoJessie45785
1 year, 7 months agoJessie45785
1 year, 7 months agoJessie45785
1 year, 7 months agoGatPat
1 year, 10 months agootzu1
2 years, 6 months agostalkr3
1 year, 7 months agoilikevenice
2 years, 7 months agojaciro11
2 years, 8 months agojaciro11
2 years, 8 months agodr4gn00t
2 years, 9 months agogabbar
3 years, 1 month agojaciro11
3 years agostalkr3
1 year, 7 months agoasdasd123123iu
2 years, 5 months agoalexyozgat24
1 year, 6 months ago