Free CRT-450 Exam Braindumps
Certified Platform Developer Questions 186–190 (page: 39)

Updated On: 10-Feb-2026

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 2 answers

  1. Create a master-detail relanstionship between the rating and employee object
  2. Create a trigger on the rating object that updates a field on the employee object
  3. Create a roll-up sumary field on the employee and use avg to calculate the average rating score
  4. Create a lookup realntionship beteween the rating and employee object

Answer(s): A,C



Which statement is true about a hierarchical relationship as it pertains to user records?

  1. It uses a junction object and lookup relationships to allow many user records to be related to many other user records
  2. It uses a junction object and master-detail relationship to allow many user records to be related to many other user records
  3. It uses a master-detail relationship to allow one user record to be related to another user record
  4. It uses a special lookup relationship to allow one user record to be related to another user record

Answer(s): D



A developer needs to include a Visualforce page in the detail section of a page layout for the Account object, but does not see the page as an available option in the Page Layout Editor. Which attribute must the developer include in the <apex:page> tag to ensure the Visualforce page can be embedded in a page layout?

  1. Action="AccountId"
  2. StandardController="Account"
  3. Extensions="AccountController"
  4. Controller="Account"

Answer(s): B



Which statement should a developer avoid using inside procedural loops? (Choose 2)

  1. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );
  2. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];
  3. If(o.accountId == a.id)
  4. Update contactList;

Answer(s): B,D



Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers.

  1. Throw Exception (new MissingFieldValueException());
  2. Throw (MissingFieldValueException, 'Problem occurred');
  3. Throw new MissingFieldValueException();
  4. Throw new MissingFieldValueException ('Problem occurred');

Answer(s): C,D



Viewing page 39 of 77
Viewing questions 191 - 195 out of 439 questions


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

AI Tutor AI Tutor 👋 I’m here to help!