CRT-450 Practice Test

CRT-450 Practice Test practice questions, page 14 of 18, with answer review and explanations.

Question 66

A Platform Developer needs to implement a declarative solution that will display the most recent Closed Won date for all Opportunity records associated with an Account. Which field is required to achieve this declaratively?

  1. Roll-up summary field on the Opportunity object
  2. Cross-object formula field on the Opportunity object
  3. Roll-up summary field on the Account object
  4. Cross-object formula field on the Account object

Question 67

Which three statements are true regarding the @isTest annotation? (Choose three.)

  1. A method annotated @isTest(SeeAllData=true) in a class annotated @isTest(SeeAllData=false) has access to all org data.
  2. A method annotated @isTest(SeeAllData=false) in a class annotated @isTest(SeeAllData=true) has access to all org data.
  3. A class containing test methods counts toward the Apex code limit regardless of any @isTest annotation.
  4. Products and Pricebooks are visible in a test even if a class is annotated @isTest(SeeAllData=false).
  5. Profiles are visible in a test even if a class is annotated @isTest(SeeAllData=false).

Question 68

What is the data type returned by the following SOSL search? [FIND `˜Acme*' IN NAME FIELDS RETURNING Account, Opportunity];

  1. List, List<Opportunity>>
  2. Map<sObject, sObject>
  3. List>
  4. Map<Id, sObject>

Question 69

A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task? (Choose two.)

  1. Create a trigger on the Rating object that updates a fields on the Employee object.
  2. Create a lookup relationship between the Rating and Employee object.
  3. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
  4. Create a master-detail relationship between the Rating and Employee objects.

Question 70

Which two SOSL searches will return records matching search criteria contained in any of the searchable text fields on an object? (Choose two.)

  1. [FIND 'Acme*' IN ANY FIELDS RETURNING Account, Opportunity];
  2. [FIND 'Acme*' RETURNING Account, Opportunity];
  3. [FIND 'Acme*' IN ALL FIELDS RETURNING Account, Opportunity];
  4. [FIND 'Acme*' IN TEXT FIELDS RETURNING Account, Opportunity];