Salesforce Certified Platform Developer II — Question 33

What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)

Answer options

Correct answer: B, D

Explanation

Option B is valid as it correctly uses XML format with the right tags for the parameters. Option D is also valid because it uses a JSON-like structure, correctly matching the expected parameter types. Options A and C are incorrect due to incorrect tag names and missing proper formatting, making them invalid requests.