Practice Test Free
  • QUESTIONS
  • COURSES
    • CCNA
    • Cisco Enterprise Core
    • VMware vSphere: Install, Configure, Manage
  • CERTIFICATES
No Result
View All Result
  • Login
  • Register
Quesions Library
  • Cisco
    • 200-301
    • 200-901
      • Multiple Choice
      • Drag Drop
    • 350-401
      • Multiple Choice
      • Drag Drop
    • 350-701
    • 300-410
      • Multiple Choice
      • Drag Drop
    • 300-415
      • Multiple Choice
      • Drag Drop
    • 300-425
    • Others
  • AWS
    • CLF-C02
    • SAA-C03
    • SAP-C02
    • ANS-C01
    • Others
  • Microsoft
    • AZ-104
    • AZ-204
    • AZ-305
    • AZ-900
    • AI-900
    • SC-900
    • Others
  • CompTIA
    • SY0-601
    • N10-008
    • 220-1101
    • 220-1102
    • Others
  • Google
    • Associate Cloud Engineer
    • Professional Cloud Architect
    • Professional Cloud DevOps Engineer
    • Others
  • ISACA
    • CISM
    • CRIS
    • Others
  • LPI
    • 101-500
    • 102-500
    • 201-450
    • 202-450
  • Fortinet
    • NSE4_FGT-7.2
  • VMware
  • >>
    • Juniper
    • EC-Council
      • 312-50v12
    • ISC
      • CISSP
    • PMI
      • PMP
    • Palo Alto Networks
    • RedHat
    • Oracle
    • GIAC
    • F5
    • ITILF
    • Salesforce
Contribute
Practice Test Free
  • QUESTIONS
  • COURSES
    • CCNA
    • Cisco Enterprise Core
    • VMware vSphere: Install, Configure, Manage
  • CERTIFICATES
No Result
View All Result
Practice Test Free
No Result
View All Result
Home Practice Test Free

Certified Platform Developer II Practice Test Free

Table of Contents

Toggle
  • Certified Platform Developer II Practice Test Free – 50 Real Exam Questions to Boost Your Confidence
  • Free Access Full Certified Platform Developer II Practice Test Free Questions

Certified Platform Developer II Practice Test Free – 50 Real Exam Questions to Boost Your Confidence

Preparing for the Certified Platform Developer II exam? Start with our Certified Platform Developer II Practice Test Free – a set of 50 high-quality, exam-style questions crafted to help you assess your knowledge and improve your chances of passing on the first try.

Taking a Certified Platform Developer II practice test free is one of the smartest ways to:

  • Get familiar with the real exam format and question types
  • Evaluate your strengths and spot knowledge gaps
  • Gain the confidence you need to succeed on exam day

Below, you will find 50 free Certified Platform Developer II practice questions to help you prepare for the exam. These questions are designed to reflect the real exam structure and difficulty level. You can click on each Question to explore the details.

Question 1

Consider the following code snippet:
 Image
The Apex method is executed in an environment with a large data volume count for Accounts, and the query is performing poorly.
Which technique should the developer implement to ensure the query performs optimally, while preserving the entire result set?

A. Annotate the method with the @Future annotation.

B. Create a formula field to combine the CreatedDate and RecordType value, then filter based on the formula.

C. Break down the query into two individual queries and join the two result sets.

D. Use the Database.queryLocator method to retrieve the accounts.

 


Suggested Answer: C

Community Answer: C

 

Question 2

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments.
Which solution solves these requirements?

A. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records

B. A Custom List View on the junction object with filters that will show the proper records based on owner

C. A Custom Report Type and a report Lightning Component on the Community Home Page

D. An Apex Trigger that creates Apex Managed Sharing records based on the junction object’s relationships

 


Suggested Answer: C

Community Answer: D

 

Question 3

As part of point-to-point integration, a developer must call an external web service which, due to high demand, takes a long time to provide a response. As part of the request, the developer must collect key inputs from the end user before making the callout.
Which two elements should the developer use to implement these business requirements? (Choose two.)

A. Process Builder

B. Apex method that returns a Continuation object

C. Lightning web component

D. Screen Flow

 


Suggested Answer: BC

Community Answer: BD

 

Question 4

