CREST Practitioner Security Analyst (CPSA) Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Master the CREST Practitioner Security Analyst Exam. Prepare with quizzes and comprehensive study guides that include tips and explanations. Excel in your certification journey!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which HTTP method can be used to delete a specified resource?

  1. PATCH

  2. DELETE

  3. OPTIONS

  4. TRACE

The correct answer is: DELETE

The correct choice for removing a specified resource in HTTP is the DELETE method. In RESTful web services, the DELETE method is explicitly designed for this purpose. When a client sends a DELETE request to a server, it indicates that it wishes to remove the resource identified by the URI provided in the request. The DELETE method is one of the standard HTTP methods as defined in the HTTP/1.1 specification. When the server successfully processes a DELETE request, it generally responds with a status code indicating the outcome, such as 200 (OK) if the resource was found and deleted, or 404 (Not Found) if the resource does not exist. To provide context, other HTTP methods serve different purposes: PATCH is used for applying partial modifications to a resource, OPTIONS is used to describe the communication options for the target resource, and TRACE is used for diagnostic purposes to perform a message loop-back test along the path to the target resource. Each method serves its own distinct function, which is why DELETE is the appropriate choice for the question related to deleting a resource.