Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 15

Which URL represents an invalid approach to pass a parameter to a REST resource?

    Correct Answer: B

    The URL <base-url>/Employees&value=1 is invalid because the ampersand (&) character is not used to initiate query parameters in a URL. Query parameters should be introduced with a question mark (?) and separated by ampersands if there are multiple parameters. The correct format would be <base-url>/Employees?value=1. Other provided URL formats, like using question marks for query parameters, slashes for path parameters, and semicolons for matrix parameters, are valid approaches within RESTful APIs.

Discussion
ciellaf5Option: B

Correct Answer: B

orjavaOption: B

invalid approach is B. (PathParam /x/123 QueryParam /x?v=2 MatrixParam /x;v=2)

peteVlnOption: B

I think that answers A and B use parameters in the URL as query parameter, but de 2nd is incorrect that is the question, so I choose B as correct answer (invalid approach).

devmsalehOption: B

Correct answers are A and C since parameters can be passed either via query param or path variable