A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time
an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountInstance: Trigger.New){ if (Trigger . isBefore) { accountInstance Exec_Count_c += 1; } System. debug
(accountInstance.Exec_Count_c); } }
A. 1,2,3,3
B. 1,2,3,4
C. 2, 2, 4, 4
D. 2,2,3,3
A developer is building a Visualforce page that interacts with external services. Which interface should the developer implement to test this functionality? (Choose two.)
A. HTTPCalloutMock
B. HTTPRequestMock
C. HTTPResponseMock
D. StaticResourceCalloutMock
A developer has a Debug method within a class, which is invoked hundreds of times. What is the optimal functionality in the Developer Console to count the number of calls made to the method?
A. The "Execution Log" Panel
B. The "Execution Stack" Panel
C. The "Executed Units" tab under the Execution Overview Panel
D. The "Execution Tree" tab under the Stack Tree Panel
What is a consideration when testing batch Apex? (Choose two.)
A. Test methods must execute the batch with a scope size of less than 200 records
B. Test methods must call the batch execute() method once
C. Test methods must use the @isTest (SeeAIIData=true) annotation
D. Test methods must run the batch between TeststartTestQ and Test.stopTestQ
A developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?
A. Add the transient keyword to the variable definition
B. Move the variable definition inside the scope of the function
C. Use static variables instead of instance variables
D. Use SOQL for loops instead of standard SOQL queries
A developer has written the following method:
static void processList(List
Which code block can be used to call the method?
A. processList (ace)
B. processList ([FIND 'Acme" 'RETURNING Account])
C. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])
D. for Account ace : [SELECT Id, Name FROM Account])
A developer needs to design a custom object that will be integrated into a back-end system. What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? (Choose two.)
A. Configure a custom field as unique
B. Configure a custom field as indexed
C. Configure a custom field as external ID
D. Configure a custom field as Salesforce ID
The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3.
What is the outcome after executing the following code snippet in the org?
List
A. Both inserts succeed and the contact record that has the Zone value of 'PI'IT is set to NULL
B. A partial insert succeeds and the contact record that has the Zone value 'IAD1 is inserted
C. Both inserts succeed and the contact record that has the Zone value of PITT is truncated
D. An unhandled DML exception is thrown and no contact records are inserted
Which statement is true regarding the use of user input as part of a dynamic SOQL query?
A. Free text input should not be allowed, to avoid SOQL injection
B. The String.format() method should be used to prevent injection
C. Quotes should be escaped to protect against SOQL injection
D. The string should be URL encoded by the input form to prevent errors
What is a potential design issue with the following code?
trigger accountTrigger on Account (before update){ Boolean processOpportunity = false; List
A. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity
B. The code will result in a System.LimitException : Too many script statements error
C. The code will result in a System.DmException:Entity_is_Deleted error
D. The code will result in a System.LimitException: Apex CPU time limit exceeded error
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.