350-901 · Question #11
The response from a server includes the header ETag: W/"7e0808a419e371767916ef1360d8e83d". Which statement is true?
The correct answer is B. The ETag has a Weak validator directive, which is an optional directive. An ETag prefixed with W/ indicates a weak validator, and the W/ prefix itself is optional per RFC 7232.
Question
Options
- AThe ETag has a Strong validator directive.
- BThe ETag has a Weak validator directive, which is an optional directive.
- CThe ETag has a Weak validator directive, which is a mandatory directive.
- DThe ETag has a Strong validator directive, which it is incorrectly formatted.
How the community answered
(27 responses)- B93% (25)
- C4% (1)
- D4% (1)
Why each option
An ETag prefixed with W/ indicates a weak validator, and the W/ prefix itself is optional per RFC 7232.
The absence of W/ indicates strong validation; the W/ prefix explicitly marks this as weak.
The W/ prefix in an ETag value designates it as a weak validator, meaning it indicates semantic equivalence rather than byte-for-byte identity. Per RFC 7232, the W/ prefix is optional - its absence denotes a strong ETag, while its presence denotes a weak one. There is no requirement to include it for weak validation to be supported.
The W/ prefix is optional, not mandatory - a server can choose whether to send weak or strong ETags.
The ETag is correctly formatted as a weak validator with the W/ prefix followed by a quoted string.
Concept tested: HTTP ETag weak vs strong validator directives
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
Topics
Community Discussion
No community discussion yet for this question.