CRT-450 Practice Test Questions

387 Questions


Topic 1 : Exam Pool A

A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension.
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller
functionality?


A.

controller=“Case” and extensions=“myControllerExtension”


B.

extensions=“myControllerExtension”


C.

controller=“myControllerExtension”


D.

standardController=“Case” and extensions=“myControllerExtension”





D.
  

standardController=“Case” and extensions=“myControllerExtension”



Which three tools can deploy metadata to production? (Choose three.)


A.

Change Set from Developer Org


B.

Force.com IDE


C.

Data Loader


D.

Change Set from Sandbox


E.

Metadata API





A.
  

Change Set from Developer Org



D.
  

Change Set from Sandbox



E.
  

Metadata API



Which set of roll-up types are available when creating a roll-up summary field?


A.

COUNT, SUM, MIN, MAX


B.

AVERAGE, SUM, MIN, MAX


C.

SUM, MIN, MAX


D.

AVRAGE, COUNT, SUM, MIN, MAX





A.
  

COUNT, SUM, MIN, MAX



A developer writes the following code:


What is the result of the debug statement?


A.

1, 100


B.

1, 150


C.

2, 150


D.

2, 200





C.
  

2, 150



A developer is asked to set a picklist field to ‘Monitor’ on any new Leads owned by a subnet of Users.
How should the developer implement this request?


A.

Create an after insert Lead trigger.


B.

Create a before insert Lead trigger.


C.

Create a Lead Workflow Rule Field Update.


D.

Create a Lead formula field.





C.
  

Create a Lead Workflow Rule Field Update.



How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?


A.

Create a Sharing Rule comparing the custom object owner to the account owner.


B.

Create a validation rule on the custom object comparing the record owners on both records.


C.

Include the sharing related list on the custom object page layout.


D.

Ensure that the relationship between the objects is Master-Detail.





D.
  

Ensure that the relationship between the objects is Master-Detail.



How should a developer prevent a recursive trigger?


A.

Use a “one trigger per object” pattern.


B.

Use a static Boolean variable.


C.

Use a trigger handler.


D.

Use a private Boolean variable.





D.
  

Use a private Boolean variable.



When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?


A. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.


B. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.


C. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.


D. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.





C.
  Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.

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?


A.

Have each class define method getObject() that returns the sObject that is controlled by the Apex class.


B.

Extend each class from the same base class that has a method getTextSummary() that returns the
summary.


C.

Have each class implement an interface that defines method getTextSummary() that returns the
summary.


D.

Have each class define method getTextSummary() that returns the summary.





C.
  

Have each class implement an interface that defines method getTextSummary() that returns the
summary.



What should a developer use to implement an automatic Approval Process submission for Cases?


A.

An Assignment Rule


B.

Scheduled Apex


C.

Process Builder


D.

A Workflow Rule





C.
  

Process Builder



Which two strategies should a developer use to avoid hitting governor limits when developing in a
multi-tenant environment? (Choose two.)


A.

Use collections to store all fields from a related object and not just minimally required fields.


B.

Use methods from the “Limits” class to monitor governor limits.


C.

Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.


D.

Use variables within Apex classes to store large amounts of data.





B.
  

Use methods from the “Limits” class to monitor governor limits.



C.
  

Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.



Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?


A.

REST resource path URL


B.

Workbench REST Explorer


C.

Developer Console REST tab


D.

Force.com IDE REST Explorer tab





B.
  

Workbench REST Explorer




Page 4 out of 33 Pages
Previous