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
To create relationships between records imported from an external system.
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.
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
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.
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.
Number maps to Decimal.
Date/Time maps to Dateline.
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.
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 <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”
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
Change Set from Developer Org
Change Set from Sandbox
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
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
2, 150
Page 4 out of 39 Pages |
Previous |