Want to pass your Salesforce Certification for Platform Developer II PDII exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?
A. RecordType
B. Profile
C. User
D. Report
Which of the follow be used together in DML operations (transaction)? (Choose two.)
A. Acco u nt - Acco u ntS ha re
B. Case - CaseComment
C. Opportunity - User
D. Account - Order
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