Consider the following code snippet, depicting an Aura component:
 Image
Which two interfaces can the developer implement to make the component available as a quick action? (Choose two.)

A. force:hasRecordId

B. force:lightningQuickAction

C. force:hasSObjectName

D. force:lightningQuickActionWithoutHeader

 


Suggested Answer: BD

Community Answer: BD

Reference:
https://developer.salesforce.com/docs/component-library/bundle/force:lightningQuickAction/documentation

Question 5

A developer is asked to modify a Lightning web component so that it displays in one column on phones and in two columns on tablets, desktops, and larger devices.
Given to the code below:
 Image
Which should the developer add to the code to meet the requirements?

A. Add a small-device-size=“12” to the [lightning-layout-item] elements

B. Add size=“6” a small-device-size=“12” to the [lightning-layout-item] elements

C. Add size=“12” a small-device-size=“6” to the [lightning-layout-item] elements

D. Add a medium-device-size=“6” to the [lightning-layout-item] elements

 


Suggested Answer: B

Community Answer: D

 

Question 6

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. Process Builder

B. Quick Action

C. Workflow Rule

D. Apex Trigger

 


Suggested Answer: A

 

Question 7

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. Report

B. User

C. Profile

D. RecordType

 


Suggested Answer: A

Community Answer: A

 

Question 8

A software company uses a custom object, Defect__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect__c has a related list of Reviewer__c records, each with a lookup field to User that is used to indicate that the User will review the Defect__c.
What should be used to give the User on the Reviewer__c record read only access to the Defect__c record on the Reviewer__c record?

A. Apex managed sharing

B. View All on Defect__c

C. Lightning web component

D. Criteria-based sharing

 


Suggested Answer: B

Community Answer: A

 

Question 9

If you wanted to create a record following the update of another (with data from the source object), what is the most customizable approach?

A. Workflow Rule

B. Process Builder

C. After update Trigger

D. Flow

 


Suggested Answer: B

Community Answer: D

 

Question 10

In an organization that has multi-currency enabled, a developer is tasked with building a Lightning Component that displays the top ten Opportunities most recently accessed by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user’s locale.
What is the most effective approach to ensure values displayed respect the user’s locale settings?

A. Use a wrapper class to format the values retrieved via SOQL.

B. Use the FORMAT() function in the SOQL query.

C. Use the FOR VIEW clause in the SOQL query.

D. Use REGEX expressions to format the values retrieved via SOQL.

 


Suggested Answer: C

Community Answer: B

 

Question 11

A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is not numeric.
What is a recommended way for the error message be displayed to the end user?

A. Use the apex:message tag to display errors

B. Use the aura:component tag to display errors

C. Use the ui:outputText tag to display errors

D. Use the ui:inputDefaultError tag to display errors

 


Suggested Answer: D

Community Answer: D

 

Question 12

Image
The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to
True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts. "
What is the optimal way to fix this?

A. Add Test.startTest() before and Test.setMock and Test.stopTest() after CalloutUtil.sendAccountUpdate.

B. Add Test.startTest() and Test.setMock before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

C. Add if (!Test.isRunningTest()) around CalloutUtil.sendAccountUpdate.

D. Add Test.startTest() before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

 


Suggested Answer: B

Community Answer: B

 

Question 13

A company accepts orders for customers in their enterprise resource planning (ERP) system that must be integrated into Salesforce as Order__c records with a lookup field to Account. The Account object has an external ID field, ERP_Customer_ID__c.
What should the integration use to create new Order__c records that will automatically be related to the correct Account?

A. Insert on the Order__c object followed by an update on the Order__c object.

B. Merge on the Order__c object and specify the ERP_Customer_ID__c for the Account relationship.

C. Upsert on the Order__c object and specify the ERP_Customer_ID__c for the Account relationship.

D. Upsert on the Account and specify the ERP_Customer_ID__c for the relationship.

 


Suggested Answer: C

 

Question 14

An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders.
What is the optimal method for a developer to troubleshoot this?

A. Set up debug logging for every Sales Rep, then monitor the logs for errors and exceptions.

B. Turn off all Workflow Rules, then turn them on one at time to see which one causes the error.

C. Add system.debug() statements to the code and use the Developer Console logs to trace the code.

