D385: FINAL Test Questions With Verified Solutions 100
D385: FINAL Test Questions With Verified Solutions 100% Output from (" ANSWER Response [200] Status Code: 201 - ANSWER - Created - your request was accepted and the resource was created Status Code: 400 - ANSWER - Bad Request - your request is either wrong or missing some information Status Code: 401 - ANSWER - Unauthorized - your request requires some additional permissions Status Code: 404 - ANSWER - Not Found - the requested resource does not exist Status Code: 405 - ANSWER - Method Not Allowed - the endpoint does not allow for that specific HTTP method Status Code: 500 - ANSWER - Internal Server Error - your request wasn't expected and probably broke something on the server side HTTP Header: Accept - ANSWER - what type of content the CLIENT can accept HTTP Header: Content-Type - ANSWER - what type of content the SERVER with RESPOND WITH HTTP Header: User-Agent - ANSWER - what SOFTWARE the CLIENT is using to communicate with the server HTTP Header: Server - ANSWER - what SOFTWARE the SERVER is using to communicate with the client HTTP Header: Authentication - ANSWER - who is calling the API and what credentials they have How to inspect the Response Headers? - ANSWER - rs How to inspect the Request Headers? - ANSWER - rs Example of Custom Headers? - ANSWER - start with 'x' - headers = {"X-Request-Id" : " my-request-id"} What is the default Content-Type most APIs use? - ANSWER - JSON How do you inspect the Content-Type Header? - ANSWER - ("Content-Type") - 'application/json; charset=utf-8' What is the difference between and nt? - ANSWER - returns the response content in Unicode - nt returns the response content in bytes TLS Handshake Steps - ANSWER 1. Cipher Suite Negotiation 2. Key Exchange 3. Server Authentication What are Directives? - ANSWER - key-value pairs - used to parameterize HTTP headers Example of Max-Age Directive? - ANSWER Strict-TransportSecurity: max-age=3600 What is used to tell a browser that it should only be accessed via HTTPS? - ANSWER - HSTS (HTTP Strict-Transport-Security) What Directive redirects HTTP requests to HTTPS? - ANSWER - SECURE_SSL_REDIRECT set to True What setting is used to suspend HTTPS redirects for some URLs? - ANSWER -SECURE_
Written for
- Institution
- D385:
- Course
- D385:
Document information
- Uploaded on
- January 11, 2024
- Number of pages
- 13
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
d385 final test questions with verified soluti
-
d385 final test questions with verified solution