salesforce platform developer i study guide

Upload: simon-plumaj

Post on 24-Feb-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    1/13

    Salesforce Platform Developer Study guide

    Whiteboard

    Database Classo Database.delete(myList, false);o DMLs opt all or o e. (true! o e fails all fail) (false! o e fails, others"o #t)

    Limits Classo get$ggregate%ueries(), getLimit$ggregate%ueries(); &sed to

    determi e limits of S'%L uerieso getDMLstateme ts(), getLimitDMLstateme ts(); &sed to determi e

    limits of dml stateme ts Schema class

    o 'btai i g record types pic*list valueso +d dev ecord-ype+d Schema. S'b/ect-ype. $ccou t.

    get ecord-ype+ fos0y1ame(). get(2Developme t2). get ecord-ype+d();o

    Schema.Describe3ield esult 4eld esult '5ceLocatio 66c.7ou try66c.getDescribe();List8Schema.Pic*list9 try: pic*List 4eld esult.getPic*list alues();

    Controller extensionso &se fu ctio ality of sta dard co troller but over"rite or add actio so 9

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    2/13

    o 1ullPoi ter9

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    3/13

    ?. What is the value of 2; i 8 =@>; iJJ) C

    $ccou t acc e" $ccou t();

    i sert acc;

    catch (9

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    4/13

    $ccou t a? e" $ccou t();

    i sert a?;

    $. =>=0. =>?7. ?@?D. =>>

    a. $ o ymous ape< processes DMLs at the same time. Iits =@>dml limit

    K. What is a correct e

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    5/13

    a. List e

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    6/13

    D. Database. + sert (aList, System. $779P-6S'M96 'WS);

    BB Nared Mi*e 7 T

    =>. Which of the follo"i g ca you see i the 7hec*poi ts tabG

    $. 1amespace0. 9

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    7/13

    =H. Whe ueryi g child relatio ships, ho" ma y levels ca you traverseG

    $. H0. O

    7. = a. Pare t to child limitD. @

    a. 7hild to pare t limit

    =K. Which of the follo"i g is the best practice for avoidi g limits i a trigger(choose ?)!

    $. &se a Set to e sure u i ue ess of records0. &se a future call to asy chro ously ma*e DML stateme ts7. Sy chro ously ma*e "eb service calloutsD. &se a Map to store ueried records

    =@. Which of the follo"i g is true regardi g cha ge sets (choose H)!

    $. + order to deploy, a deployme t co ectio must e

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    8/13

    = . ...Light i g... (7hoose ?) T Steve ! + thi * it "as as*i g about "here theco troller logic is.

    $. -hirdBparty /avascript

    0. -hirdBparty "eb service7. Navascript co trollera. Lighti g allo"s developers to de4 e clie t side co trollers.

    D. isualforce co troller

    =R. Where do you create a ma aged pac*ageG

    $. & limited 9ditio0. Developer 9ditio

    a. -his is a re uireme t for ma aged pac*ages7. Developer Sa dbo. Which of the follo"i g are best practices for retrievi g record types a dpic*list values o 7ase ob/ects i ape< codeG (7hoose ?)

    $. %uery the case ob/ect a d get the record types0. %uery the case ob/ect a d get the pic*list values7. &se schema call to get the record types (the actual a s"er has the

    code sy ta

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    9/13

    ?H. Which of the follo"i g are possible retur types for a ueryG (7hoose H)

    $. + teger0. List8s'b/ect:7. s'b/ectD. Stri g9. 0oolea

    ?K. Which of the follo"i g ca you do "ith formula 4elds (7hoose H)

    $. &se the L''A&P fu ctio to access 4elds from other ob/ects0. &se the +3 fu ctio to choose bet"ee three images7. &se the P +' $L&9 fu ctio to see the previous value of a 4eldD. &se the IQP9 L+1A fu ctio to create a li * to access e

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    10/13

    public stri g strMethod=() C

    retur myStri g;

    public stri g strMethod?() C

    if (myStri g ull) C

    myStri g 2strMethod?2;

    retur myStri g;

    $. XIello, , strMethod?, IelloX0. X, , strMethod?, strMethod?X7. XIello, , strMethod?, XD. XIello, strMethod?, strMethod?, IelloX

    ? . +f usi g Data Loader to import data from a csv, if you "a t the import toupdate records i the org, "hich 4elds types "ould you useG (+ do 2tremember the e

    H>. What is the mi imum log level eeded to sho" user ge erated debugstateme ts

    $. +13'0. D90&

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    11/13

    a. 'rder from lo"est to highest is!b. 1'19c. 9 'd. W$ 1e. +13'f. D90&g. 3+19h. 3+19i. 3+19S-

    7. W$ 1D. 3+19

    BB Steve BB

    H=. -he developer has created custom setti gs "hich co tai the & L to eachuser2s page. Io" "ould you display them o a visual force pageG

    $. CYZSetup.7lie t66c.&ser& L66cUCZPro4le.+d V0. CYZSetup.7lie t66c.&ser& L66cUCPro4le.+d V7. CYZSetup.7lie t66c.&ser& L66cD. CYZSetup.7lie t66c.&ser& L66cUCYZPro4le.+d V

    H?. $ orga iEatio "a t to utiliEe custom ob/ects for Nob listi gs a dapplicatio s. Nob see*ers ca o ly apply o e applicatio to a /ob listi g. $ftera applicatio is applied to a /ob listi g, the /ob see*er ca ot cha ge theapplicatio to poi t to a other /ob listi g. What type of relatio ship "ouldmeet these re uireme tsG

    $. MasterBDetail relatio ship o Nob Listi g ob/ect to the $pplicatioob/ect.

    0. MasterBDetail relatio ship o $pplicatio ob/ect to the Nob Listi gob/ect.

    7. Loo*up relatio ship o Nob Listi g ob/ect to the $pplicatio ob/ect.D. Loo*up relatio ship o $pplicatio ob/ect to the Nob Listi g ob/ect.

    HH. Io" ca "e e sure that "he a 'pportu ity record2s 7loseDate 4eld isset, that a Descriptio 4eld must be give a valueG

    $. alidatio rules0. 3ormula 3ields7. Wor*Fo" alertsD. Ma*e it a re uired 4eld

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    12/13

    HK. $ developer eeds to override the edit butto o the accou t page to alsoru validatio o the address. What type of co troller "ould they use toaccomplish thisG

    $. Sta dard 7o troller0. Sta dard 9

  • 7/25/2019 Salesforce Platform Developer I Study Guide

    13/13

    D. 7reate a Wor*Fo" that "ill create a related list o $ccou t of 7o tact2s -as*s

    HR. Which of the follo"i g should ot be do e i side a proceduralBloopG

    (7hoose ?)$. &pdate co tactList;0. List8$ccou t: accou tList US9L97- +d 3 'M $ccou t Limit =V;7. if (a.$ccou t+d o.+d);D. 0oolea is$ctive false;

    K>. Whe usi g variables i a class "hich of the follo"i g are appropriateG(7hoose H)

    $. Parallel bloc*s ca use the same variable ame

    0. Sub bloc*s ca use a pare t bloc*s static variable ame as lo g as it isset to ull7. ariables ca be declared at a y poi tD. Sub bloc*s ca ot reuse a pare t bloc*2s variable ame

    8& 4 ished:

    K=. What are thi gs that a developer must *eep i mi d "he deali g "ith amultiBte a t e viro me tG (+ ca barely remember this uestio )

    $. over or limits

    0. Polyglot. $llo"s for multiple la guage support across multiple orgs7. Security e forcedD. ot sure

    8 & 4 ished:

    BBBBB 9ric BBBBB

    K?. Whe creati g a 7o tact record programatically "hat 4eld is re uiredG

    $. $ccou t+d0. Last1ame7. 3irst1ameD. Maili gStreet