Go Back on CRT-450 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

CRT-450 Practice Test


Page 7 out of 78 Pages

Topic 1 : Exam Pool A

What are two uses for External IDs? (Choose two.)


A.

To create relationships between records imported from an external system.


B.

To create a record in a development environment with the same Salesforce ID as in another environment


C.

To identify the sObject type in Salesforce


D.

To prevent an import from creating duplicate records using Upsert





A.
  

To create relationships between records imported from an external system.



B.
  

To create a record in a development environment with the same Salesforce ID as in another environment



Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)


A.

The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.


B.

Test data is inserted once for all test methods in a class.


C.

Records created in the @testSetup method cannot be updates in individual test methods.


D.

The @testSetup method is automatically executed before each test method in the test class is executed.





B.
  

Test data is inserted once for all test methods in a class.



Why would a developer consider using a custom controller over a controller extension?


A.

To increase the SOQL query governor limits.


B.

To implement all of the logic for a page and bypass default Salesforce functionality


C.

To leverage built-in functionality of a standard controller
To enforce user sharing settings and permissions





B.
  

To implement all of the logic for a page and bypass default Salesforce functionality



Which approach should be used to provide test data for a test class?


A.

Query for existing records in the database.


B.

Execute anonymous code blocks that create data.


C.

Use a test data factory class to create test data.


D.

Access data in @TestVisible class variables.





C.
  

Use a test data factory class to create test data.



Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)


A.

Number maps to Decimal.


B.

Number maps to Integer.


C.

TextArea maps to List of type String.


D.

Date/Time maps to Dateline.


E.

Checkbox maps to Boolean.





A.
  

Number maps to Decimal.



D.
  

Date/Time maps to Dateline.



E.
  

Checkbox maps to Boolean.




Page 7 out of 78 Pages
Previous