CRT-450 Exam Question 1

An Apex transaction inserts 100 Account records and 2,000 Contact records before encountering a DML exception when attempting to insert 500 Opportunity records.
The Account records are inserted by calling the database.insert() method with the allOrNone argument set to false. The Contact and Opportunity records are inserted using the standalone insert statement.
How many total records will be committed to the database in this transaction?
  • CRT-450 Exam Question 2

    A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.
    Change Set deployment to production fails with the test coverage warning:
    "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required." What should the developer do to successfully deploy the new Apex trigger and helper class?
  • CRT-450 Exam Question 3

    A developer is debugging the following code to determine why Accounts are not being created.
    Account a = new Account(Name = 'A');
    Database.insert(a, false);
    How should the code be altered to help debug the issue?
  • CRT-450 Exam Question 4

    A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each job posting in the schema for the organization?
  • CRT-450 Exam Question 5

    A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) {
    /*implementation*/ } } Which is the correct implementation?