ExamGecko
Ask Question

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

List of questions

Question 51

Report
Export
Collapse

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?

Approvals
Approvals
Flow Builder
Flow Builder
Apex Trigger
Apex Trigger
Process Builder
Process Builder
Suggested answer: B
asked 23/09/2024
walterio mendez
32 questions

Question 52

Report
Export
Collapse

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

Perform a callout to the Metadata API.
Perform a callout to the Metadata API.
Use the Schema namespace.
Use the Schema namespace.
Perform a SOQL Query.
Perform a SOQL Query.
Use a static resource.
Use a static resource.
Suggested answer: B
asked 23/09/2024
Giuseppina Mancinelli
34 questions

Question 53

Report
Export
Collapse

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?

SOAP API
SOAP API
Apex REST Web Service
Apex REST Web Service
Apex SOAP Web Service
Apex SOAP Web Service
REST API
REST API
Suggested answer: B
asked 23/09/2024
Glenn Abdoelkarim
36 questions

Question 54

Report
Export
Collapse

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 sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production
The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production
Suggested answer: A, D
asked 23/09/2024
Alex Ng
41 questions

Question 55

Report
Export
Collapse

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?

REST API
REST API
Dynamic Schema binding
Dynamic Schema binding
describeSObjects()
describeSObjects()
SOSL queries
SOSL queries
Suggested answer: C
asked 23/09/2024
rafael Flores
52 questions

Question 56

Report
Export
Collapse

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?

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
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
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
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
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
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
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
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
Suggested answer: A
asked 23/09/2024
Khalid Laghmami
26 questions

Question 57

Report
Export
Collapse

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?

SUM() SOQL aggregate query on the Opportunity object
SUM() SOQL aggregate query on the Opportunity object
SOQL for loop that counts the number of Opportunities records
SOQL for loop that counts the number of Opportunities records
COUNT() SOQL aggregate query on the Opportunity object
COUNT() SOQL aggregate query on the Opportunity object
Apex Batch job that counts the number of Opportunity records
Apex Batch job that counts the number of Opportunity records
Suggested answer: C
asked 23/09/2024
Gennaro Migliaccio
33 questions

Question 58

Report
Export
Collapse

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?

Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
Move the prerequisite reference data setup to the constructor for the test class.
Move the prerequisite reference data setup to the constructor for the test class.
Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
Move the prerequisite reference data setup to a @testSetup method in the test class.
Move the prerequisite reference data setup to a @testSetup method in the test class.
Suggested answer: A
asked 23/09/2024
hajar mechrany
30 questions

Question 59

Report
Export
Collapse

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?

Use a Workflow Email Alert.
Use a Workflow Email Alert.
Usea MassEmailMessage() with an Apex Trigger.
Usea MassEmailMessage() with an Apex Trigger.
Use a SingleEmailMessage() with an Apex Trigger.
Use a SingleEmailMessage() with an Apex Trigger.
Use an Email Alert with Process Builder.
Use an Email Alert with Process Builder.
Suggested answer: D
asked 23/09/2024
Tyler Raymond
39 questions

Question 60

Report
Export
Collapse

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?

Quick Action
Quick Action
Apex Trigger
Apex Trigger
Process Builder
Process Builder
Workflow Rule
Workflow Rule
Suggested answer: C
asked 23/09/2024
Nadja Burkart
32 questions
Total 438 questions
Go to page: of 44
Search

Related questions