A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the
A. StandardController
B. Extensions
C. Action
D. Controller
Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?
A. Data Import Wizard
B. Salesforce-to-Salesforce
C. Sandbox template
D. Data Loader
Which two statements are true about Apex code executed in Anonymous Blocks? Choose 2 answers
A. Successful DML operations are automatically committed
B. All DML operations are automatically rolled back
C. The code runs with the permissions of the user specified in the runAs() statement
D. The code runs with the permissions of the logged user.
E. The code runs in system mode having access to all objects and fields.
A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?
A. Text Area (Rich)
B. Text Area (Long)
C. Text
D. Text Area
Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers
A. Create an Account Roll-up Summary field to count open Opportunities
B. Create an Opportunity Validation Rule to generate an error on insert
C. Create an Account Trigger to generate an error on Opportunity insert
D. Create an Opportunity Workflow Rule to auto-close the Opportunity
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
A. Public void doWork(Record theRecord)
B. Public void doWork(sObject theRecord)
C. Public void doWork(Account Contact)
D. Public void doWork(Account || Contatc)
Which tag should a developer include when styling from external CSS is required in a Visualforce page?
A. Apex : includeStyle
B. Apex : require
C. Apex : includeScript
D. Apex : stylesheet
How can a developer warn users of SOQL governor limit violations in a trigger?
A. Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.
B. Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.
C. Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.
D. Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.
Opportunity opp=[SELECT Id,StageName FROM Opportunity LIMIT 1]; Given the code above,how can a developer get the label for the StageName field?
A. Call Opportunity.StageName.Label
B. Call Opportunity.StageName.getDescribe().getLabel()
C. Call Opp.StageName.getDescri
D. Call Opp.StageName.Label
A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
A. A visualforce page that calculates the total number of hours for a timecard and displays it on the page.
B. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.
C. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.
D. A Process Builder process that updates a field on the timecard entry is created.
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.