Plat-Dev-301庁エンジン & Plat-Dev-301Y鯉茶Plat-Dev-301Y}のヒット楕は掲械に互く、もちろん栽鯉楕も掲械に互くなります。u瞳をxkする念に、鏡徭の栽鯉楕を曳^しておく駅勣があります。 Plat-Dev-301僥Y創は、リストの匯桑貧に燕幣される駅勣があります。また、Plat-Dev-301僥クイズの栽鯉楕は99イ任后これは暴たちの適薦のY惚であり、ユ`ザ`への恷互のり麗です。暴たちのPlat-Dev-301僥縮可は掲械に互い栽鯉楕を隔つことができ、すべてのメンバ`が恷兜に人の古廷を屶隔するのは粁A議なY惚です。 Plat-Dev-301トレ`ニング笋淋喘井を聞喘する栽は、澓することをお瓩瓩靴泙坑 Salesforce Certified Platform Developer II - Multiple Choice J協 Plat-Dev-301 Y} (Q54-Q59):| # 54
A company has an Apex process that makes multiple extensive database operations and web service callouts. The database processes and web services can take a long time to run and must be run sequentially.
How should the developer write this Apex code without running into governor limits and system limitations?
A. Use Limits class to stop entire process once governor limits are reached.
B. Use Queueable Apex to chain the jobs to run sequentially.
C. Use Apex Scheduler to schedule each process.
D. Use multiple 3zutuze methods for each process and callout.
屎盾B
盾h
Queueable Apex is suitable for complex processes that require chaining jobs to run sequentially. It can handle long-running processes without hitting governor limits, as each chained job runs in a new transaction with its own set of governor limits.
| # 55
A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user's input. When the search is completed, a searchComplete event is fired, with the results put in a results attribute of the event. The component is designed to be used within other components and may appear on a single page more than once.
What is the optimal code that should be added to fire the event when the search has completed?
A)
B)
C)
D)
A. Option D
B. Option C
C. Option B
D. Option A
屎盾C
盾h
The correct code to fire the event when the search has completed in a Lightning component is option B. $A.get("e.c.searchComplete") is the syntax used to get the event, setParams is used to set the parameters, and fire is used to dispatch the event.
| # 56
A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call.
What should a developer do to implement these requirements?
A. Implement platform events.
B. Implement the Queveable interface.
C. Create a future method.
D. Expose an Apex class as e web service.
屎盾D
| # 57
Consider the controller code below that is called from an Aura component and returns data wrapped in a class.
The developer verified that the queries return a single record each and there is error handling in the Aura component, but the component is not getting anything back when calling the controller getSemeData. 'What is wrong?
A. The member's Name and option should not be declared public.
B. The member's Kame and option of the class MyDataWrapper should be annotated with @AuraEnabled also.
C. The member's Name and option should not have getter and setter.
D. Instances of Apex classes, such as MyDatsWrapper, cannot be returned to a Lightning component.
屎盾B
盾h
For the data to be passed back to the Aura component, all properties of the Apex class that are intended to be accessed from the component need to be annotated with @AuraEnabled. Without this annotation, the Aura framework cannot serialize the properties to send them to the front end.
| # 58
Consider the Apex controller below, that is called from an Aura component.
What is wrong with this code?
A. Line 8: method must first serialize the list to JSON before returning
B. Line 6: method must be static
C. Line 1: class must be global8. Lines 1 and 6: class and method must be global
屎盾A
盾h
The method defined in the Apex class must be static to be used as an Aura-enabled method. Aura-enabled methods need to be static because they are called by the Lightning framework without instantiating the class.