New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 10 Question 2 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 2
Topic #: 10
[All Salesforce Certified Platform Developer II (Plat-Dev-301) Questions]

Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List getStringArray() { Line 7 Strings+ arrayItems = new String*+, 'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Garry
4 months ago
I think the method needs to serialize the list, right?
upvoted 0 times
...
Jacqueline
4 months ago
Line 8 looks fine to me, what's the issue?
upvoted 0 times
...
Kerry
4 months ago
Wait, is the method supposed to be static?
upvoted 0 times
...
Nickie
4 months ago
Totally agree, it needs to be global for Aura.
upvoted 0 times
...
Mary
4 months ago
The class should be global, not public.
upvoted 0 times
...
Jettie
5 months ago
I thought the class just needed to be public, but now I’m questioning if it should be global too. This is tricky!
upvoted 0 times
...
Emily
5 months ago
I’m not sure, but I feel like the return type might need to be serialized to JSON. That sounds familiar from our last review session.
upvoted 0 times
...
Arlyne
5 months ago
I remember practicing a question where the method had to be static. Could that be the issue here?
upvoted 0 times
...
Una
5 months ago
I think there’s something off about the access modifiers. Wasn't there a rule about classes needing to be global for Lightning components?
upvoted 0 times
...
Alyce
5 months ago
I've got this! The two source types for a Tableau CRM recipe are Existing datasets and Records from a Salesforce object. Easy peasy.
upvoted 0 times
...
Chauncey
5 months ago
I'm pretty confident this has to do with the VTEP (VXLAN Tunnel Endpoint). The VTEP is responsible for encapsulating and decapsulating the VXLAN frames, so it should be handling the Layer 2 isolation.
upvoted 0 times
...
Cathrine
5 months ago
I think the Cortex XSOAR TA App for Splunk is the way to go here. That should give us the integration we need to push alerts from Splunk into XSOAR.
upvoted 0 times
...

Save Cancel