Question 41 · 279 in bank
Select 2Which use case is an appropriate fit for the @future asynchronous Apex method? (Choose two.)
Show answer
Answer: BD
Salesforce Certified Platform Developer II279 questions across 28 pages are complete and free, with no account or card.
279 questions in this bank
Free access · progress saved on this device
Which use case is an appropriate fit for the @future asynchronous Apex method? (Choose two.)
Answer: BD
A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records. How should the developer handle the recursive trigger?
Answer: C
A static variable is static only within the scope of the Apex transaction. It’s not static across the server or the entire organization. The value of a static variable persists within the context of a single transaction and is reset across transaction boundaries. For example, if an Apex DML request causes a trigger to fire multiple times, the static variables persist across these trigger invocations. To store information that is shared across instances of a class, use a static variable. All instances of the same class share a single copy of the static variable. For example, all triggers that a single transaction spawns can communicate with each other by viewing and updating static variables in a related class. A recursive trigger can use the value of a class variable to determine when to exit the recursion.
Source: Adapted from community discussion — Liquad
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?
Answer: C
I don't see A being a good answer. Ideally you would want to use flow, and although A is a piece of flow, it itself is not a complete solution. Of the options available, D would be best as it implements lightning components, which may have incorporated flow into it. However, it doesn't need to, it can stand alone and is better with being reactive and is better for mobile apps as well.
Source: Adapted from community discussion — lorenac2
Which statement is true regarding both Flow and Lightning Process? (Choose two.)
Answer: AB
A developer has a page with two extensions overriding the Standard controller for Case. <apex:page standardController="Case" extension="CaseExtensionOne,CaseExtension Two" showHeader="false"> Each extension has a method called Save. The page has a command button as defined: <apex:commandButton value="Save" action="{!save}"/> What will happen when a user clicks the command button?
Answer: D
What is a valid request for the following REST method? (Choose two.) @HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
Answer: AD
{ "s1" : "my first string", "i1" : 123, "s2" : "my second string", "b1" : false } my first string 123 my second string false
Source: Adapted from community discussion — Liquad
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.)
Answer: BD
A developer writes the following code: public with sharing class OrderController() public PaqeReference sendOrder() Order_c order = new Order_c insert order; ExternalOrder externalOrder = new ExternalOrder(order); Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('https://www.example.org/v1/orders'); req.setMethod('POST'); req.setBody(JSON.serialize(externalOrder)); HttpResponse res = h.send(req); order = (ExternalOrder)JSON.deserialize(res.getBody(),ExternalOrder.class); While testing the code, the developer receives the following error message: System.CalloutException : You have uncommitted work pending What should the developer do? (Choose two.)
Answer: BC
What is the most efficient way in Visualforce to show information based on data filters defined by an end-user for a large volume of data?
Answer: B
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
Answer: BC
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
PD2 practice, question 41. 279 questions available.
Version 1.0.0. How we source questions