D. Run the Apex Test Classes for the Apex trigger to ensure the code still has sufficient code coverage.

 


Suggested Answer: C

Community Answer: C

 

Question 15

trigger AssignOwnerByRegion on Account ( before insert, before update )
{
List accountList = new List<Account>();
for( Account anAccount : trigger.new )
{
Region__c theRegion = [
SELECT Id, Name, Region_Manager__c
FROM Region__c -
WHERE Name = :anAccount.Region_Name__c
];
anAccount.OwnerId = theRegion.Region_Manager__c;
accountList.add( anAccount );
}
update accountList;
}
Consider the above trigger intended to assign the Account to the manager of the Account&apos;s region.
Which two changes should a developer make in this trigger to adhere to best practices? (Choose two.)

A. Use a Map to cache the results of the Region__c query by Id.

B. Move the Region__c query to outside the loop.

C. Remove the last line updating accountList as it is not needed.

D. Use a Map accountMap instead of List accountList.

 


Suggested Answer: BC

Community Answer: BC

 

Question 16

A company wants to run different logic based on an Opportunity’s record type.
Which code segment handles this request and follows best practices?

A.
Image

B.
Image

C.
Image

D.
Image

 


Suggested Answer: D

Community Answer: D

 

Question 17

The Account edit button must be overridden in an org where a subset of users still uses Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it.
How should a developer implement this?

A. Override the edit button for both Lightning and Classic with a Lightning Component

B. Override the edit button for both Lightning and Classic with a new Visualforce page

C. Override the edit button for Lightning with a Lightning Page, and for Classic, override the edit button with a Visualforce page that contains the Lightning Component

D. Override the edit button for Lightning with a Lightning Component, and for Classic, override the edit button with a Visualforce page that contains the Lightning Component

 


Suggested Answer: C

Community Answer: C

 

Question 18

There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.
What can a developer do to help alleviate such issues?

A. Use the transient keyword in the Apex code when querying the Account records

B. Use JavaScript remoting to query the accounts

C. Use the standard Account List controller and implement pagination

D. Upload a third-party data table library as a static resource

 


Suggested Answer: A

Community Answer: C

 

Question 19

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. REST API

B. Apex SOAP Web Service

C. Soap API

D. Apex REST Web Service

 


Suggested Answer: A

Community Answer: A

 

Question 20

Consider the following code snippet:
 Image
Which two best practices should the developer implement to optimize this code? (Choose two.)

A. Query the Pricing_Structure__c records outside of the loop.

B. Use a collection for the DML statement.

C. Change the trigger context to after update, after insert.

D. Remove the DML statement.

 


Suggested Answer: AD

Community Answer: AD

 

Question 21

Which is a valid Apex REST Annotation? (Choose two.)

A. @HttpPatch

B. @HttpDelete

C. @HttpUpsert

D. @HttpAction

 


Suggested Answer: AB

 

Question 22

A developer wrote a class named AccountHistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a parameter and returns a list of associated AccountHistory object records.
The following test fails:
 Image
What should be done to make this test pass?

A. The test method should be deleted since this code cannot be tested.

B. Create AccountHistory records manually in the test setup and write a query to get them.

C. Use Test.isRunningTest() in getAccountHistory() to conditionally return fake AccountHistory records.

D. Use @isTest (SeeAllData=true) to see historical data from the org and query for AccountHistory records.

 


Suggested Answer: C

 

Question 23

A developer created the following test method:
 Image
The developer org has five accounts where the name starts with "Test". The developer executes this test in the Developer Console.
After the test code runs, which statement is true?

A. The test will fail.

B. There will be no accounts where the name starts with “Test”.

C. There will be five accounts where the name starts with “Test”.

D. There will be six accounts where the name starts with “Test”.

 


Suggested Answer: B

Community Answer: B

 

Question 24

What is the transaction limit on the max Salesforce CPU time?

A. 100 seconds

B. 60 seconds

C. 100 seconds (synchronous); 200 seconds (async)

D. 10 seconds (synchronous); 60 seconds (async)

E. There is no limit

 


Suggested Answer: D

 

Question 25

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 two.)

A. The administrators are deploying their own Change Sets, thus deleting each other’s fields from the objects in production.

B. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.

C. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.

D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production.

 


Suggested Answer: BD

Community Answer: BD

 

Question 26

A developer wants to use an Aura component with a custom action.
What should be considered in order to do this?

A. A default value must be provided for each component attribute marked as required

B. The class ג€slds-modal_ _containerג€ must be added to the top-level element of the component

C. The component must implement the flexipage:availableForRecordHome interface

D. The component’s JavaScript controller must handle a method on initialization

 


Suggested Answer: A

Community Answer: A

 

Question 27

A developer recently released functionality to production that performs complex commission calculations in Apex code called from an Opportunity trigger. Users report that the calculations seem incorrect because the values they see for commissions are wrong.
The developer has representative test data in their developer sandbox.
Which three tools or techniques should the developer use to execute the code and pause it at key lines to visually inspect values of various Apex variables? (Choose two.)

A. Apex Replay Debugger

B. Visual Studio Code

C. Workbench

D. Developer Console

E. Breakpoints

 


Suggested Answer: BD

Community Answer: AB

 

Question 28

What is a potential design issue with the following code?
trigger accountTrigger on Account (before update){ Boolean processOpportunity = false; List opptysClosedLost = new List() List IstAllOpp = [select StageName from Opportunity where accountId IN :Trigger.newMap.keySet()]; if(!IstAllOpp.isEmpty()) processOpportunity = true; while(processOpportunity)
{ for(opportunity o : IstAllOpp) if(o.StageName == 'Closed - Lost') opptysClosedLost.add(o); processOpportunity = false; if(!opptysClosedLost.isEmpty()) delete opptysClosedLost;

A. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity

B. The code will result in a System.LimitException : Too many script statements error

C. The code will result in a System.DmlException:Entity_is_Deleted error

D. The code will result in a System.LimitException: Apex CPU time limit exceeded error

 


Suggested Answer: D

Community Answer: B

 

Question 29

A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail.
What is the optimal way for a developer to fix the issue?

A. Add a before insert trigger on Account to set the value of the required field.

B. Create a TestDataFactory class that serves as the single place to create Accounts for unit tests and set the required field there.

C. Change the required field to be a validation rule that excludes the System Administrator profile.

D. Add the required field to the data setup for all of the unit tests.

 


Suggested Answer: B

Community Answer: B

 

Question 30

What is a consideration when testing batch Apex? (Choose two.)

A. Test methods must execute the batch with a scope size of less than 200 records

B. Test methods must call the batch execute() method once

C. Test methods must use the @isTest (SeeAllData=true) annotation

D. Test methods must run the batch between Test.startTest() and Test.stopTest()

 


Suggested Answer: AD

Community Answer: BD

 

Question 31

A developer has created a Lightning web component that uses the getRecord wire adapter.
Which three things should the developer do in a Jest test to validate the wire method is working as expected? (Choose three.)

A. Use an assert statement to validate results.

B. Import wire from lwc.

C. Use the emit() API.

D. Create a JSON file with mock data.

E. Import getRecord from lightning/uiRecordApi.

 


Suggested Answer: BCE

Community Answer: ACD

 

Question 32

What is a benefit of JavaScript remoting over Visualforce Remote Objects?

A. Allows for specified re-render targets

B. Does not require any Apex code

C. Does not require any JavaScript code

D. Supports complex server-side application logic

 


Suggested Answer: D

Community Answer: D

 

Question 33

A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.
Which two settings should the developer configure within the xml resource file? (Choose two.)

A. Set the IsVisible attribute to true.

B. Specify the target to be lightning__AppPage.

C. Specify the target to be lightning__RecordPage.

D. Set the IsExposed attribute to true.

 


Suggested Answer: CD

 

Question 34

A Salesforce developer is hired by a multi-national company to build a custom Lightning application that shows employees their employment benefits and earned commissions over time. The application must acknowledge and respect the user's locale context for dates, times, numbers, currency, and currency symbols.
Which approach should the developer implement to ensure the Lightning application complies with the user's locale?

A. Create a Hierarchical custom setting to store user preferences

B. Use the $Locale value provider to retrieve the user preferences

C. Use the $User global variable to retrieve the user preferences

D. Use JavaScript in the component’s controllers to format values

 


Suggested Answer: C

Community Answer: B

 

Question 35

How can Apex be used with Visual Workflow?

A. To set the version of a Flow being run

B. To start a Flow automatically

C. To add custom styling to a Flow

D. To control access to a Flow

 


Suggested Answer: B

Community Answer: B

 

Question 36

Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number_c, that is then used in a query to find matching Accounts.
 Image
A developer receives the exception 'SOQL query not selective enough'.
Which step should be taken to resolve the issue?

A. Mark the ERP_Number_c field as an external ID.

B. Perform the SOQL query as part of a for loop.

C. Move the SOQL query to within an asynchronous process.

D. Mark the ERP_Number_c field as required.

 


Suggested Answer: A

Community Answer: A

 

Question 37

What is the transaction limit on the number of Apex jobs added to the queue?

A. 100

B. 150

C. 50

D. 200

E. There is no limit

 


Suggested Answer: C

 

Question 38

A developer is using a third-party JavaScript library to create a custom user interface in Visualforce. The developer needs to use JavaScript to get data from a controller method in response to a user action.
How can the developer accomplish this?

A. Use to create a JavaScript wrapper for the controller method

B. Use the @RemoteAction annotation on the method definition with JavaScript Remoting

C. Use the $Controller global variable to access the controller method via JavaScript

D. Use to enable JavaScript support for the controller method

 


Suggested Answer: B

Community Answer: D

 

Question 39

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. SOSL queries

B. describeSObjects()

C. Dynamic Schema binding

D. REST API

 


Suggested Answer: C

Community Answer: C

 

Question 40

A developer is working on a set of custom Aura components that can be individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Account and then select a specific found Account. Once selected, the other components should get other information related to the selected Account and display it.
Which event should the c:searchAccounts component fire to make it known that an Account is selected?

A. An application event

B. A component event

C. A refreshView event

D. A publish event

 


Suggested Answer: B

Community Answer: A

 

Question 41

As part of a custom interface, a developer team creates various new Lightning web components. Each of the components handles errors using toast messages. When the development is complete, all the components are added to the same Lightning page.
During acceptance testing, users complain about the long chain of toast messages that display when errors occur loading the components.
Which two techniques should the developer implement to improve the user experience? (Choose two.)

A. Use a [template] tag to display in-place error messages

B. Use public properties on each component to display the error messages

C. Use the window.alert() method to display the error messages.

D. Use a Lightning web component to aggregate and display all errors.

 


Suggested Answer: AB

Community Answer: AD

 

Question 42

A company uses Opportunities to track sales to their customers and their org has millions of Opportunities. They want to begin to track revenue over time through a related Revenue object.
As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic.
They estimate that roughly 100,000 Opportunities will have Revenue records created and populated.
What is the optimal way to automate this?

A. Use System.enqueueJob() to invoke a Queueable class.

B. Use Database.executeBatch() to invoke a Queueable dass.

C. Use System.scheduleJob() to schedule a Database.Scheduleable class.

D. Use Database.executeBatch() to invoke a Database.Batchable class.

 


Suggested Answer: D

Community Answer: D

 

Question 43

A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created.
Which consideration should be checked to resolve the issue?

A. Ensure the sandbox is on the same release as production.

B. Ensure Workflow Rules are inactive.

C. Ensure the Apex Classes are on the same API version.

D. Ensure Process Builder processes are inactive.

 


Suggested Answer: A

Community Answer: A

 

Question 44

What is a consideration when using bind variables with dynamic SOQL? (Choose two.)

A. Dynamic SOQL cannot reference fields on bind variables

B. Dynamic SOQL cannot use bind variables

C. Bind variables must be public or global

D. Bind variables must be in local scope

 


Suggested Answer: AD

Community Answer: AD

 

Question 45

As part of a new integration, a developer is asked to implement a new custom search functionality that is capable of performing unrestricted queries and can account for all values within a custom picklist field, Type__c, on the Opportunity object. The search feature must also account for NULL values.
The organization-wide default for the Opportunity object is set to Public Read-Only, and a new custom index has been created for the Type__c field. There are more than 5 million Opportunity records within the environment, and a considerable amount of the existing records have NULL values for the picklist.
Which technique should the developer implement to maximize performance when querying NULL values?

A. Use a SOSL query to return ALL opportunities that have a value of NULL in any field.

B. Use the OR operator to combine WHERE clauses to strictly search for each value within the picklist, including Type__c = NULL.

C. Perform two SOQL queries; one to query Opportunities where Type__c != NULL, and another to query where Type__c = NULL, then join the result set using Apex.

D. Create a formula field that substitutes NULL values for a string of text, create an index for the formula field, then use the formula within the WHERE clause.

 


Suggested Answer: D

Community Answer: D

 

Question 46

Which of the following standard fields are indexed? (Choose three.)

A. Name

B. CreatedBy

C. SystemModStamp

D. LastModifedDdate

E. RecordType

 


Suggested Answer: ACE

Community Answer: ACE

 

Question 47

A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors.
Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

A. Remove the Apex Class from the Integration User’s Profile.

B. Use the Database method with allOrNone set to False.

C. Use a Try/Catch block after the insert statement.

D. Deactivate the Trigger before the Integration runs.

 


Suggested Answer: B

Community Answer: B

 

Question 48

Recently a Salesforce org's integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion of data into Salesforce.
The flow of data is as follows:
✑ The integration looks up Contact records with a given email address and, if found, the integration adds a Task to the first matching Contact it finds.
✑ If a match is not found, the integration looks up Lead records with a given email address and, if found, the integration adds a Task to the first matching Lead it finds.
✑ If a match is not found, the integration will create a Lead and a Task for that newly created Lead.
What is one way in which the integration can stay near real-time, but not exceed the number of allowed API calls in a 24-hour period?

A. Use the REST API as well as the SOAP API to effectively double the API calls allowed in a 24-hour period.

B. Create an Inbound Message that, using Flow, can do all of the logic the integration code was doing.

C. Write a custom Apex web service that, given an email address, does all of the logic the integration code was doing.

D. Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.

 


Suggested Answer: C

Community Answer: C

 

Question 49

A company's support process dictates that any time a Case is closed with a Status of 'Could not fix', an Engineering Review custom object record should be created and populated with information from the Case, the Contact, and any of the Products associated with the Case.
What is the correct way to automate this using an Apex trigger?

A. An after update trigger that creates the Engineering Review record and inserts it

B. A before update trigger that creates the Engineering Review record and inserts it

C. An after upsert trigger that creates the Engineering Review record and inserts it

D. A before upsert trigger that creates the Engineering Review record and inserts it

 


Suggested Answer: A

Community Answer: A

 

Question 50

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

 


Suggested Answer: B

Community Answer: B

 

Free Access Full Certified Platform Developer II Practice Test Free Questions

If you’re looking for more Certified Platform Developer II practice test free questions, click here to access the full Certified Platform Developer II practice test.

We regularly update this page with new practice questions, so be sure to check back frequently.

Good luck with your Certified Platform Developer II certification journey!

Share18Tweet11
Previous Post

CERTIFIED PLATFORM APP BUILDER Practice Test Free

Next Post

Certified Sales Cloud Consultant Exam Practice Test Free

Next Post

Certified Sales Cloud Consultant Exam Practice Test Free

Certified Tableau CRM and Einstein Discovery Consultant Practice Test Free

CGEIT Practice Test Free

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended

Network+ Practice Test

Comptia Security+ Practice Test

A+ Certification Practice Test

Aws Cloud Practitioner Exam Questions

Aws Cloud Practitioner Practice Exam

Comptia A+ Practice Test

  • About
  • DMCA
  • Privacy & Policy
  • Contact

PracticeTestFree.com materials do not contain actual questions and answers from Cisco's Certification Exams. PracticeTestFree.com doesn't offer Real Microsoft Exam Questions. PracticeTestFree.com doesn't offer Real Amazon Exam Questions.

  • Login
  • Sign Up
No Result
View All Result
  • Quesions
    • Cisco
    • AWS
    • Microsoft
    • CompTIA
    • Google
    • ISACA
    • ECCouncil
    • F5
    • GIAC
    • ISC
    • Juniper
    • LPI
    • Oracle
    • Palo Alto Networks
    • PMI
    • RedHat
    • Salesforce
    • VMware
  • Courses
    • CCNA
    • ENCOR
    • VMware vSphere
  • Certificates

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.