Killtest2022
Uploaded by
27 SLIDES
286 VUES
270LIKES

Valid PDI Study Guide [2022] For Passing Successfully

DESCRIPTION

You can achieve the success with Killtest PDI study guide. We have updated Salesforce certification exam PDI study guide for good learning. You must devote a significant amount of time to studying the actual questions of the updated PDI study guide and concentrating on the PDI exam topics. Spending an excessive amount of time studying Killtest PDI exam questions will only hurt your chances of passing your Platform Developer I PDI exam in the first attempt.

1 / 27

Télécharger la présentation

Valid PDI Study Guide [2022] For Passing Successfully

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PLA TFORM DEVELOPER I Exam PD I Q u e st ions V10 . 0 2 Pl at f orm De v e l op e r I Top ics - Pl at f orm De v e l op e r I 1 / 27

  2. 1. A de ve l op e r cre at e d t he se t hre e Rol l u p S u m m ary f ie l ds in t he cu st om obj e ct , Proj e ct _ct , The de ve l op e r is aske d t o cre at e a ne w f ie l d t hat show s t he rat io be t w e e n re j e ct e d and ap p rove d t im e she e t s f or a g ive n p roj e ct . W hich shou l d t he de ve l op e r u se t o I m p l e m e nt t he bu sine ss re q u ire m e nt in orde r t o m inim iz e m aint e nance ove rhe ad? A . Re cord- t rig g e re d Fl ow B. Form u l a f ie l d C. A p e x Trig g e r D . Proce ss Bu il de r A nsw e r: B Valid PDI Study Guide [2022] For Passing Successfully variou s t yp e s of S al e sf orce Case s. W hich ap p roach can e f f icie nt l y g e ne rat e t he re q u ire d dat a f or e ach u nit t e st ? A . U se @ Te st S e t u p w it h a viod m e t hod. B. Cre at e t e st dat a be f ore Te st . st art Te st ( ) in t he u nit t e st . C. A dd @ isTe st ( se e A l l D at a= t ru e ) at t he st art of t he u nit t e st cl ass. D . Cre at e a nock u sing t he S t u d A PI A nsw e r: A 2 . W hich t hre e st at e m e nt s are t ru e re g arding t race f l ag s? ( Choose t hre e . ) A . S e t t ing t race f l ag s au t om at ical l y cau se de bu g l og s t o be g e ne rat e d. B. Log g ing l e ve l s ove rride t race f l ag s. C. Trace f l ag s ove rride l og g ing l e ve l s. D . I f act ive t race f l ag s are not se t , A p e x t e st s e xe cu t e w it h de f au l t l og g ing l e ve l s. E. Trace f l ag s can be se t in t he D e ve l op e r Consol e , S e t u p , or u sing t he Tool ing A PI . A nsw e r: C, D , E 3. A de ve l op e r ne e ds t o cre at e a base l ine se t of dat a ( A ccou nt s, Cont act s, Produ ct s, A sse t s) f or an e nt ire su it e of t e st al l ow ing t he m t o t e st inde p e nde nt re q u ire m e nt s 4. A de ve l op e r u se s a l oop t o che ck e ach Cont act in a l ist . W he n a Cont act w it h t he Tit l e of “ Boss” is f ou nd, t he A p e x m e t hod shou l d j u m p t o t he f irst l ine of code ou t side 2 / 27

  3. of t he f or l oop . W hich A p e x sol u t ion w il l l e t t he de ve l op e r im p l e m e nt t his re q u ire m e nt ? A . bre ak; B. Cont inu e C. Ne xt D . Exit A nsw e r: A 5. A de ve l op e r has t he f ol l ow ing re q u ire m e nt s: Cal cu l at e t he t ot al am ou nt on an O rde r. Cal cu l at e t he l ine am ou nt f or e ach Line I t e m base d on q u ant it y se l e ct e d and p rice . M ove Line I t e m s t o a dif f e re nt O rde r if a Line I t e m is not st ock. W hich re l at ionship im p l e m e nt at ion su p p ort s t he se re q u ire m e nt s? A . Line I t e m s has a M ast e r- D e t ail f ie l d t o O rde r and t he M ast e r can be re - p are nt e d. B. Line I t e m has a Looku p f ie l d t o O rde r and t he re can be m any Line I t e m s p e r O rde r C. O rde r has a Looku p f ie l d t o Line I t e m and t he re can be m any Line I t e m s p e r O rde r. D . O rde r has a M ast e r- D e t ail f ie l d t o Line I t e m and t he re can be m any Line I t e m s p e r O rde r. A nsw e r: A Valid PDI Study Guide [2022] For Passing Successfully 6. W hat shou l d a de ve l op e r u se t o obt ain t he I d and Nam e of al l t he Le ads. A ccou nt s, and Cont act s t hat hove t he com p any nam e " U nive rsal Cont aine rs" ? A . FI ND ' U nive rsal Cont aine rs' I N Nam e Fie l ds RETU RNI NG l e adj id, nam e ) , accou nt e d, nam e ) , cont act e d, nam e ) B. FI ND U nive rsal Cont aine rs' I N Com p anyNam e Fie t ds RETU RNI NG l e ad{ l d. nam e ) , accou nt e d, nam e ) , cont act e d, nam e ) C. S ELECT l e ad( id, nam e ) . accou nt O d, nam e ) , cont act e d, nam e ) FRO M Le ad, A ccou nt , Cont act W HERE Nam e = " u nive rsal Cont aine rs' D . S ELECT Le ad. id. Le ad. Nam e , A ccou nt . I d, A ccou nt Nam e , Cont act e d, Cont act . Nam e FRO M Le ad, A ccou nt , Cont act W HERE Com p anvNam e * U nive rsal Cont aine rs' A nsw e r: A 7. A de ve l op e r cre at e s a ne w A p e x t rig g e r w it h a he l p e r cl ass, and w rit e s a t e st cl ass t hat onl y e xe rcise s 95% cove rag e of ne w A p e x he l p e r cl ass. Chang e S e t de p l oym e nt t o p rodu ct ion f ail s w it h t he t e st cove rag e w arning : " Te st cove rag e of se l e ct e d A p e x Trig g e r is 0 %, at l e ast 1% t e st cove rag e is re q u ire d" W hat shou l d t he de ve l op e r do t o su cce ssf u l l y de p l oy t he ne w A p e x t rig g e r and he l p e r cl ass? A . Cre at e a t e st cl ass and m e t hods t o cove r t he A p e x t rig g e r 3 / 27

  4. B. Ru n t he t e st s u sing t he ' Ru n A l l Te st s' m e t hod. C. Re m ove t he f al l ing t e st m e t hods f rom t he t e st cl ass. D . I ncre ase t he t e st cl ass cove rag e on t he he l p e r cl ass A nsw e r: C 8 . U nive rsal Cont aine rs w ant s O p p ort u nit ie s t o be l ocke d f rom e dit ing w he n re aching t he Cl ose d/ W on st ag e . W hich t w o st rat e g ie s shou l d a de ve l op e r u se t o accom p l ish t his? Choose 2 answ e rs A . U se a val idat ion ru l e . B. U se a t rig g e r. A nsw e r: A , B Valid PDI Study Guide [2022] For Passing Successfully B. Cre at e and p op u l at e a cu st om f ie l d on t he p are nt obj e ct m arke d as U niq u e C. Cre at e and p op u l at e a cu st om f ie l d on t he p are nt obj e ct m arke d as an Ext e rnal I D . D . Cre at e a cu st om f ie l d on t he chil d obj e ct of t yp e Ext e rnal Re l at ionship . A nsw e r: C 9. W he n a u se r e dit s t he Post al Code on an A ccou nt , a cu st om A ccou nt t e xt f ie l d nam e d " Tim e z one " m u st be u p dat e base d on t he val u e s in a Post al Code ToTim e z one __c cu st om obj e ct . How shou l d a de ve l op e r im p l e m e nt t his f e at u re ? A . Bu il d an A ccou nt A ssig nm e nt Ru l e . B. Bu il d an A ccou nt cu st om Trig g e r. C. Bu il d an accou nt A p p roval Proce ss D . Bu il d an A ccou nt W orkf l ow Ru l e . A nsw e r: B 10 . A de ve l op e r ne e ds t o j oin dat a re ce ive d f rom an int e g rat ion w it h an e xt e rnal syst e m w it h p are nt re cords in S al e sf orce . The dat a se t doe s not cont ain t he S al e sf orce I D s of t he p are nt re cords, bu t it doe s have a f ore ig n ke y at t ribu t e t hat can be u se d t o ide nt if y t he p are nt . W hich act ion w il l al l ow t he de ve l op e r t o re l at e re cords in t he dat a m ode l w it hou t know ing t he S al e sf orce I D ? A . Cre at e a cu st om f ie l d on t he chil d obj e ct of t yp e Fore ig n K e y 11. A sof t w are com p any u se s t he f ol l ow ing obj e ct s and re l at ionship s: • Case : t o handl e cu st om e r su p p ort issu e s • D e f e ct _c: a cu st om obj e ct t o re p re se nt know n issu e s w it h t he com p any' s sof t w are • case _D e f e ct __c: a j u nct ion obj e ct be t w e e n Case and D e f e ct or t o re p re se nt t hat a de f e ct I s a cu st om e r issu e 4 / 27

  5. W hat shou l d be done t o share a sp e cif ic Case - D e f e ct _c re cord w it h a u se r? A . S hare t he Case _D e f e ct _c re cord. B. S hare t he p are nt Case re cord. C. S hare t he p are nt D e f e ct _c re cord. D . S hare t he p are nt Case and D e f e ct _c re cords. A nsw e r: D 12 . G ive n t he f ol l ow ing t rig g e r im p l e m e nt at ion: t rig g e r l e adTrig g e r on Le ad ( be f ore u p dat e ) { f inal I D BU S I NES S _RECO RD TYPEI D = ' 0 12 50 0 0 0 0 0 0 9Q ad' ; f or( Le ad t hisLe ad : Trig g e r. ne w ) { if ( t hisLe ad. Com p any ! = nu l l && t hisLe ad. Re cordTyp e I d ! = BU S I NES S _RECO RD TYPEI D ) { t hisLe ad. Re cordTyp e I d = BU S I NES S _RECO RD TYPEI D ; } } } The de ve l op e r re ce ive s de p l oym e nt e rrors e ve ry t im e a de p l oym e nt is at t e m p t e d f rom S andbox t o Produ ct ion. W hat shou l d t he de ve l op e r do t o e nsu re a su cce ssf u l de p l oym e nt ? A . Ensu re BU S I NES S _RECO RD TYPEI D is re t rie ve d u sing S che m a. D e scribe cal l s. B. Ensu re a re cord t yp e w it h an I D of BU S I NES S _RECO RD TYPEI D e xist s on Produ ct ion p rior t o de p l oym e nt . C. Ensu re BU S I NES S _RECO RD TYPEI D is p u she d as p art of t he de p l oym e nt com p one nt s. D . Ensu re t he de p l oym e nt is val idat e d by a S yst e m A dm in u se r on Produ ct ion. A nsw e r: B Valid PDI Study Guide [2022] For Passing Successfully O ne of t he com p one nt s, cal l e d Tog g l e , has a t og g l e f or Fahre nhe it or Ce l siu s u nit s. A not he r com p one nt , cal l e d Te m p e rat u re , disp l ays t he cu rre nt t e m p e rat u re in t he u nit se l e ct e d in t he Tog g l e com p one nt W he n a u se r t og g l e s f rom Fahre nhe it t o Ce l siu s or vice ve rsa in t he Tog g l e com p one nt , t he inf orm at ion m u st be se nt t o t he Te m p e rat u re com p one nt so t he t e m p e rat u re can be conve rt e d and disp l aye d. W hat is t he re com m e nd w ay t o accom p l ish t his? A . Cre at e a cu st om e ve nt t o handl e t he com m u nicat e be t w e e n t he com p one nt s. B. U se Lig ht ning M e ssag e S e rvice t o com m u nicat e be t w e e n t he com p one nt . C. U se Lig ht ning M e ssag e S e rvice t o com m u nicat e be t w e e n t he com p one nt s. D . The Tog g l e com p one nt shou l d cal l a m e t hod in t he Te m p e rat u re com p one nt . 13. A de ve l op e r cre at e d a w e at he r ap p t hat cont ains m u l t ip l e Lig ht ning w e b com p one nt s. 5 / 27

  6. A nsw e r: A 14. W hich code disp l ays t he cont e nt of Visu al f orce p ag e as PD F? A . < ap e x: p ag e re nde rA s= ” p df ” > B. < ap e x: p ag e re ade ras’ ’ ap p l icat ion/ p df ’ ’ > C. < ap e x: p ag e re ade rA s= ‘ ’ ap p l icat ion/ p df ’ ’ > D . < ap e x: p ag e cont e nt yp e ‘ ’ ap p l icat ion/ p df ’ ’ ) A nsw e r: A 15. G ive n t he f ol l ow ing bl ock code : t ry { List < A ccou nt s> re t rie ve dRe cords = [ S ELECT I d FRO M A ccou nt W HERE W e bsit e = nu l l ]; } cat ch ( Exce p t ion e ) { / / m anag e e xce p t ion l og ic } W hat shou l d a de ve l op e r do t o e nsu re t he code e xe cu t ion is disru p t e d if t he re t rie ve dRe cordsl ist re m ains e m p t y af t e r t he S O Q L q u e ry? A . Che ck t he st at e of t he re t rie ve Re cords variabl e and t hrow a cu st om e xce p t ion if t he variabl e is e m p t y. B. Che ck t he st at e of t he re t rie ve dRe cords variabl e and u se S yst e m . asse rt ( f al se ) if t he variabl e is e m p t y C. Che ck t he st at e of t he re t rie ve dRe cords variabl e and acce ss t he f irst e l e m e nt of t he l ist if t he variabl e is e m p t y. D . Re p l ace t he re t rie ve dRe cords variabl e de cl arat ion f rom f t ou nt t o a sing l e A ccou nt . A nsw e r: B Valid PDI Study Guide [2022] For Passing Successfully 16. How shou l d a de ve l op e r w rit e u nit t e st s f or a p rivat e m e t hod in an A p e x cl ass? A . U se t he S e e A l l D at a annot at ion. B. A dd a t e st m e t hod in t he A p e x cl ass. C. U se t he Te st Visibl e annot at ion. D . M ark t he A p e x cl ass as g l obal . A nsw e r: C 17. A de ve l op e r m u st p rovide cu st om u se r int e rf ace s w he n u se rs e dit a Cont act in e it he r S al e sf orce Cl assic or Lig ht ning Exp e rie nce . W hat shou l d t he de ve l op e r u se t o ove rride t he Cont act ' s Edit bu t t on and p rovide t his f u nct ional it y? A . A Visu al f orce p ag e in S al e sf orce Cl assic and a Lig ht ning com p one nt in Lig ht ning Exp e rie nce B. A Lig ht ning com p one nt in 5al e sf orce Cl assic and a Lig ht ning com p one nt in l ig ht ning Exp e rie nce C. A Visu al f orce p ag e in S al e sf orce Cl assic and a Lig ht ning p ag e in Lig ht ning 6 / 27

  7. Exp e rie nce D . A Lig ht ning p ag e in S al e sf orce Cl assic and a Visu al f orce p ag e in Lig ht ning Exp e rie nce A nsw e r: A 18 . W hat can u se d t o de l e t e com p one nt s f rom p rodu ct ion? A . A chang e se t de p l oym e nt w it h t he de l e t e op t ion che cke d B. A n ant m ig rat ion t ool de p l oym e nt w it h de st ru ct ive chang e s xm l f il e and t he com p one nt s t o de l e t e in t he p ackag e . xm l f il e C. A chang e se t de p l oym e nt w it h a de st ru ct ive chang e s XM L f il e D . A n ant m ig rat ion t ool de p l oym e nt w it h a de st ru ct ive chang e s XM L f il e and an e m p t y p ackag e . xm l f il e A nsw e r: B Valid PDI Study Guide [2022] For Passing Successfully 19. W hat shou l d a de ve l op e r do t o che ck t he code cove rag e of a cl ass af t e r ru nning al l t e st s? A . Vie w t he Code Cove rag e col u m n in t he vie w on t he A p e x Cl asse s p ag e . B. Vie w t he Cl ass t e st Cove rag e t ab on t he A p e x Cl ass re cord. C. vie w t he ove ral l Code Cove rag e p ane l of t he t ab in t he D e ve l op e r Consol e . D . S e l e ct and ru n t he cl ass on t he A p e x Te st Exe cu t ion p ag e A nsw e r: B 2 0 . A t e am of m any de ve l op e rs w ork in t he ir ow n individu al org s t hat have t he sam e conf ig u rat ion at t he p rodu ct ion org . W hich t yp e of org is be st su it e d f or t his sce nario? A . D e ve l op e r S andbox B. D e ve l op e r Edit ion C. Fu l l S andbox D . Part ne r D e ve l op e r Edit ion A nsw e r: A 2 1. W hich act ion m ay cau se t rig g e rs t o f ire ? A . U p dat e s t o Fe e d I t e m s B. Re nam ing or re p l acing a p ickl ist e nt ry C. Chang ing a u se r' s de f au l t division w he n t he t ransf e r division op t ion is che cke d D . Cascading de l e t e op e rat ions A nsw e r: A 7 / 27

  8. 2 2 . W hat are t hre e charact e rist ics of chang e se t de p l oym e nt s? Choose 3 answ e rs A . Chang e se t s can onl y be u se d be t w e e n re l at e d org aniz at ions. B. Chang e se t s can be u se d t o t ransf e r re cords. C. S e nding a chang e se t be t w e e n t w o org s re q u ire s a de p l oym e nt conne ct ion. D . Chang e se t s can de p l oy cu st om se t t ing s dat a. E. D e p l oym e nt is done in a one - w ay, sing l e t ransact ion. A nsw e r: A , B, E 2 3. W hich t hre e code l ine s are re q u ire d t o cre at e a Lig ht ning com p one nt on a Visu al f orce p ag e ? Choose 3 answ e rs A . $Lig ht ning . cre at e Com p one nt B. < ap e x: sl ds/ > C. $Lig ht ning . u se Com p one nt D . $Lig ht ning . u se E. < ap e x: incl u de Lig ht ning / > A nsw e r: A , D , E Valid PDI Study Guide [2022] For Passing Successfully 2 4. A de ve l op e r has a re q u ire m e nt t o cre at e an O rde r W he n an O p p ort u nit y re ache s a " Cl ose d- W on" st at u s. W hich t ool shou l d be u se d t o im p l e m e nt t his re q u ire m e nt ? A . Proce ss Bu il de r B. Lig ht ning Com p one nt C. Lig ht ning D . A p e x t rig g e r A nsw e r: A 2 5. W hich Lig ht ning code se g m e nt shou l d be w rit t e n t o de cl are de p e nde ncie s on a Lig ht ning com p one nt , c: accou nt List , t hat is u se d in a Visu al f orce p ag e ? A ) B) 8 / 27

  9. C) Valid PDI Study Guide [2022] For Passing Successfully D . Pe rf orm t he D M L u sing t he D at abase . u p se rt ( ) m e t hod. A nsw e r: B D ) A . O p t ion A B. O p t ion B C. O p t ion C D . O p t ion D A nsw e r: A 2 6. A de ve l op e r has a Visu al f orce p ag e and cu st om cont rol l e r t o save A ccou nt re cords. The de ve l op e r w ant s t o disp l ay any val idat ion ru l e viol at ion t o t he u se r. How can t he de ve l op e r m ake su re t hat val idat ion ru l e viol at ions are disp l aye d? A . A dd cu at om cont rol l e r at t ribu t e s t o disp l ay t he m e ssag e . B. I ncl u de < ap e x: m e ssag e > on t he Visu al f orce p ag e . C. U se a t ry/ cat ch w it h a cu st om e xce p t ion cl ass. 2 7. U nive rsal Cont aine rs de cide s t o u se p u re l y de cl arat ive de ve l op m e nt t o bu il d ou t a ne w S al e sf orce ap p l icat ion. W hich t hre e op t ions can be u se d t o bu il d ou t t he bu sine ss l og ic l aye r f or t his ap p l icat ion? Choose 3 answ e rs A . Fl ow Bu il de r B. Val idat ion Ru l e s C. Proce ss bu il de r 9 / 27

  10. A nsw e r: A , B, C 2 8 . Cl ou d kicks has a m u l t i- scre e n f l ow t hat it s cal l ce nt e r ag e nt s u se w he n handl ing inbou nd se rvice de sk cal l s. A t one of t he st e p s in t he f l ow , t he ag e nt s shou l d be p re se nt e d w it h a l ist of orde r nu m be rs and dat e s t hat are re t rie ve d f rom an e xt e rnal orde r m anag e m e nt syst e m in re al t im e and disp l aye d on t he scre e n. W hat shou l d a de ve l op e r u se t o sat isf y t his re q u ire m e nt ? A . A n A p e x cont rol l e r B. A n A p e x RES T cl ass C. A n ou t bou nd m e ssag e D . A n invocabl e m e t hod A nsw e r: B Valid PDI Study Guide [2022] For Passing Successfully 31. W he n a u se r e dit s t he Post al Code on an A ccou nt , a cu st om A ccou nt t e xt f ie l d nam e d ' ' Tim e z one ' ' m u st be u p dat e d base d on t he val u e s in a p ost al Code ToTim e z one _c cu st om obj e ct . W hat shou l d be bu il t t o im p l e m e nt t his f e at u re ? A . A ccou nt cu st om t rig g e r B. A ccou nt ap p roval p roce ss C. A ccou nt assig nm e nt ru l e D . A ccou nt w orkf l ow ru l e A nsw e r: A 2 9. W hich st andard f ie l d is re q u ire d w he n cre at ing a ne w cont act re cord? A . Last Nam e B. Nam e C. A ccou nt I d D . First Nam e A nsw e r: A 30 . W hat are t w o charact e rist ics re l at e d t o f orm u l as? Choose 2 answ e rs. A . Form u l a can re f e re nce t he m se l ve s. B. Form u l as are cal cu l at e d at ru nt im e and are not st ore d in t he dat abase . C. Form u l as can re f e re nce val u e s in re l at e d obj e ct s. D . Fie l ds t hat are u se d in a f orm u l a f ie l d can be de l e t e d or e dit e d w it hou t t he f orm u l a. A nsw e r: B, C 10 / 27

  11. 32 . A s p art of a dat a cl e anu p st rat e g y, A W Com p u t ing w ant s t o p roact ive l y de l e t e associat e d op p ort u nit y re cords w he n t he re l at e d A ccou nt is de l e t e d. W hich au t om at ion t ool shou l d be u se d t o m e e t t his bu sine ss re q u ire m e nt ? A . W orkf l ow Ru l e s B. S che du l e d j ob C. Re cord- Trig g e re d Fl ow D . Proce ss Bu il de r A nsw e r: C 33. A de ve l op e r w rit e s a t rig g e r on t he A ccou nt obj e ct on t he be f ore u p dat e e ve nt t hat incre m e nt s a cou nt f ie l d. A w orkf l ow ru l e al so incre m e nt s t he cou nt f ie l d e ve ry t im e t hat an A ccou nt is cre at e d or u p dat e d. The f ie l d u p dat e in t he w orkf l ow ru l e is conf ig u re d t o not re - e val u at e w orkf l ow ru l e s. W hat is t he val u e of t he cou nt f ie l d if an A ccou nt is inse rt e d w it h an init ial val u e of z e ro, assu m ing no ot he r au t om at ion l og ic is im p l e m e nt e d on t he A ccou nt ? A . 1 B. 3 C. 4 D . 2 A nsw e r: D Valid PDI Study Guide [2022] For Passing Successfully 35. W hat shou l d a de ve l op e r do t o che ck t he code cove rag e of a cl ass af t e r ru nning al l t e st s? A . Vie w t he Code Cove rag e col u m n in t he l ist vie w on t he A p e x Cl asse s p ag e . B. Vie w t he Cl ass Te st Pe rce nt ag e t ab on t he A p e x Cl ass f ist vie w m S al e sf orce S e t u p . C. Vie w U se ce de cove rag e p e rce nt ag e f or t he cl ass u sing t he O ve ral l Code Cove rag e p ane l in t he D e ve l op e r Consol e Te st s t ab. D . S e l e ct and ru n t he cl ass on t he A p e x Te st Exe cu t ion p ag e in t he D e ve l op e r Consol e . A nsw e r: B 34. W hich t w o st at e m e nt s are accu rat e re g arding A p e x cl asse s and int e rf ace s? Choose 2 answ e rs A . Cl asse s are f inal by de f au l t . B. I nne r cl asse s are p u bl ic by de f au l t . C. I nt e rf ace m e t hods are p u bl ic by de f au l t . D . A t op - l e ve l cl ass can onl y have one inne r cl ass l e ve l . A nsw e r: C, D 11 / 27

  12. 36. A de ve l op e r re ce ive s an e rror w he n t rying t o cal l a g l obal se rve r- side m e t hod u sing t he ©re m ot e A ct ion de corat or. How can t he de ve l op e r re sol ve t he e rror? A . Chang e t he f u nct ion sig nat u re t o be p rivat e st at ic. B. A dd st at ic t o t he se rve r- side m e t hod sig nat u re . C. A D e corat e t he se rve r- side m e t hod w it h ( st at ic= t ru e ) . D . D e corat e t he se rve r- side m e t hod w it h ( st at ic= f al se ) . A nsw e r: B 37. I f ap e x code e xe cu t e s inside t he e xe cu t e ( ) m e t hod of an A p e x cl ass w he n im p l e m e nt ing t he Bat chabl e int e rf ace , w hich st at e m e nt are t ru e re g arding g ove rnor l im it s? Choose 2 answ e rs A . The A p e x g ove rnor l im it s m ig ht be hig he r du e t o t he asynchronou s nat u re of t he t ransact ion. B. The ap e x g ove rnor l im it s are re se t f or e ach it e rat ion of t he e xe cu t e ( ) m e t hod. C. The A p e x g ove rnor l im it s are re l axe d w hil e cal l ing t he const ru ct or of t he A p e x cl ass. D . The A p e x g ove rnor l im it s cannot be e xce e de d du e t o t he asynchronou s nat u re of t he t ransact ion, A nsw e r: A , B Valid PDI Study Guide [2022] For Passing Successfully 38 . I n t e rm s of t he M VC p aradig m , w hat are t w o advant ag e s of im p l e m e nt ing t he l aye r of a S al e sf orce ap p l icat ion u sing A u ra Com p one nt - base d de ve l op m e nt ove r Visu al f orce ? Choose 2 answ e rs A . S e l f - cont aine d and re u sabl e u nit s of an ap p l icat ion B. Rich com p one nt e cosyst e m C. A u t om at ic code g e ne rat ion D . S e rve r- side ru n- t im e de bu g g ing A nsw e r: A , B 39. Re f e r t o t he f ol l ow ing A p e x code : 12 / 27

  13. Valid PDI Study Guide [2022] For Passing Successfully W hat is t he val u e of x w he n it is w rit t e n t o t he de bu g l og ? A . 0 B. 1 C. 2 D . 3 A nsw e r: C 40 . A de ve l op e r w ant s t o m ark e ach A ccou nt in a List < A ccou nt > as e it he r or I nact ive base d on t he Last M odif ie d f ie l d val u e be ing m ore t han 90 days. W hich A p e x t e chniq u e shou l d t he de ve l op e r u se ? A . A f or l oop , w it h a sw it ch st at e m e nt inside B. A S w it ch st at e m e nt , w it h a f or l oop inside C. A n I f / e l se st at e m e nt , w it h a f or l oop inside D . A f or l oop , w it h an if / e l se st at e m e nt inside A nsw e r: D 41. W hat is a be ne f it of de ve l op ing ap p l icat ions in a m u l t i- t e nant e nvironm e nt ? A . Enf orce d be st p ract ice s f or de ve l op m e nt B. A cce ss t o p re de f ine d com p u t ing re sou rce s C. U nl im it e d p roce ssing p ow e r and m e m ory D . D e f au l t ou t - of - t he - box conf ig u rat ion A nsw e r: D 42 . A de ve l op e r has a VF p ag e and cu st om cont rol l e r t o save A ccou nt re cords. The 13 / 27

  14. de ve l op e r w ant s t o disp l ay any val idat ion ru l e viol at ion t o t he u se r. How can t he de ve l op e r m ake su re t hat val idat ion ru l e viol at ions are disp l aye d? A . A dd cu st om cont rol l e r at t ribu t e s t o disp l ay t he m e ssag e . B. I ncl u de < ap e x: m e ssag e s> on t he Visu al f orce p ag e . C. U se a t ry/ cat ch w it h a cu st om e xce p t ion cl ass. D . Pe rf orm t he D M L u sing t he D at abase . u p se rt ( ) m e t hod A nsw e r: B Exp l anat ion: ht t p s: / / de ve l op e r. sal e sf orce . com / docs/ at l as. e n- u s. p ag e s. m e t a/ p ag e s/ p ag e s_com p re f _m e ssag e . ht m 43. A de ve l op e r w rit e s a sing l e t rig g e r on t he A ccou nt obj e ct on t he af t e r inse rt and af t e r u p dat e e ve nt s. A w orkf l ow ru l e m odif ie s a f ie l d e ve ry t im e an A ccou nt is cre at e d or u p dat e d. How m any t im e s w il l t he t rig g e r f ire if a ne w A ccou nt is inse rt e d, assu m ing no ot he r au t om at ion l og ic is im p l e m e nt e d on t he A ccou nt ? A . 4 B. 1 C. 2 D . 8 A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully u s. p ag e s. m e t a/ p ag e s/ p ag e s_ou t p u t _p df _re nde ras. ht m You can g e ne rat e a dow nl oadabl e , p rint abl e PD F f il e of a Visu al f orce p ag e u sing t he PD F re nde ring se rvice . Conve rt a p ag e t o PD F by chang ing t he < ap e x: p ag e > t ag . < ap e x: p ag e re nde rA s= " p df " > 44. W hich code disp l ays t he cont e nt s of a Visu al f orce p ag e as a PD F? A . < ap e x: p ag e cont e nt Typ e = " p df " > B. < ap e x: p ag e re nde rsA s= " ap p l icat ion/ p df " > C. < ap e x: p ag e cont e nt Typ e = " ap p l icat ion/ p df " > D . < ap e x: p ag e re nde rA s= " p df " > A nsw e r: D Exp l anat ion: ht t p s: / / de ve l op e r. sal e sf orce . com / docs/ at l as. e n- 45. W hich t w o st at e m e nt s are t ru e abou t G e t t e r and S e t t e r m e t hods as t he y re l at e t o Visu al f orce ? A . S e t t e r m e t hods al w ays have t o be de cl are d g l obal . B. The re is no g u arant e e f or t he orde r in w hich G e t t e r m e t hods are cal l e d. C. A corre sp onding S e t t e r m e t hod is re q u ire d f or e ach G e t t e r m e t hod. 14 / 27

  15. D . G e t t e r m e t hods p ass val u e s f rom a cont rol l e r t o a p ag e . A nsw e r: C, D 46. W hat w il l be t he ou t p u t in t he de bu g l og in t he e ve nt of a Q u e ryExe p t ion du ring a cal l t o t he @ q u e ry m e t hod in t he f ol l ow ing Exam p l e ? Valid PDI Study Guide [2022] For Passing Successfully A . Q u e rying A ccou nt s. Q u e ry Exce p t ion. B. Q u e rying A ccou nt s. Cu st om Exce p t ion. C. Q u e rying A ccou nt s. Q u e ry Exce p t ion. D one D . Q u e rying A ccou nt s. Cu st om Exce p t ion D one . A nsw e r: C 47. W hat is t he m axim u m nu m be r of S O Q L q u e rie s u se d by t he f ol l ow ing code ? List < A ccou nt > aList = [ S ELECT I d FRO M A ccou nt LI M I T 5]; f or ( A ccou nt a : aList ) { List < Cont act > cList = [ S ELECT I d FRO M Cont act W HERE A ccou nt I d = : a. I d) ; } A . 5 B. 6 C. 1 D . 2 A nsw e r: B 15 / 27

  16. 48 . A n A p e x m e t hod, g e t A ccou nt s, t hat re t u rns a List of A ccou nt s g ive n a se archTe rm , is avail abl e f or Lig ht ning W e b com p one nt s t o u se . W hat is t he corre ct de f init ion of a Lig ht ning W e b com p one nt p rop e rt y t hat u se s t he g e t A ccou nt s m e t hod? Valid PDI Study Guide [2022] For Passing Successfully A . O p t ion A B. O p t ion B C. O p t ion C D . O p t ion D A nsw e r: A 49. I n t he Lig ht ning U I , w he re shou l d a de ve l op e r l ook t o f ind inf orm at ion abou t a Pau se d Fl ow I nt e rvie w ? A . O n t he Pau se d Row I nt e rvie w s re l at e d List f or a g ive n re cord B. I n t he Pau se d I nt e rvie w s se ct ion of t he A p e x Fl e x Q u e u e C. I n t he syst e m de bu g l og by A l t e ring on Pau se d Row I nt e rvie w D . O n t he Pau se d Row I nt e rvie w s com p one nt on t he Hom e p ag e A nsw e r: B 50 . A de ve l op e r is aske d t o cre at e a Visu al f orce p ag e t hat disp l ays som e A ccou nt f ie l ds as w e l l as f ie l ds conf ig u re d on t he p ag e l ayou t f or re l at e d Cont act s. How shou l d t he de ve l op e r im p l e m e nt t his re q u e st ? A . U se t he < ap e x: re l at e dList > t ag . B. Cre at e a cont rol l e r e xt e nsion. C. U se t he < ap e x: incl u de > t ag . D . A dd a m e t hod t o t he st andard cont rol l e r. A nsw e r: A 16 / 27

  17. 51. M anag e m e nt aske d f or op p ort u nit ie s t o be au t om at ical l y cre at e d f or accou nt s w it h annu al re ve nu e g re at e r t han $1, 0 0 0 , 0 0 0 . A de ve l op e r cre at e d t he f ol l ow ing t rig g e r on t he A ccou nt obj e ct t o sat isf y t his re q u ire m e nt . Valid PDI Study Guide [2022] For Passing Successfully B. D e cl arat ive de ve l op m e nt can be done u sing t he S e t u p U I . C. D e cl arat ive de ve l op m e nt doe s not re q u ire A p e x t e st cl asse s. D . D e cl arat ive code l og ic doe s not re q u ire m aint e nance or re vie w . A nsw e r: B, C U se rs are abl e t o u p dat e t he accou nt re cords via t he U I and can se e an op p ort u nit y cre at e d f or hig h annu al re ve nu e accou nt s. How e ve r, w he n t he adm inist rat or t rie s t o u p l oad a l ist of 179 accou nt s u sing D at a Loade r, I t f ail s w it h syst e m . Exce p t ion e rrors. W hich t w o act ions shou l d t he de ve l op e r t ake t o f ix t he code se g m e nt show n above ? Choose 2 answ e rs A . Che ck if al l t he re q u ire d f ie l ds f or O p p ort u nit y are be ing adde d on cre at ion. B. U se D at abase . q u e ry t o q u e ry t he op p ort u nit ie s. C. M ove t he D M L t hat save s op p ort u nit ie s ou t side t he f or l oop . D . Q u e ry f or e xist ing op p ort u nit ie s ou t side t he f or l oop . A nsw e r: C, D 52 . U nive rsal Cont aine rs w ant s t o asse ss t he advant ag e s of de cl arat ive de ve l op m e nt ve rsu s p rog ram m at ic cu st om iz at ion f or sp e cif ic u se case s in it s S al e sf orce im p l e m e nt at ion. W hat are t w o charact e rist ics of de cl arat ive de ve l op m e nt ove r p rog ram m at ic cu st om iz at ion? Choose 2 answ e rs A . D e cl arat ive de ve l op m e nt has hig he r de sig n l im it s and q u e ry l im it s. 53. W hich t hre e p e r- t ransact ion l im it s have hig he r g ove rnor l im it s in asynchronou s A p e x t ransact ions? A . M axim u m CPU t im e B. M axim u m he ap siz e C. Tot al S O Q L q u e rie s 17 / 27

  18. D . M axim u m e xe cu t ion t im e E. Re cords re t u rne d by S O Q L A nsw e r: A , C, E 54. The f ol l ow ing code snip p e t is e xe cu t e d by a Lig ht ning w e b com p one nt in an e nvironm e nt w it h m ore t han 2 , 0 0 0 l e ad re cords: Valid PDI Study Guide [2022] For Passing Successfully D . Be f ore inse rt A nsw e r: C, D W hich g ove rnor l im it w il l l ike l y be e xce e de d w it hin t he A p e x t ransact ion? A . Tot al nu m be r of D M L st at e m e nt issu e d B. Tot al nu m be r of S O Q L q u e rie s issu e d C. Tot al nu m be r of re cords re t rie ve d by S O Q L q u e rie s D . Tot al nu m be r of re cords p roce sse d as a re su l t of D M L st at e m e nt s A nsw e r: C 55. A de ve l op e r ne e ds t o u p dat e an u nre l at e d obj e ct w he n a re cord g e t s save d. W hich t w o t rig g e r t yp e s shou l d t he de ve l op e r cre at e ? A . A f t e r inse rt B. A f t e r u p dat e C. Be f ore u p dat e 56. U nive rsal Cont aine rs st ore s t he avail abil it y dat e on e ach Line I t e m of an O rde r and O rde rs are onl y ship p e d w he n al l of t he Line I t e m s are avail abl e . W hich m e t hod shou l d be u se d t o cal cu l at e t he e st im at e d ship dat e f or an O rde r? A . U se a CEI LI NG f orm u l a on e ach of t he Lat e st avail abil it y dat e f ie l ds. B. U se a D A YS f orm u l a on e ach of t he avail abil it y dat e f ie l ds and a CO U NT Rol l - U p S u m m ary f ie l d on t he O rde r. 18 / 27

  19. C. U se a LA TES T f orm u l a on e ach of t he l at e st avail abil it y dat e f ie l ds. D . U se a M ax Rol l - U p S u m m ary f ie l d on t he Lat e st avail abil it y dat e f ie l ds. A nsw e r: D 57. A de ve l op e r w ant s t o g e t acce ss t o t he st andard p rice book in t he org w hil e w rit ing a t e st cl ass t hat cove rs an O p p ort u nit yLine I t e m t rig g e r. W hich m e t hod al l ow s acce ss t o t he p rice book? A . U se Te st . l oadD at a ( ) and a st at ic re sou rce t o l oad a st andard p rice book B. U se @ Te st Visibl e t o al l ow t he t e st m e t hod t o se e t he st andard p rice book. C. U se Te st , g e t S t andardPrice bookid ( ) t o g e t t he st andard p rice book I D . D . U se @ I sTe st ( S e e A l l D at a= Tru e ) and de l e t e t he e xist ing st andard p rice book A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully 60 . A de ve l op e r is t aske d w it h p e rf orm ing a com p l e x val idat ion u sing A p e x as p art of advance d bu sine ss l og ic. ce rt ain crit e ria are m e t f or a Pu rchase O rde r, t he de ve l op e r m u st t hrow a cu st om e xce p t ion. W hat is t he corre ct w ay f or t he de ve l op e r t o de cl are a cl ass t hat can be u se d as an e xce p t ion? A . p u bl ic cl ass Pu rchase O rde rExce p t ion im p l e m e nt s Exce p t ion ( ) B. p u bl ic cl ass Pu rchase O rde rExce p t ion e xt e nds Exce p t ion ( ) C. p u bl ic cl ass Pu rchase O rde r im p l e m e nt s Exce p t ion ( ) D . p u bl ic cl ass Pu rchase O rde r e xt e nds Exce p t ion ( ) A nsw e r: B 58 . A de ve l op e r w rot e A p e x code t hat cal l s ou t t o an e xt e rnal syst e m . How shou l d a de ve l op e r w rit e t he t e st t o p rovide t e st cove rag e ? A . W rit e a cl ass t hat e xt e nds HTTPCal l ou t M ock. B. W rit e a cl ass t hat im p l e m e nt s t he HTTPCal l ou t M ock int e rf ace . C. W rit e a cl ass t hat im p l e m e nt s t he W e bse rvice M ock int e rf ace . D . W rit e a cl ass t hat e xt e nds W e bse rvice M ock A nsw e r: B 59. W hat shou l d a de ve l op e r u se t o f ix a Lig ht ning w e b com p one nt bu g in a sandbox? A . D e ve l op e r Consol e B. Force . com I D E C. Exe cu t e A nonu m ou s D . VS Code A nsw e r: D 19 / 27

  20. 61. A de ve l op e r m u st cre at e a S hip p ing Cal cu l at or cl ass t hat cannot be inst ant iat e d and m u st incl u de a w orking de f au l t im p l e m e nt at ion of a cal cu l at e m e t hod, t hat su b- cl asse s can ove rride . W hat is t he corre ct im p l e m e nt at ion of t he S hip p ing Cal cu l at or cl ass? A . Pu bl ic abst ract cl ass S hip p ing Cal cu l at or { p u bl ic ove rride cal cu l at e ( ) { / *im p l e m e nt at ion*/ } } B. Pu bl ic abst ract cl ass S hip p ing Cal cu l at or { p u bl ic virt u al void cal cu l at e ( ) { / *im p l e m e nt at ion*/ } } C. Pu bl ic abst ract cl ass S hip p ing Cal cu l at or { p u bl ic abst ract cal cu l at e ( ) { / *im p l e m e nt at ion*/ } } D . Pu bl ic abst ract cl ass S hip p ing Cal cu l at or { p u bl ic void cal cu l at e ( ) { / *im p l e m e nt at ion*/ } } A nsw e r: B Exp l anat ion: t he e xt e nding cl ass can ove rride t he e xist ing virt u al m e t hods by u sing t he ove rride ke yw ord in t he m e t hod de f init ion. O ve rriding a virt u al m e t hod al l ow s you t o p rovide a dif f e re nt im p l e m e nt at ion f or an e xist ing m e t hod ht t p s: / / de ve l op e r. sal e sf orce . com / docs / at l as. e n- u s. ap e xcode . m e t a/ ap e xcode / ap e x_cl asse s_e xt e nding . ht m Valid PDI Study Guide [2022] For Passing Successfully 62 . A de ve l op e r cre at e d a cu st om orde r m anag e m e nt ap p t hat u se s an A p e x cl ass. The orde r is re p re se nt e d by an O rde r obj e ct and an O rde rl t e m obj e ct t hat has a m ast e r- de t ail re l at ionship t o O rde r. D u ring orde r p roce ssing , an orde r m ay be sp l it int o m u l t ip l e orde rs. W hat shou l d a de ve l op e r do t o al l ow t he ir code t o m ove som e e xist ing O rde rl t e m re cords t o a ne w O rde r re cord? A . Chang e t he m ast e r- de t ail re l at ionship t o an e xt e rnal l ooku p re l at ionship . B. A dd w it hou t sharing t o t he A p e x cl ass de cl arat ion. C. Cre at e a j u nct ion obj e ct be t w e e n O rde rl t e m and O rde r. D . S e l e ct t he A l l ow re p are nt ing op t ion on t he m ast e r- de t ail re l at ionship . A nsw e r: C 63. W hat is t he re su l t of t he f ol l ow ing code ? A . The re cord w il l not be cre at e d and a e xce p t ion w il l be t hrow n. B. The re cord w il l be cre at e d and a m e ssag e w il l be in t he de bu g l og . C. The re cord w il l not be cre at e d and no e rror w il l be re p ort e d. D . The re cord w il l be cre at e d and no e rror w il l be re p ort e d. A nsw e r: C 20 / 27

  21. 64. Re f e r t o t he f ol l ow ing code snip p e t f or an e nvironm e nt has m ore t han 2 0 0 A ccou nt s be l ong ing t o t he Te chnol og y' indu st ry: W he n t he code e xe cu t ion, w hich t w o e ve nt s occu r as a re su l t of t he A p e x t ransact ion? Choose 2 answ e rs A . I f e xe cu t e d in an asynchronou s cont e xt , t he ap e x t ransact ion is l ike l y t o f al l by e xce e ding t he D M L g ove rnor l im it B. The A p e x t ransact ion su cce e ds re g ardl e ss of any u ncau g ht e xce p t ion and al l p roce sse d accou nt s are u p dat e d. C. The A p e x t ransact ion f ail s w it h t he f ol l ow ing m e ssag e . " S O bj e ct row w as re t rie ve d via S O Q L w it hou t q u e rying t he re q u e st e d f ie l d A ccou nt . I s. Te ch__c' ' . D . I f e xe cu t e d I n a synchronou s cont e xt , t he ap e x t ransact ion is l ike l y t o f al l by e xce e ding t he D HL g ove rnor l im it . A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully 65. W hich t hre e w e b t e chnol og ie s can be int e g rat e d int o a Visu al f orce p ag e ? ( Choose t hre e . ) A . J avaS crip t B. CS S C. J ava D . PHP E. HTM L A nsw e r: A , B, E 66. A de ve l op e r has t o ide nt if y a m e t hod in e n A p e x cl ass t hat p e rf orm s re sou rce int e nsive act ions in m e m ory by it e rat ing ove r t he re su l t se t of a S O Q L st at e m e nt on t he accou nt . The m e t hod al so p e rf orm s a S O Q L st at e m e nt t o save t he chang e s t o t he dat abase . W hich t w o t e chniq u e s shou l d t he de ve l op e r im p l e m e nt as a be st p ract ice t o e nsu re t ransact ion cont rol and avoid e xce e ding g ove rnor l im it s? Choose 2 answ e rs A . U se t he @ Re adO nl y annot at ion t o byp ass t he nu m be r of row s re t u rne d by a S O Q L. B. U se Part ial D HL st at e m e nt s t o e nsu re onl y val id dat a is com m it t e d. 21 / 27

  22. C. U se t he D at abase . S ave p oint m e t hod t o e nf orce dat abase I nt e g rit y. D . U se t he S yst e m . Lim it cl ass t o m onit or t he cu rre nt CPU g ove rnor l im it consu m p t ion. A nsw e r: C, D 67. W hich t w o st at e m e nt s are t ru e abou t u sing t he @ t e st S e t u p annot at ion in an A p e x t e st cl ass? Choose 2 answ e rs A . Re cords cre at e d in t he t e st se t u p m e t hod cannot be u p dat e d in individu al t e st m e t hods. B. Q o The @ t e st S e t u p annot at ion is not su p p ort e d w he n t he G isTe st ( S e e A l l D at a= Tru e ) annot at ion is u se d. C. Te st dat a is inse rt e d once f or al l t e st m e t hods in a cl ass. D . A m e t hod de f ine d w it h t he @ t e st S e t u p annot at ion e xe cu t e s once f or e ach t e st m e t hod in t he t e st cl ass and cou nt s t ow ards syst e m l im it s. A nsw e r: B, D Valid PDI Study Guide [2022] For Passing Successfully 68 . A n org has an e xist ing Visu al Fl ow t hat cre at e s an O p p ort u nit y w it h an U p dat e re cords e l e m e nt . A de ve l op e r m u st u p dat e t he Visu al Fl ow al so cre at e d a Cont act and st ore t he cre at e d Cont act ' s I D on t he O p p ort u nit y. A . A dd a ne w G e t Re cords e l e m e nt . B. A dd a ne w Cre at e re cords e l e m e nt . C. A dd a ne w Q u ick A ct ion ( of t yp e cre at e ) e l e m e nt . D . A dd a ne w U p dat e re cords e l e m e nt A nsw e r: B 69. W hich e xce p t ion t yp e cannot be cau g ht ? A . Cal l ou t Exce p t ion B. A cu st om Exce p t ion C. NoA cce ssExce p t ion D . Lim it Exce p t ion A nsw e r: D 70 . A n org t racks cu st om e r orde rs on an O rde r obj e ct and t he it e m s of an O rde r on t he Line I t e m obj e ct . The Line I t e m obj e ct has a M ast e rD e t ail re l at ionship t o t he orde r obj e ct . A de ve l op e r has a re q u ire m e nt t o cal cu l at e t he orde r am ou nt on an O rde r and t he l ine am ou nt on e ach Line it e m base d on q u ant it y and p rice . W hat is t he corre ct im p l e m e nt at ion? A . I m p l e m e nt t he l ine am ou nt as a nu m e ric f orm u l a f ie l d and t he orde r am ou nt as a rol l - u p su m m ary f ie l d. B. W rit e a sing l e be f ore t rig g e r on t he Line I t e m t hat cal cu l at e s t he it e m am ou nt and 22 / 27

  23. u p dat e s t he orde r am ou nt on t he O rde r. C. I m p l e m e nt t he Line am ou nt as a cu rre ncy f ie l d and t he orde r am ou nt as a S U M f orm u l a f ie l d. D . W rit e a p roce ss on t he Line it e m t hat cal cu l at e s t he it e m am ou nt and orde r am ou nt and u p dat e s t he f il e d on t he Line I t e m and t he orde r. A nsw e r: A 71. W hich S al e sf orce f e at u re al l ow s a de ve l op e r t o se e w he n a u se r l ast l og g e d in t o S al e sf orce if re al - t im e not if icat ion is not re q u ire d? A . A synchronou s D at a Cap t u re Eve nt s B. D e ve l op e r Log C. Eve nt M onit oring Log D . Cal e ndar Eve nt s A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully 72 . A de ve l op e r ne e ds t o im p l e m e nt a cu st om S O A P W e b S e rvice t hat is u se d by an e xt e rnal W e b A p p l icat ion. The de ve l op e r choose s t o I ncl u de he l p e r m e t hods t hat are not u se d by t he W e b A p p l icat ion I n t he I m p l e m e nt at ion of t he W e b S e rvice Cl ass. W hich code se g m e nt show s t he corre ct de cl arat ion of t he cl ass and m e t hods? A ) B) C) 23 / 27

  24. D ) A . O p t ion A B. O p t ion B C. O p t ion C D . O p t ion D A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully 73. A de ve l op e r m u st im p l e m e nt a Che ckPaym e nt Proce ssor cl ass t hat p rovide s che ck p roce ssing p aym e nt cap abil it ie s t hat adhe re t o w hat de f ine d f or p aym e nt s in t he Paym e nt Proce ssor int e rf ace . p u bl ic int e rf ace Paym e nt Proce ssor { void p ay ( D e cim al am ou nt ) ; } W hich is t he corre ct im p l e m e nt at ion t o u se t he Paym e nt Proce ssor int e rf ace cl ass? A . Pu bl ic cl ass Che ckPaym e nt Proce ssor im p l e m e nt s Paym e nt Proce ssor { p u bl ic void p ay( D e cim al am ou nt ) { } } B. Pu bl ic cl ass Che ckPaym e nt Proce ssor im p l e m e nt s Paym e nt Proce ssor { p u bl ic void p ay( D e cim al am ou nt ) ; } C. Pu bl ic cl ass Che ckPaym e nt Proce ssor e xt e nds Paym e nt Proce ssor { p u bl ic void p ay( D e cim al am ou nt ) ; } D . Pu bl ic cl ass Che ckPaym e nt Proce ssor e xt e nds Paym e nt Proce ssor { p u bl ic void p ay( D e cim al am ou nt ) { } } A nsw e r: B 74. I n t he f ol l ow ing e xam p l e , w hich sharing cont e xt w il l m yM e t hod e xe cu t e w he n it is invoke d? A . S haring ru l e s w il l be inhe rit e d f rom t he cal l ing cont e xt . B. S haring ru l e s A il be e nf orce d by t he inst ant iat ing cl ass C. S haring ru l e s M l be e nf orce d f or t he ru nning u se r. D . S haring ru l e s w il l not be e nf orce d f or t he ru nning u se r. A nsw e r: A 24 / 27

  25. 75. How doe s t he Lig ht ning Com p one nt f ram e w ork he l p de ve l op e rs im p l e m e nt sol u t ions f ast e r? A . By p roviding an A g il e p roce ss w it h de f au l t st e p s B. By p roviding code re vie w st andards and p roce sse s C. By p roviding de vice - aw are ne ss f or m obil e and de skt op s D . By p roviding chang e hist ory and ve rsion cont rol A nsw e r: C 76. A bu sine ss im p l e m e nt e d a m ag nif icat ion p l an t o e ncou rag e it s cu st om e rs t o w at ch som e e du cat ional vide os. Cu st om e rs can w at ch vide os ove r se ve ral days, and t he ir p rog re ss is re corde d. A w ard p oint s are g rant e d t o cu st om e rs f or al l com p l e t e d vide os. W he n t he vide o is m arke d as com p l e t e d in S al e sf orce , an e xt e rnal w e b se rvice m u st be cal l e d so t hat p oint s can be aw arde d t o t he u se r. A de ve l op e r im p l e m e nt e d t he se re q u ire m e nt s in t he af t e r u p dat e t rig g e r by m aking a cal f t o an e xt e rnal w e b se rvice . How e ve r, a S yst e m . Cal l ou t Exce p t ion is occu rring . W hat shou l d t he de ve l op e r do t o f ix t his e rror? A . S u rrou nd t he e xt e rnal cal l w it h a t ry- cat ch bl ock t o handl e t he e xce p t ion. B. W rit e a RES T se rvice t o int e g rat e w it h t he e xt e rnal w e b se rvice . C. M ove t he cal l ou t t o an asynchronou s m e t hod w it h st ru ct u re ( cal l ou t = t ru e ) annot at ion. D . Re p l ace t he af t e r u p dat e t rig g e r w it h a be f ore inse rt t rig g e r. A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully A . Pu bl ic cl ass D raw List im p l e m e nt s S ort abl e , I m p l e m e nt s D raw abl e { p u bl ic void sort ( ) { / *im p l e m e nt at ion*/ } p u bl ic void draw ( ) { / *im p l e m e nt at ion*/ } ] B. Pu bl ic cl ass D raw List e xt e nds S ort abl e , D raw abl e { p u bl ic void sort ( ) { / *im p l e m e nt at ion*/ } p u bl ic void draw ( ) { / *im p l e m e nt at ion*/ } } C. Pu bl ic cl ass D raw List im p l e m e nt s S ort abl e , D raw abl e { p u bl ic void sort ( ) { / *im p l e m e nt at ion*/ } p u bl ic void draw ( ) { / *im p l e m e nt at ion*/ } } D . Pu bl ic cl ass D raw List e xt e nds S ort abl e , e xt e nds S ort abl e , e xt e nds D raw abl e { p u bl ic void sort ( ) { / *im p l e m e nt at ion*/ } 77. A de ve l op e r m u st cre at e a D raw List cl ass t hat p rovide s cap abil it ie s de f ine d in t he S ort abl e and D raw abl e int e rf ace s. p u bl ic int e rf ace S ort abl e { void sort ( ) ; } p u bl ic int e rf ace D raw abl e { void draw ( ) ; } W hich is t he corre ct im p l e m e nt at ion? 25 / 27

  26. p u bl ic void draw ( ) { / * im p l e m e nt at ion */ } A nsw e r: C 78 . A de ve l op e r has re q u ire m e nt t o w rit e A p e x code t o u p dat e a l arg e nu m be r of accou nt re cords on a nig ht l y basis. The syst e m adm inist rat or ne e ds t o be abl e t o sche du l e t he cl ass t o ru n af t e r bu sine ss hou rs on an as- ne e de d basis. W hich cl ass de f init ion shou l d be u se d t o su cce ssf u l l y im p l e m e nt t his re q u ire m e nt ? A . G l obal inhe rit e d sharing cl ass Proce ssA ccou nt Proce ssor im p l e m e nt s D at abase . Bat chabl e < sO bj e ct > B. G l obal inhe rit e d sharing cl ass Proce ssA ccou nt Proce ss im p l e m e nt s Q u e u e abl e C. G l obal inhe rit e d sharing cl ass Proce ssA ccou nt Proce ss I m p l e m e nt s Q u e u e abl e D . G l oabal inhe rit e d sharing cl ass p roce ssA ccou nt Proce ssor im p l e m e nt s D at abase > Bachabl e < sO bj e ct > S che du l abl e . A nsw e r: C Valid PDI Study Guide [2022] For Passing Successfully C. S e t u p M e nu D . Third- p art y ap p s f rom A p p Exchang e A nsw e r: A 79. G ive n t he f ol l ow ing A p e x st at e m e nt : A ccou nt m yA ccou nt = [ S ELECT I d, Nam e FRO M A ccou nt ]; W hat occu rs w he n m ore t han one A ccou nt is re t u rne d by t he S O Q L q u e ry? A . The variabl e , m yA ccou nt , is au t om at ical l y cast t o t he List dat a t yp e . B. The f irst A ccou nt re t u rne d is assig ne d t o m yA ccou nt . C. The q u e ry f ail s and an e rror is w rit t e n t o t he de bu g l og . D . A n u nhandl e d e xce p t ion is t hrow n and t he code t e rm inat e s. A nsw e r: D 8 0 . A S al e sf orce de ve l op e r w ant s t o re vie w t he ir code chang e s im m e diat e l y and doe s not w ant t o inst al l anyt hing on t he ir com p u t e r or on t he org . W hich t ool is be st su it e d? A . D e ve l op e r Consol e B. S al e sf orce Ext e nsion f or VS Code 26 / 27

  27. G e t f u l l ve rsion of PD I Q &A s 27 / 27

More Related
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer