CRT-450 Practice Test Questions

392 Questions


Topic 1 : Exam Pool A

In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?


A. As a List with each value as an element in the list


B. As a String with each value separated by a comma


C. As a String with each value separated by a semicolon


D. As a Set with each value as an element in the set





C.
  As a String with each value separated by a semicolon

Which two platform features align to the Controller portion of MVC architecture? (Choose two.)


A. Process Builder actions


B. Workflow rules


C. Standard objects


D. Date fields





A.
  Process Builder actions

B.
  Workflow rules

Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)


A. ENUM


B. Object


C. External ID


D. String





A.
  ENUM

D.
  String

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


A. When a record needs to be created


B. When multiple records related to the triggering record need to be updated


C. When a post to Chatter needs to be created


D. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.





D.
  When an action needs to be taken on a delete or undelete, or before a DML operation is executed.

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.

How should a developer avoid hitting the governor limits in test methods?


A. Use @TestVisible on methods that create records.


B. Use Test.loadData() to load data from a static resource.


C. Use @IsTest (SeeAllData=true) to use existing data.


D. Use Test.startTest() to reset governor limits.





D.
  Use Test.startTest() to reset governor limits.

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


Page 3 out of 33 Pages
Previous