What is a best practice when passing query parameters from user interface to an apex controller?
Suggested Answer: A
Get Premium Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
MI
Mila
12 months ago
Wait, are we really using JSINHTMLENCODE for this? Sounds a bit overkill.
WI
Willodean
12 months ago
Passing to B2B Commerce classes? That’s a bit specific, right?
RE
Rebbecca
12 months ago
Not sure about that backbone model thing... seems unnecessary.
LI
Lizette
1 year ago
I think trimming strings is a must too.
KA
Karan
1 year ago
Definitely agree on sanitizing with JSINHTMLENCODE!
ME
Melissa
1 year ago
I vaguely recall something about query parameters being specific to certain classes, but I can't remember the details. Is that option C?
AL
Aleta
1 year ago
I'm not entirely sure, but I feel like trimming strings is important too. Maybe option B is relevant?
LA
Lauran
1 year ago
I remember we discussed sanitizing inputs in class, so I think option A makes sense.
AN
Annmarie
1 year ago
Storing parameters on a backbone model sounds familiar, but I’m not confident if that’s the best practice here. Could it be option D?
RO
Roosevelt
1 year ago
Okay, let me think this through step-by-step. First, I'll create the lock.yml file with the vault password, then define the two variables. After that, I'll create the secret.txt file as instructed.
AL
Alba
1 year ago
Wait, is it the gateway or the network interface card (NIC)? I'm a little confused on the differences between those two network components.