SALESFORCE CERTIFICATIONS Certified Platform Developer IICertified Platform Developer II - Practice Questions - Post 15

SALESFORCE CERTIFICATIONS Certified Platform Developer IICertified Platform Developer II - Practice Questions - Post 15

1. What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?

Page: Page 46

Option A: Force.com Migration Tool

Option B: Developer Console

Option C: Workbench

Option D: Streaming API

Answer(s): 3

Explanation: Not available

SEO Keywords: SEO keywords not available


2. What are the ways a developer can create test data of Contacts? (Choose two.)

Page: Page 46

Option A: Test.createTestData()

Option B: myDataFactory.createContacts(10)

Option C: Test.loadData(Contact.sObjectType, 'staticResource')

Option D: Test.loadTestRecords(Contact.sObjectType, 'staticResource')

Answer(s): 2,3

Explanation: Not available

SEO Keywords: SEO keywords not available


3. If you have a method "doStuff(List records)", which is a valid call?

Page: Page 46

Option A: doStuff([Select Id From Account]);

Option B: doStuff(List records);

Option C: doStuff(Account acct);

Option D: doStuff(sObject obj);

Answer(s): 1

Explanation: Not available

SEO Keywords: SEO keywords not available


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

Page: Page 46

Option A: Workflow Rule

Option B: Process Builder

Option C: After update Trigger

Option D: Flow

Answer(s): 2

Explanation: Not available

SEO Keywords: SEO keywords not available


5. What is the correct order of execution for Visualforce Page "postback" requests (when user interaction requires a page update)?

Page: Page 47

Option A: 1) Decode View State 2) Evaluate expressions and method calls for the main page and custom components 3) Upon successful completion, Evaluate the action that triggered the postback 4) Upon successful completion, Update data and redirect user/update view state 5) HTML sent to browser

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


6.

Page: Page 47

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


7.

Page: Page 47

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


8.

Page: Page 47

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


9. When should you use the "transient" property on variables?

Page: Page 48

Option A: Variables that you want transmitted as part of the view state. Static variables also don't get transmitted

Option B: Variables that you don't want transmitted as part of the view state. Static variables also don't get transmitted

Option C: Static variables that you want transmitted as part of the view state to save space

Option D: Large variables in order to save space

Answer(s): 2

Explanation: Not available

SEO Keywords: SEO keywords not available


10. Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?

Page: Page 48

Option A: Standard Controller

Option B: Standard List/Set Controller

Option C: Controller Extensions

Option D: Custom Controller

Answer(s): 1

Explanation: Not available

SEO Keywords: SEO keywords not available


11. Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page and want to include multiple records?

Page: Page 48

Option A: Standard Controller

Option B: Standard List/Set Controller

Option C: Controller Extensions

Option D: Custom Controller

Answer(s): 2

Explanation: Not available

SEO Keywords: SEO keywords not available


12. Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

Page: Page 48

Option A: Standard Controller

Option B: Standard List/Set Controller

Option C: Controller Extensions

Option D: Custom Controller

Answer(s): 3

Explanation: Not available

SEO Keywords: SEO keywords not available


13. Within the System.Limit class, what would you call to get the number of calls made in your transaction?

Page: Page 49

Option A: get[typeOfLimit] --> (Ex. getDMLStatements())

Option B: getLimit[typeOfLimit] --> (Ex. getLimitDMLStatements())

Answer(s): 1

Explanation: Not available

SEO Keywords: SEO keywords not available


14. Within the System.Limit class, what would you call to get the total limit you can call in a single transaction?

Page: Page 49

Option A: get[typeOfLimit] --> (Ex. getDMLStatements())

Option B: getLimit[typeOfLimit] --> (Ex. getLimitDMLStatements())

Answer(s): 2

Explanation: Not available

SEO Keywords: SEO keywords not available


15. Universal Container needs to integrate with an external system. Every time an Account record is updated to meet certain criteria, a SOAP message must be sent to a third party end-point with the following information: Name, Industry, AccountNumber, and Rating. The lead developer for the org is considering using Workflow rules instead of Apex triggers to fulfill the above requirements. What are three benefits of using Workflow rules as opposed to Apex triggers? (Choose three.)

Page: Page 49

Option A: A SOAP message can send more than 100 notifications

Option B: Two-way SSL is supported by including a client certificate

Option C: Outbound messages prevent circular changes out-of-the-box

