Salesforce Certified Platform Developer II — Question 257
If the "PageReference.setRedirect" Apex function is set to True, what type of request is made?
Answer options
- A. Get request
- B. Postback request
- C. If PageReference points to the same controller and subset of extensions, postback request, otherwise get request
Correct answer: A
Explanation
The correct answer is A, as setting 'PageReference.setRedirect' to True results in a Get request being made. Options B and C do not apply in this scenario since a redirect specifically indicates a Get request, not a postback.