Refer to the exhibit. A student is learning Python in the interpret mode. The student enters Python statements and an error message returns. What causes the error?

IT Questions BankCategory: DevNetRefer to the exhibit. A student is learning Python in the interpret mode. The student enters Python statements and an error message returns. What causes the error?

Refer to the exhibit. A student is learning Python in the interpret mode. The student enters Python statements and an error message returns. What causes the error?

  • The host domain name cannot be resolved.
  • The parameter of “verify = True” is missing in the requests.get() method.
  • The certificate cannot be verified with a CA.
  • The resource on the host is not available.

Explanation: When the scheme of the REST API call URL is HTTPS, the connection will perform an SSL handshake between the client and the server with a Certificate Authority (CA). This handshake needs to be successful before the REST API request is even sent to the API server. The SSL handshake could fail if the certificate is invalid or it is self-signed. A user can specify if the SSL verification should be avoided by specifying “verify = False” as a parameter to the Python requests module, requests.get() method. The default is “verify = True”.

Exam with this question: DevNet Associate (Version 1.0) - DevNet Associate (200-901) Certification Practice Exam Answers

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments