ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with the rest of their call script. Following best practices, what should a developer use to meet this requirement?

A.
Approvals
A.
Approvals
Answers
B.
Flow Builder
B.
Flow Builder
Answers
C.
Apex Trigger
C.
Apex Trigger
Answers
D.
Process Builder
D.
Process Builder
Answers
Suggested answer: B

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

A.
Perform a callout to the Metadata API.
A.
Perform a callout to the Metadata API.
Answers
B.
Use the Schema namespace.
B.
Use the Schema namespace.
Answers
C.
Perform a SOQL Query.
C.
Perform a SOQL Query.
Answers
D.
Use a static resource.
D.
Use a static resource.
Answers
Suggested answer: B

A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration is optimal?

A.
SOAP API
A.
SOAP API
Answers
B.
Apex REST Web Service
B.
Apex REST Web Service
Answers
C.
Apex SOAP Web Service
C.
Apex SOAP Web Service
Answers
D.
REST API
D.
REST API
Answers
Suggested answer: B

A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resolution? Choose 2 answers

A.
A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
A.
A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
Answers
B.
Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
B.
Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
Answers
C.
The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
C.
The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
Answers
D.
The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production
D.
The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production
Answers
Suggested answer: A, D

A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields.

However, the users want to pick the five fields to use as filter fields when they run the page.

Which feature of Apex code is required to facilitate this solution?

A.
REST API
A.
REST API
Answers
B.
Dynamic Schema binding
B.
Dynamic Schema binding
Answers
C.
describeSObjects()
C.
describeSObjects()
Answers
D.
SOSL queries
D.
SOSL queries
Answers
Suggested answer: C

0f Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b. These are the fields on Customer_Transaction__b: Account__c Program__¢ Points_Earned__c Location__c Transaction_Date__c The following fields have been identified as Index Fields for the Customer_Transaction__b object: Account__c, Program__c, and Transaction_Date__c. Which SOQL query is valid on the Customer_Transaction__b Big

Object?

A.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c ='Shoppers' AND Transaction_Date__c=2019-05-31T00:00Z
A.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c ='Shoppers' AND Transaction_Date__c=2019-05-31T00:00Z
Answers
B.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c LIKE 'Shop%' AND Transaction_Date__c=2019- 05-31T00:00Z
B.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c LIKE 'Shop%' AND Transaction_Date__c=2019- 05-31T00:00Z
Answers
C.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c EXCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
C.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c EXCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
Answers
D.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c INCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
D.
SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c INCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
Answers
Suggested answer: A

Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

A.
SUM() SOQL aggregate query on the Opportunity object
A.
SUM() SOQL aggregate query on the Opportunity object
Answers
B.
SOQL for loop that counts the number of Opportunities records
B.
SOQL for loop that counts the number of Opportunities records
Answers
C.
COUNT() SOQL aggregate query on the Opportunity object
C.
COUNT() SOQL aggregate query on the Opportunity object
Answers
D.
Apex Batch job that counts the number of Opportunity records
D.
Apex Batch job that counts the number of Opportunity records
Answers
Suggested answer: C

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

A.
Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
A.
Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
Answers
B.
Move the prerequisite reference data setup to the constructor for the test class.
B.
Move the prerequisite reference data setup to the constructor for the test class.
Answers
C.
Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
C.
Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
Answers
D.
Move the prerequisite reference data setup to a @testSetup method in the test class.
D.
Move the prerequisite reference data setup to a @testSetup method in the test class.
Answers
Suggested answer: A

A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired. What is the optimal way to accomplish this?

A.
Use a Workflow Email Alert.
A.
Use a Workflow Email Alert.
Answers
B.
Usea MassEmailMessage() with an Apex Trigger.
B.
Usea MassEmailMessage() with an Apex Trigger.
Answers
C.
Use a SingleEmailMessage() with an Apex Trigger.
C.
Use a SingleEmailMessage() with an Apex Trigger.
Answers
D.
Use an Email Alert with Process Builder.
D.
Use an Email Alert with Process Builder.
Answers
Suggested answer: D

UC Loans is a small company with a part time Salesforce administrator. UC Loans wants to create a Loan__c record whenever an Opportunity is won. What is the optimal solution for UC Loans to accomplish this?

A.
Quick Action
A.
Quick Action
Answers
B.
Apex Trigger
B.
Apex Trigger
Answers
C.
Process Builder
C.
Process Builder
Answers
D.
Workflow Rule
D.
Workflow Rule
Answers
Suggested answer: C
Total 408 questions
Go to page: of 41