WGU D385 EXAM 2 2026 TEST PAPER
PRACTICE QUESTIONS AND COMPREHENSIVE
SOLUTION SET
◉ 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: -
response.headers
◉ How to inspect the Request Headers?. Answer: -
response.request.headers
, ◉ 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: -
response.headers.get("Content-Type")
- 'application/json; charset=utf-8'
◉ What is the difference between response.text and
response.content?. Answer: - respone.text returns the response
content in Unicode
- response.content 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-Transport-Security:
max-age=3600
PRACTICE QUESTIONS AND COMPREHENSIVE
SOLUTION SET
◉ 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: -
response.headers
◉ How to inspect the Request Headers?. Answer: -
response.request.headers
, ◉ 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: -
response.headers.get("Content-Type")
- 'application/json; charset=utf-8'
◉ What is the difference between response.text and
response.content?. Answer: - respone.text returns the response
content in Unicode
- response.content 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-Transport-Security:
max-age=3600