Page 1 of 151
1
WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM A, B, C
& STUDY GUIDE LATEST 2024-2025 ACTUAL EXAM QUESTIONS
AND CORRECT ANSWERS ALREADY GRADED A+
WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM A
How many HTTP requests are made for a webpage that contains four web resources? - ANSWER-5. one for the html file and one for each resource four parts of a HTTP request / response - ANSWER--start line -zero or more header fields -empty line -optional message body start line - ANSWER-specifies the HTTP version being used. A REQUESTS start line includes a request type and path;
a RESPONSES start line includes a status code and phrase.header field - ANSWER-keyword followed by a colon and a value. Header fields supply additional information about the request or response message body - ANSWER-contains data being transferred between a web browser and web server.In a REQUEST, the message body may be empty or contain submitted form data.
In a RESPONSE, the message body may contain the requested resource. 1 / 4
Page 2 of 151
2 content-length - ANSWER-number of bytes in the response's message body -the web browser uses the content length to determine how much data to expect from the web server content-type - ANSWER-media type of the response's message body
-common media types: text/css, image/jpeg, application/pdf, video/quicktime
Date - ANSWER-datetime the response was generated by the web server
-Datetime values in HTTP headers are represented in Greenwich Mean Time (GMT), which is equal to Coordinated Universal Time (UTC) last-modified - ANSWER-Datetime the requested resource was last modified on the web server.
-for resources that are dynamically created by the web server, the last modified datetime is often not provided server - ANSWER-identifies the web server software that generated the response
-popular values for Server: Apache, Microsoft-IIS, nginx
Host - ANSWER-the domain name for the requested path
- / 4
Page 3 of 151
3 -some websites are hosted at the same IP address, so the Host field helps the web server determine which websites resource is being requested user-agent - ANSWER-Identifies the browser making the request
-Browsers often identify themselves using a unique string of characters. The User-Agent field may be used by a web server to respond back with different resources depending on which browser made the request. Ex: A desktop page may be sent back to a desktop Chrome browser, but a mobile webpage may be sent back to an iPhone browser.IANA (Internet Assigned Numbers Authority) - ANSWER-a standards organization that manages various internet numbers and symbols, like global IP address allocation, root zone management in DNS, and media types. IANA maintains a list of HTTP headers that are currently active, obsolete, or experimental.how to access Chrome's developer tools (DevTools) - ANSWER-by pressing Ctrl+Shift+i (Windows) or Command-Option-i (Mac) HTTP request method - ANSWER-indicates the desired action to perform on a resource
ex: GET, HEAD, POST, PUT, DELETE
GET - ANSWER-Request a representation of the specified resource.HEAD - ANSWER-request a response identical to GET but without the response body POST - ANSWER-request the web server to accept the message body enclosed in the request as a new resource PUT - ANSWER-request the web server to accept the message body enclosed in the request as a modification of an existing resource 3 / 4
Page 4 of 151
4 DELETE - ANSWER-request the web server to delete the existing resource HTTP response status code - ANSWER-a three digit number that indicates the status of the requested resource
ex: OK, moved permanently, found, not modified, forbidden, not found
browser redirect - ANSWER-when the web server returns a 301 or 302 status code with a Location header indicating the URL the browser should load next
OK - ANSWER-status code: 200
-standard response for a successful request
Moved Permanently - ANSWER-status code: 301
-resource should always be requested at a different URL
Found - ANSWER-status code: 302
-resource should temporarily be requested t a different URL
Not Modified - ANSWER-staus code: 304
-resource has not been modified since the last time the resource was requested
Forbidden - ANSWER-status code: 403
-the web browser does not have permission to access the resource
Not Found - ANSWER-status code: 404
-resource could not be located Internal Server Error - ANSWER-status code: 500
- / 4