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. Developer Console
A developer created a helper class with a method that can be called from Visualforce pages, web services, triggers, and of even anonymous code. When the method is called from a trigger, the developer needs to execute logic that should not be executed If the method Is called from anywhere else. How can the developer determine if the code Is executed in a trigger context?
A. Check if System.executionContext =='Trigger'.
B. Use the executeOnTrigger annotation on the method definition.
C. Check if Trigger.isExecuting ==true
D. Check if Trigger.newMap !=null.
Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers
A. Apex Flex Queue
B. Apex Jobs
C. Paused Flow Interviews component
D. Time-Based Workflow Monitor
A developer must create a DrawList class that provides capabilities defined in the Sortableand Drawable interfaces.
Which is the correct implementation?
A. Option A
B. Option B
C. Option C
D. Option D
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?
A. List
B. List> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
C. Map
D. List> searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like '%ACME%');
Which three web technologies can be integrated into a Visualforce page? Choose 3 answares
A. HTML
B. Java
C. PHP
D. CSS
E. JavaScript
A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?
A. Declare maxattempts as a member variable on the trigger definition.
B. Declare maxattempts as a private static variable on a helper class
C. Declare maxattempts as a constant using the static and final keywords
D. Declare maxattempts as a variable on a helper class
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own.
What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?
A. Use the schema describe calls to determine if the logged-in user has access to the Account object.
B. Use the without sharing keyword on the class declaration.
C. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
D. Use the with sharing keyword on the class declaration.
A developer must write an Apex method that will be called from a Lightning component. The method may delete an account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can succesfully perform deletions?
A. AccountRec.sObjectType.isDeleteable()
B. Schema.sObjectType.Account.isDeletable()
C. AccountRec.isdeletable()
D. Account.isDelketable()
A custom picklist field, Food_Preference_c, exists on a custom object. The picklist contains the following options: ‘Vegan’, ‘Kosher’, ‘No Preference’. The developer must ensure a value is populated every time a record is created or updated.
What is the most efficient way to ensure a value is selected every time a record is saved?
A. Set "Use the first value in the list as the default value" as True.
B. Set a validation rule to enforce a value is selected.
C. Mark the field as Required on the field definition.
D. Mark the field as Required on the object's page layout.
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 PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.