350-201 · Question #123
Which action should be taken when the HTTP response code 301 is received from a web application?
The correct answer is B. Confirm the resource's location. HTTP 301 means Moved Permanently, indicating the requested resource has a new permanent URI that the client should confirm and use for future requests.
Question
Which action should be taken when the HTTP response code 301 is received from a web application?
Options
- AUpdate the cached header metadata.
- BConfirm the resource's location.
- CIncrease the allowed user limit.
- DModify the session timeout setting.
How the community answered
(43 responses)- A5% (2)
- B91% (39)
- C2% (1)
- D2% (1)
Why each option
HTTP 301 means Moved Permanently, indicating the requested resource has a new permanent URI that the client should confirm and use for future requests.
Updating cached header metadata is associated with cache-control directives and responses such as 304 (Not Modified), not with permanent redirect responses.
HTTP 301 (Moved Permanently) signals that the resource has been permanently relocated to a new URL specified in the Location response header. The correct action is to confirm the resource's new location and update all references accordingly, as the RFC requires future requests to use the new URI.
Increasing the allowed user limit relates to rate limiting or capacity issues indicated by codes like 429 (Too Many Requests) or 503 (Service Unavailable), not by 301.
Modifying session timeout settings is unrelated to HTTP 301 - session management issues are reflected in 401, 403, or application-level responses.
Concept tested: HTTP 301 Moved Permanently status code
Source: https://www.rfc-editor.org/rfc/rfc9110#section-15.4.2
Topics
Community Discussion
No community discussion yet for this question.