exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 79 discussion

Actual exam question from Cisco's 350-901
Question #: 79
Topic #: 1
[All 350-901 Questions]


Refer to the exhibit. An application has been developed to serve the users in an enterprise. After HTTP cache controls are implemented in the application, users report that they receive stale data when they refresh the page. Without removing HTTP cache controls, which change ensures that the users get current data when refreshing the page?

  • A. Add an if-None-Match header that has a value of an Entity Tag.
  • B. Reduce the expire_after value to 60.
  • C. Add an Expires header that has a value of 0.
  • D. Add a Cache-Control header that has a value of no-cache, no-store, must-revalidate.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RukiaTester
Highly Voted 2 years, 4 months ago
D is correct. no-cache: The no-cache request directive asks caches to validate the response with the origin server before reuse. must-revalidate: The must-revalidate response directive indicates that the response can be stored in caches and can be reused while fresh. If the response becomes stale, it must be validated with the origin server before reuse. no-store: The no-store response directive indicates that any caches of any kind (private or shared) should not store this response. From --> https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
upvoted 6 times
...
duracell
Most Recent 1 week, 1 day ago
Selected Answer: A
I'll go with A also.
upvoted 1 times
...
samael666
2 weeks ago
Selected Answer: A
D eliminates cache functions
upvoted 1 times
...
JoeSun
4 months ago
Selected Answer: A
I will go A. Question said that "Without removing HTTP cache controls", D is removing the Cache Control. The only way to do this is add the if-None-Match header and let the client compare whether the current cache is updated or not.
upvoted 1 times
...
NetGirl
1 year, 9 months ago
D is the best answer, But IMO there is no correct answer here because D is effectively disabling caching by no-store option. C is good, but again incorrect, because with Expires, the server has to set a validator i.e. Last-Modified or ETag header which haven't been set here. B is not incorrect, but it just a dumb workaround. A is a good option, but again incomplete because it's up to the client to run a conditional request. D works with our w/o client-side config, so I'd go with D.
upvoted 2 times
...
Teringzooi
1 year, 9 months ago
Selected Answer: D
Answer: D is correct.
upvoted 1 times
...
Safinok
1 year, 9 months ago
D 101%
upvoted 1 times
...
[Removed]
1 year, 10 months ago
Selected Answer: C
I think the right answer is "C", the question says that we can't remove HTTP cache control.
upvoted 1 times
...
designated
1 year, 11 months ago
Selected Answer: D
D is correct
upvoted 3 times
...
__al__
2 years, 3 months ago
I do think D is correct, but why not A? looks like there are 2 possible answers.
upvoted 1 times
designated
1 year, 11 months ago
The A will work only if we import request.add_header to add the header ('If-None-Match') and it is not inside of requests_cache.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago