A developer wrote a Visualforce page for Sales Reps to add products to an order. The page takes a URL query parameter, productFamily, which filters the product results. The test method for the filter behavior has an assertion failing due to an incorrect number of results.
Why could the test be failing? (Choose two.)
A. The test does not call Test.startTest()
B. The test does not create product data
C. The test is not run by a System Administrator
D. The test does not set the current page reference
What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
A.
B.
C. si" : "my first string", 11" : "123", "bl" : "false", "S2" : "my second string"
D. il" : 123, "SI" : "my first string", "S2" : "my second string", "bl" : false
A developer has a page with two extensions overriding the Standard controller for Case.
value="Save" action="{!save}"/> What will happen when a user clicks the command button? A. All of the three Save methods will be executed B. Save from Case Standard Controller will be executed C. Save from CaseExtensionTwo will be executed D. Save from CaseExtensionOne will be executed
A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records. How should the developer handle the recursive trigger?
A. Deactivate the trigger and move the logic into a Process or Flow
B. Deactivate the workflow rule to prevent the field update from executing
C. Use a static variable to prevent the trigger from executing more than once
D. Use a global variable to prevent the trigger from executing more than once
Which statement is true regarding both Flow and Lightning Process? (Choose two.)
A. Can use Apex methods with the @lnvocableMethod annotation
B. Are both server-side considerations in the Order of Execution
C. Can use Apex that implements the Process.Plugin interface
D. Are able to be embedded directly into Visualforce pages
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?
A. Dynamic Record Choice
B. Lightning Process Builder
C. Visualforce and Apex
D. Custom Lightning Application
A developer must create a custom pagination solution. While users navigate through pages, if the data is changed from elsewhere, users should still see the cached results first accessed. How can the developer meet these requirements?
A. Use @Cache annotation
B. Use a StandardSetController
C. Use OFFSET in SOQL queries
D. Use OFFSET WITH CACHE in SOQL queries
Which use case is an appropriate fit for the @future asynchronous Apex method? (Choose two.)
A. A developer has jobs that need larger query results than regular transactions allow
B. A developer needs to segregate DML operations and bypass the mixed save DML error
C. A developer has long-running jobs with large data volumes that need to be performed in batches
D. A developer has long-running methods and needs to prevent delaying an Apex transaction
Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_Id_c.
How can a developer insert an Employee_c record linked to Company_c with a Company_Id_c of '999'?
A. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = f999f insert emp;
B. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_c = f999f insert emp;
C. Employee_c emp = new Employee_c(Name=fDeveloperT); emp. Company_c = new Company_c(Company_Id_c=f 999 T) insert emp;
D. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = new Company _ r(Company Id c=f999f) insert emp;
A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication. What code should the developer use to authenticate?
A. Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)
B. stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')
C. Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
D. stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')
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.