Option D: Retry logic for outbound messages is enabled out-of-the-box

Answer(s): 1,2,3

Explanation: https://www.sfdcstuff.com/2018/12/outbound-messages-implementation-tips.html https://help.salesforce.com/articleView?id=workflow_om_considerations.htm&type=5

SEO Keywords: SEO keywords not available


16. How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomentJS, in a Lightning component?

Page: Page 49

Option A: Use JavaScript remoting and script tags

Option B: Use CDNs with script attributes

Option C: Implement the libraries in separate helper files

Option D: Join multiple assets from a static resource

Answer(s): 4

Explanation: Not available

SEO Keywords: SEO keywords not available


17. After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? (Choose two.)

Page: Page 50

Option A: Internal Apps can use Outbound Messages

Option B: External Apps can use the standard Streaming API

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


18.

Page: Page 50

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


19.

Page: Page 50

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


20.

Page: Page 50

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


21. Which annotation exposes an Apex class as a RESTful web service?

Page: Page 51

Option A: @AuraEnabled

Option B: @HttpInvocable

Option C: @RestResource

Option D: @RemoteAction

Answer(s): 3

Explanation: Not available

SEO Keywords: SEO keywords not available


22. Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? (Choose three.)

Page: Page 51

Option A:

Option B:

Option C:

Option D:

Answer(s): 1,2,4

Explanation: Not available

SEO Keywords: SEO keywords not available


23. A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet: How can the component’s Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?

Page: Page 51

Option A: Use the getSObjectType() method in an Apex class

Option B: Create a design attribute and configure via App builder

Option C: Set the sObject type as a component attribute

Option D: Add force:hasSobjectName to the implements

Answer(s): 4

Explanation: Not available

SEO Keywords: SEO keywords not available


24. A developer is asked to develop a new AppExchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the- box AppExchange app needs to come with a set of best practice settings that apply to most customers. What should the developer use to store and package the custom configuration settings for the app?

Page: Page 51

Option A: Custom Metadata

Option B: Process Builder

Option C: Custom Objects

Option D: Custom Settings

Answer(s): 1

Explanation: Not available

SEO Keywords: SEO keywords not available


25. A developer is tasked by Universal Containers to build out a system to track the container repair process. Containers should be tracked as they move through the repair process, starting when a customer reports an issue and ending when the container is returned to the customer. Which solution meets these business requirements while following best practices?

Page: Page 52

Option A: Build a mobile application using Platform Events and RFID integration to ensure proper tracking of the containers and keep the customer informed.

Option B: Involve a Salesforce administrator and build out a declarative solution that will be easy to maintain and likely cost less than customized development.

Option C: Build a customized Lightning Application using Application Events to ensure data integrity.

Option D: Develop a new system with automated notification to move the containers through the repair process while notifying the customer that reported the issue.

Answer(s): 4

Explanation: Not available

SEO Keywords: SEO keywords not available


26. 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?

Page: Page 52

Option A: Create a Hierarchical custom setting to store user preferences

Option B: Use the $Locale value provider to retrieve the user preferences

Option C: Use the $User global variable to retrieve the user preferences

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

Answer(s): 3

Explanation: Not available

SEO Keywords: SEO keywords not available


27. A developer is inserting, updating, and deleting multiple lists of records in a single transaction and wants to ensure that any error prevents all execution. How should the developer implement error exception handling in their code to handle this?

Page: Page 52

Option A: Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement

Option B: Use a Try/Catch and use sObject.addError() on any failures

Option C: Use Database methods to obtain lists of Database.SaveResults

Option D: Use a Try/Catch statement and handle DML cleanup in the catch statement

Answer(s): 1

Explanation: Not available

SEO Keywords: SEO keywords not available


28. A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process. How should a developer implement the callouts?

Page: Page 52

Option A: A Continuation for the billing callout and an HTTP REST callout for the tax callout

Option B: A Continuation for both the billing callout and the tax callout

Option C: An HTTP REST callout for both the billing callout and the tax callout

Option D: An HTTP REST callout for the billing callout and a Continuation for the tax callout

Answer(s): 2

Explanation: Not available

SEO Keywords: SEO keywords not available


29. The Account edit button must be overridden in an org where a subset of users still use 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?

Page: Page 53

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

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


30.

Page: Page 53

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


0/Post a Comment/Comments

#Advertisement

Top Post Ad