CRT-450 Practice Test

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

Question 31

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. Which three attributes need to be defined with values in the tag to accomplish this? (Choose three.)

  1. action
  2. renderAs
  3. standardController
  4. readOnly
  5. extensions

Question 32

Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result?

  1. The API name is not changed and there are no other impacts.
  2. The API name of the field and the reference in the test class is changed.
  3. The API name of the field is changed, and a warning is issued to update the class.
  4. The API name of the field and the reference in the test class is updated.

Question 33

When is an Apex Trigger required instead of a Process Builder Process?

  1. When a record needs to be created
  2. When multiple records related to the triggering record need to be updated
  3. When a post to Chatter needs to be created
  4. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.

Question 34

A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?

  1. Create and populate a custom field on the parent object marked as Unique.
  2. Create a custom field on the child object of type External Relationship.
  3. Create and populate a custom field on the parent object marked as an External ID.
  4. Create a custom field on the child object of type Foreign Key.

Question 35

A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?

  1. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
  2. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
  3. Have each class implement an interface that defines method getTextSummary() that returns the summary.
  4. Have each class define method getTextSummary() that returns the summary.