Leads4pass > Salesforce > Salesforce Developer > CRT-450 > CRT-450 Online Practice Questions and Answers

CRT-450 Online Practice Questions and Answers

Questions 4

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

A. Create a master-detail relanstionship between the rating and employee object

B. Create a trigger on the rating object that updates a field on the employee object

C. Create a roll-up sumary field on the employee and use avg to calculate the average rating score

D. Create a lookup realntionship beteween the rating and employee object

Buy Now
Questions 5

What is the maximum number of SOQL queries used by the following code?

A. 5

B. 6

C. 1

D. 2

Buy Now
Questions 6

A developer needs to confirm that a Contact trigger works correctly without changing the organization's data What should the developer do to test the Contact trigger?

A. Use the New button on the Salesforce Contacts Tab to create a new Contact record.

B. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement

C. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.

D. Use the Test menu on the Developer Console to run all test classes for the Contact trigger

Buy Now
Questions 7

What are three ways for a developer to execute tests in an org? Choose 3.

A. Bulk API

B. ToolingAPI

C. Metadata API

D. Setup Menu

E. SalesforceDX

Buy Now
Questions 8

Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers

A. Create an Account Roll-up Summary field to count open Opportunities

B. Create an Opportunity Validation Rule to generate an error on insert

C. Create an Account Trigger to generate an error on Opportunity insert

D. Create an Opportunity Workflow Rule to auto-close the Opportunity

Buy Now
Questions 9

How can a developer use a Set to limit the number of records returned by a SOQL query?

A. Reference the Set in the LIMIT clause of the query

B. Pass the query results as an argument in a reference to the Set.containsAll() method.

C. Pass the Set as an argument in a reference to the Database.query() method

D. Reference the Set in the WHERE clause of the query

Buy Now
Questions 10

A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?

A. @BeforeTest

B. @isTest(SeeAllData=True)

C. @TestSetup

D. @PreTest

Buy Now
Questions 11

What are two ways for a developer to execute tests in an org?

A. Tooling API

B. Developer console

C. Bulk API

D. Matadata API

Buy Now
Questions 12

The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is `Technology' while also retrieving the contact's Job_Application__c records. Based on the object's relationships, what is the most efficient statement to retrieve the list of contacts?

A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = `Technology'];

B. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Accounts.Industry = `Technology'];

C. [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE Accounts.Industry = `Technology'];

D. [SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHERE Account.Industry = `Technology'];

Buy Now
Questions 13

Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?

A. Option A

B. Option B

C. Option C

D. Option D

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I
Last Update:
Questions: 629
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99