Free DEV-450 Exam Braindumps (page: 17)

Page 17 of 95

An apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? Choose 2 answers

  1. Use the database class to handle DML operations
  2. Use maps to reference related records
  3. Use SOQL aggregate queries to retrieve child records
  4. Use lists for all DML operations

Answer(s): B,D



A developer needs to create records for the object Property__c. The developer creates the following code block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) { //exception
handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?

  1. Database.insert(propertiesToCreate, false);
  2. insert propertiesToCreate;
  3. Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);
  4. Database.insert(propertiesToCreate);

Answer(s): A



hat are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers

  1. Create a visualforce page that uses a controller class that is declared without sharing
  2. Type code into the developer console and execute it directly
  3. Type code into the execute anonymous tab in the force.com IDE and click execute
  4. Use the SOAP API to make a call to execute anonymous code
  5. Create and execute a test method that does not specify a runas() call

Answer(s): B,C,D



A developer has the following code:try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' List Exception ');} catch (NullPointerException npe) {System.debug('
NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged?

  1. List Exception
  2. NullPointer Exception
  3. Generic Exception
  4. No message is logged

Answer(s): B



Page 17 of 95



Post your Comments and Discuss Salesforce DEV-450 exam with other Community members:

Bhuppi commented on December 18, 2024
my exam is on 22nd of DEC.
Anonymous
upvote

Sangeeta commented on December 06, 2024
Want to attempt pd1 exam
UNITED STATES
upvote

xyz commented on August 16, 2024
will post once complete the exam
Anonymous
upvote

abcdef commented on August 10, 2024
Will post once exam done
Anonymous
upvote

UK commented on August 06, 2024
will post once complete the exam
Anonymous
upvote

AP commented on June 14, 2024
will post once complete the exam
ROMANIA
upvote

Lp commented on June 09, 2024
will post once complete the exam
UNITED STATES
upvote

jsb commented on May 17, 2024
will post once complete the exam
Anonymous
upvote

chitti robbo commented on April 22, 2024
will post once complete the exam
Anonymous
upvote

Jamin commented on February 13, 2024
While I did pass my exam using these questions but I noticed a couple of answers were not correct. The questions however are word by word.
INDIA
upvote

hi commented on October 05, 2023
will post exam has finished
UNITED STATES
upvote

NRI commented on August 27, 2023
will post once the exam is finished
UNITED STATES
upvote

Dev commented on January 09, 2024
Will post once I complete the Exam
Anonymous
upvote

hi commented on October 05, 2023
Will post exam has finished
UNITED STATES
upvote

NRI commented on August 27, 2023
Will post once the exam is finished
UNITED STATES
upvote