Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam MCPA - Level 1 topic 1 question 27 discussion

Actual exam question from Mulesoft's MCPA - Level 1
Question #: 27
Topic #: 1
[All MCPA - Level 1 Questions]

The responses to some HTTP requests can be cached depending on the HTTP verb used in the request.
According to the HTTP specification, for what HTTP verbs is this safe to do?

  • A. PUT, POST, DELETE
  • B. GET, HEAD, POST
  • C. GET, PUT, OPTIONS
  • D. GET, OPTIONS, HEAD
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
http://restcookbook.com/HTTP%20Methods/idempotency/

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Freedox
10 months ago
Selected Answer: D
The answer is D. According to the HTTP specification, it is safe to cache responses for HTTP verbs GET, OPTIONS, and HEAD. This is because these requests are considered "safe" and do not modify or delete any resources on the server. Therefore, caching responses for these requests can improve performance and reduce the number of requests made to the server. However, caching responses for requests that modify or delete resources (such as PUT, POST, and DELETE) can cause issues and should be avoided.
upvoted 1 times
...
vikas_mule
1 year ago
D is correct
upvoted 1 times
...
cuisal92
1 year, 2 months ago
D. GET, OPTIONS, HEAD
upvoted 1 times
...
sirious09
1 year, 3 months ago
Selected Answer: B
B. OPTIONS is not cacheable. https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST
upvoted 1 times
...
calazans
1 year, 9 months ago
Selected Answer: D
GET, OPTIONS, HEAD
upvoted 1 times
...
FL107
1 year, 11 months ago
Answer: B
upvoted 1 times
...
Outdoor25
2 years, 3 months ago
D is correct
upvoted 1 times
...
AB317
2 years, 7 months ago
Answer: D
upvoted 1 times
...
Pavan_Nagineni
2 years, 8 months ago
D. GET, OPTIONS, HEAD
upvoted 2 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 ...