Platform Developer-2 SU18
Platform Developer-2 SU18
Platform Developer-2 SU18
1) A Salesforce developer created a Contact validation rule so that the Email field cannot contain "abc.com." There
is an active workflow rule that updates the Email field of a contact record to "[email protected]" if the contact's First
Name field contains the word "Test."
A customer tries to create a Contact record with the first name "Test Contact" and the email "[email protected]."
What behavior will be observed?
B. The contact record will be created with the email address "[email protected]."
D. The contact record will be created with the email address [email protected].
FROM Contact
WHERE Department = 'HR' AND Id IN :Trigger.new];
for(Contact c : lstCon)
c.DoNotCall= true;
update lstCon;
The developer executes the following code anonymously in the Developer Console. Assume that the record exists
in Salesforce.
A. The code will throw an exception because the maximum trigger depth has been exceeded.
B. The code will throw an exception, saying that the record cannot be updated in an After Update trigger.
C. The code will throw an exception in Anonymous Apex, indicating that the Id field is read-only.
D. The contact record will be saved and the contact record's DoNotCall field will be set to true.
5) A developer has written a Visualforce page to create a new account with the following markup:
<apex:inputfield value="{!newAccount.website}"/>
The Visualforce page has extra logic for validating the website field. How can the developer add an error message
next to the website field if the submitted value isn't valid?
6) A developer has created an Order entry page that includes an <apex:outputLabel> tag for a field label.
How can the developer ensure that the label text changes when the field label changes?
AccountHandler.insertPartnerAccount(a);
@future
perform processing
if( a.Is_Partner__c)
set values
insert partnerAccount;
What governor limit or system limitation is the developer most likely violating?
8) A developer needs to write tests to ensure that code doesn't fail when it is deployed to a different organization.
The developer also must ensure that the code works properly with organization sharing rules and ensure that the
code mitigates errors due to limits. How can the developer meet these requirements? Choose 2 answers
A. Create all test data before calling the Test. startTest () and Test .stopTest () methods.
B. Handle all exceptions that are caught by adding an empty catch ( Exception e) statement.
C. Use SeeAllData=true to avoid delaying tests due to creating test data.
D. Use the runAs ( ) method to test the application in different user contexts.
9) What is a controller value that will NOT be saved in the viewstate of a Visualforce page?
Choose 3 answers
10) A developer must create a way for external partners to submit millions of leads into Salesforce per day. How
should the developer meet this requirement?
11) A developer created a Visualforce page that has a custom controller that navigates to an external website
after the' command button is pressed. What is the recommended way to test this functionality?
A. Use .getURLU on the result of the action method and System.assertEquals () to compare the resulting URL.
D. Test the navigation by executing the use case through the browser and manually inspecting the
resulting URL.
12) An Apex test method is testing a Visualforce page's controller, which queries for all Opportunities in Salesforce
with StageName = 'Closed'. There are 10,000 existing records that match the criteria.
What is the best practice for accessing data in the test method?
13) In an Apex custom controller, how should a developer ensure that the current user has the relevant create and
update' permissions for a particular object type?
B. Query the user's profile record and check what permissions the user has.
3 Savepoint sp = Database.setSavepoint();
4 insert con;
5 Database.rollback(sp);
7 con.LeadSource = 'Email'
8 insert con;
A List<sObj ect> testAccounts = (Listhcount>) [Select Id, Body from StaticResource Where Name
= testAccounts
D. List<sObj ect> testAccounts = Test . loadData( [Select Id, Body from StaticResource Where Name
=testAccounts
16) What is the top-level namespace that provides the ability to use Chatter in Apex?
A,. RestApi
B. ChatterApi
C. FeedApi
D. ConnectApi
17) What type of request and payload format can be received by a static method in a global Apex class that uses
the webService keyword?
A. REST/JSON
D. SOAP/XML
18) Which object should be used to access sharing programmatically on an object named Equipment-c?
A. Equipment_Share_c
B. Equipment-c
C. Equipment_c_share
D. Equipment__Share
19) A company has 20,000 rows in the Account object and 2 million rows in the Sales_Data_c object that is related
to Account. All of the records in the Sales_Data_c object have a field that contains the string 'Le.‘ Which statement
will throw a "Too many query rows" exception? Choose 2 answers
20) What should a developer do to invoke a SOAP web service from Apex? Choose 2 answers
21) A user updates a number field on a record from the value of 1 to 2, and a workflow rule executes, incrementing
the value to 3. Which statement is true regarding writing triggers in this case?
Choose 2 answers
22) Trigger on Contact ensures that whenever a Contact's custom field "User Level" is given the value "President,"
the related Community User's Role is updated as Manager. The Apex unit test method for testing this functionality
is failing for a mixed DML error. What is one way that this problem can be solved?
A. Query the user roles before the test method's startTest () statement.
23) A developer needs to compile a list of 105 for all Accounts and Opportunities that have the word "Acme" in
their name' and are created today.
A.FIND ""Acme"" IN NAME FIELDS RETURNING Account (Id), Opportunity (Id) WHERE CreatedDate
TODAY
B. SELECT Id, AccountId FROM Opportunity WHERE CreatedDate = TODAY AND ( Name LIKE '%Acme’a'
C. SELECT Id, ( SELECT Id FROM Opportunities WHERE CreatedDate = TODAY ) FROM Account WHERE
D.FIND ""Acme‘“ IN NAME FIELDS RETURNING Account (Id WHERE CreatedDate = TODAY), Opportunity (Id WHERE
CreatedDate = TODAY)
ANS-Not sure.
24) What is the potential exception that can be thrown from this SOQL query:
Choose 2 answers
25) What field type can be used in the WHERE clause to improve SOQL query performance?
Choose 3 answers
A. Email fields
B. Name fields
C. Telephone fields
D. Lookup fields
E. External Id fields
26) A developer needs to design a custom object that will be integrated into a back-end system.
What should the developer do to ensure good data quality and to ensure that data imports, integrations, and
searches perform well?
Choose 2 answers
27) A developer has been asked to prevent Accounts from being deleted if there is a related Contact that has the
Do_Not_Delete_c checkbox checked.
28) What is the recommended approach to create test data when testing Apex that involves Pricebooks,
PricebookEntries, and Products?
A. Insert a new standard Pricebook record within your Test Method so that it can be used with other test records.
B Use the Test.getStandardPricebookId() method to get the Id of the standard Pricebook so that it can be used
with other test records.
C. Use the isTest (SeeAllDataFtrue) annotation on Test Methods that require access to the standard Pricebook.
D .A Use the isTest (SeeAllData=true) annotation on the entire Test Class to allow your Test Methods access to the
standard Pricebook.
29) A developer has refactored an application and renamed an Apex class in a sandbox and now needs to deploy
the changes to production. How can this be accomplished? Choose 2 answers
A. Deploy the new Apex class with the Force.com Migration Tool and set the old name in destructiveChanges.xml.
B. Use a changeset to both delete the old Apex class and deploy the new Apex class to production.
C. Deploy the new Apex class, and then log in to the production environment and manually delete the class.
D. Use the Force.com IDE to delete the old Apex class from the project and deploy the changes to production.
B. Making asynchronous callouts to SOAP or REST Web Services from Visualforce. Correct Answer
2 insert con;
5 con.Department = 'finance';
6 update con;
9 con.Department = 'HR';
10 update con;
11
12 Database.rollback(3p_flnance);
l3 Database.rollback(3p_hr);
A. The contact record will be saved ME department value HR.
Choose 2 answers
A. trigger context.
B. In @future context.
33) A developer needs to create a Visualforce page to override the standard New Contact Button. The page
contains a field of for capturing the Contact's daytime preferred Phone number. The user has the option to select
one of the four available phone types (Mobile, Home, Work, or Other) to be the primary contact number. Only if
the "Other" Phone Type option is selected, the page must display a text box for the User to provide the other
Phone number.
A- Use the rendered attribure on the Other Phone Input text field to control its selective display.
B. Use the apex:rendered tag to enclose the Other Phone input text field to control its selective display.
C. Use the rerender attribute on the Phone Type select Iist's apex:actionsupport to refresh the Other Phone text
field.
D. Use apex:actionsupport tag to enclose the Phone Type select list to refresh the Other Phone text field.
35) 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?
A. Use an Apex controller to refine raw data based on data filters and store the result in a transient variable.
B. Use an Apex controller to refine raw data based on data filters and store the result in a snauc variable.
C. Use the rendered condition in Visualforce to limit data based on data filters.
D. Use filter conditions in a SOQL query to limit data based on data filters.
36) How can Apex class functionality be exposed for invocation from a Lightning process?
Choose 2 answers
37) What log category should be used to see the limits in the Execution Overview of the Developer Console?
A. System
B. Profiling
C. Apex Code
D. Database
38) 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?
39) A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST
web service. A certificate signed by an appropriate certificate authority has been provided to the developer.
Choose 2 answers
40) A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has
decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.
Choose 2 answers
A. @RemoteAction
B. @RemoteAction
C. @RemoteAction
D.@Remoteobject
41) What does the System. runAs () method enforce based on the target user?
B. Record sharing
C. Field-level permissions
D. License limits
Choose 3 answers
A. The schedule of an Active scheduled Apex class cannot be updated through the Salesforce User Interface.
C. Scheduled Apex only supports asynchronous callouts through the use of @future methods and Apex Batches.
D. Scheduled Apex classes can only be defined by extending the Schedule base class.
E. There is no limit on Scheduled Apex jobs because they are executed asynchronously.
44) A developer has created a solution using the SOAP API for authenticating Communities users. What is needed
when issuing the login()Call? Choose 2 answers
A. Organization Id
B. Security Token
C. Session Id
45) Which statement is true about Apex web service methods? Choose 3 answers
A. Web service methods can be exposed having a custom Apex class as parameter datatype.
B. Web service methods can be overloaded with methods of the same name in the same class.==X
C. Web service methods can only be added to Apex classes that are declared global.
D. Web service methods can only be added to Apex triggers that are declared global.==X
46) A developer has created a Visualforce page for inputting data and needs to display errors at the field level.
What tag should the developer use?
A, <apexes :messages>
B. <apexzpageMessages>
C, <apex:message>
D_<apex:pageMessage>
47) A developer must create a custom pagination solution for accessing approximately 2000 records and
displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.
C. Use a StandardSetController.
48) Given the following code sample, what is a potential issue regarding bulk processing of records?
List <Contact> contacts = new List <Contact> ([select id, salutation, firstname, lastname,
update contacts;
A. The code will not execute because the record in the list can be null and cause an exception.
B. The code will process one record that is called explicitly per execution.
C. The code will not execute because the list can be null and cause an exception.
D. The code will have to be invoked multiple times to process all the records.
49) How could a developer create a Visualforce page for a multi-language organization?
Choose 2 answers
B. Use custom labels to display validation rule errors in the current user's language.
50) Which object can a developer use to programmatically determine who is following a specific User record in
Chatter?
A. EntitySubscription
B. FollowHistory
C. FollowSubscription
D. Entityfiistory
51) What is the value of "i" printed by the System.debug statement, if the value of "j" is 2 at the end of the
transaction?
integer i = 0;
integer j;
j=tmp.size();
i++;
System.debug(i);
A.0
B.2
C. 1
D. 3
Choose 3 answers
53) What is a limitation of a "getxxx" method (for example, getName) in a custom Visualforce controller?
54) A company requires that a child custom record is created when an Order record is inserted. The company's
administrator must be able to make changes to the solution.
A. Create a Visual Workflow that will create the custom child record when the Order is inserted.
B. Create a Force.com Workflow Rule to create the custom child record when the Order is inserted.
C. Create an Apex Trigger to create the custom child record when the Order is inserted.***
D. Create a Lightning Process to create the custom child record when the Order is inserted.
55) A developer must create a custom pagination solution. Users will access the solution on a mobile device and
will rarely access subsequent pages of records. Performance is crucial.
B. Use a StandardSetController.
Choose 2 answers
B. To prevent Apex interface definitions being included in the Apex-based partner WSDL.
C. To prevent Apex controller variables being sent to the Visualforce page as view state.
D. To exclude Apex class variables from getting serialized if they are in a serializable class
57) A company requires all internal users to submit a Case for adding a new Account in Salesforce. The case record
captures all the data required to create an Account. The case approval process is a manual process. When a case is
approved, an Account record should automatically be created based on the case details. What is the
recommended solution?
A. Configure a custom button on the Case page to update the Case Status and insert a new Account record.
B. Develop an After Update trigger on Case to create an Account record based on Case Status.
C. Develop a Before Update trigger on Case to create an Account record based on Case Status.
D. Develop a Lightning Process to create an Account Record when the Case status becomes Approved.
58) Which tool in the Developer Console can a developer use to monitor the cardinality and the cost of a SOQL
query?
C. Audit Log
D. Query Activity Tool
Choose 2 answers
60) A Visualforce page controller calls an external web service to get a list of records and display them on the page.
The external web service has a complex backend and generally takes a long time to return results, causing
timeouts. What can be done to avoid timeouts and display the results without any errors?
A. Use the setTimeout () method on the HttpRequest to increase the timeout of the callout.
B. Create a callback method and create an instance of a Continuation object in an action method.
C. Implement the Batchable interface to perform the callout and capture the response in the batch job.
D. Use the <apex:actionPoller> tag and keep polling to check the status of the response in the controller.
Platform developer-2-Set1
61) A developer is writing a complex application involving triggers, workflow rules, Apex classes, and
processes. The developer needs to carefully consider the order of execution when developing the
application.
1. before Triggers
2. after Triggers
5. Workflow rules
B. 1, 5, 6, 2, 4, 3
c. 1, 2, 4, 5,6, 3
D. 1, 6,5,2,4,3
62) A developer has been asked to create code that will meet the following requirements:
A. @future (callout=true)
B. Database.AllowsCallouts interface
C. Schedulable interface
D. Queueable interface
63) A developer wants to retrieve and deploy metadata, perform simple CSV export of query results, and
debug Apex REST calls by viewing JSON responses.
A. C Developer Console
C. O Workbench
D. O Force.com IDE
64. What is a best practice when unit testing a controller? Choose 2 answers
A. Simulate user interaction by leveraging Test.setMock().
65) What Visualforce tag can be used to display custom messages in pages using the Salesforce UI styling
for errors, warnings, and other types of messages?
A. <apex: customMessage
B. <apex:error>
c- <apex:message>
D. <apex:pageMessage>
66) A developer has created a Team Member sObject that has a Master-Detail relationship to a Project
sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on
a Team Member record has Read-Write access to the parent Project record.
How can the developer accomplish this if the Project sObject has a Private sharing model and thousands
of Project records?
D. Create a Project Sharing Rule that shares to the Team Member Group.
67) Given the following code, what value Will be output in the logs by line #8?
2 insert con;
6 update con;
7 Database.rollback(sp_admin);
8 console.log(Limits.getDmlStatements());
A. 5
B.3
C.4
D.2
68) What is a recommended practice with regard to the Apex CPU limit?
Choose 2 answers
69) A developer wants to create a Visualforce page that allows a user to search for a given account by
Name. If the account is found, the account details should be populated on screen. If no account is found,
an error message should be displayed to the user.
Choose 2 answers
Choose 3 answers
71) A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is
created for that Case. The issue is that multiple Survey-c records are being created per Case.
insert createSurveys;
if(!lstAllOpp.isEmpty())
processOpportunity = true;
while(processOpportunity){
for(opportunity o : lstAllOpp)
opptysClosedLost.add(o);
processOpportunity = false;
if(!opptysClosedLost.isEmpty())
delete opptysClosedLost; (could not find any error , was able to execute successfully , can you check the
question once) There is a possibility of D being the answer if no error in the question.
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.
D. The code will result in a System.LimitException: Apex CPU time limit exceeded error.
73) The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What
is the outcome after executing the following code snippet in the org?
List<Contact> contactsToBeInserted=new List<Contact>();
contactsToBeInserted.add(contactlnstance);
contactsToBeInserted.add(contactlnstance);
Database.insert(contactsToBeInserted,true);
A. Both inserts succeed and the contact record that has the Zone value of 'PI‘I'I" is set to NULL.
B. A partial insert succeeds and the contact record that has the Zone value 'IAD' is inserted.
C. Both inserts succeed and the contact record that has the Zone value of 'PITT" is truncated.
74) Which statement is true regarding the use of user input as part of a dynamic SOQL query?
D. The string should be URL encoded by the input form to prevent errors.
A. processList (acc)
76) A developer needs to design a custom object that will be integrated into a back-end system.
What should the developer do to ensure good data quality and to ensure that data imports,
integrations, and searches perform well?
Choose 2 answers
77) A developer encounters an error that states that the Apex heap size is exceeded.
78) A developer has a Debug method within a class, which is invoked hundreds of times.
What is the optimal functionality in the Developer Console to count the number of calls made to the
method?
Choose 2 answers
A. Test methods must execute the batch with a scope size of less than 200 records.
D. Test methods must run the batch between Test. startTest () and Test.stopTest
80) A custom field Exec_Count_c of type Number is created on an Account object. An account record
with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c
field, to increment its value every time an account record is created or updated. The following trigger is
defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update)
if (Trigger . isBefore){
What is printed from the System.debug statement? Output from System.debug in every iteration is
seperated with a delimiter.
A. 1,2,3,3
B. 1,2,3,4
c. 2,2,4,4
D. 2,2,3,3
81) A developer is working on code that requires a call to an external web service from a batch.
How should the developer enable this functionality?
C. Implement an @future method for the callout, and invoke it from the batch.
82) A developer must create a custom pagination solution for accessing approximately 2000 records
and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via
Apex.How can the developer meet these requirements?
Choose 2 answers
A. Use a StandardSetController.
83) A developer must create a way for external partners to submit millions of leads into Salesforce per
day. How should the developer meet this requirement?
Choose 2 answers
A @HttpPatch
B. @HttpDelete
C. @HttpUpsert
D. @HttpAction
85) A customer requires that when the billing address field on an Account gets updated, the address
field on all its related contact records should reflect the same update.
A. Create an After Trigger on Account to update its related contact records on update.
D. Create a scheduled batch job that updates all contact address fields based on the related Account
record.
AccountTriggerHelper.notinyxternalSystem(updatedAccount.id);
future(callout=true)
req.setEndpoint('http://example.org/restService');
req.setMethod('POST');
req.setBody(JSON.serialize(acc));
87) 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.
A. Use <apex: actionFunction> to create a JavaScript wrapper for the controller method.
B. Use the @RemoteAction annotation on the method definition with JavaScript Remoting.
C. Use the SController global variable to access the controller method via JavaScript.
D. Use (apex: actionSupport> to enable JavaScript support for the controller method.
88) A company exposes a REST web service and wants to establish two-way SSL between Salesforce and
the REST weB' service. A certificate signed by an appropriate certificate authority has been provided to
the developer.
Choose 2 answers
Choose 2 answers
90) A developer created a custom component to display an HTML table. The developer wants to be able
to use the component on different Visualforce Pages and specify different header text for the table.
A. < apex:variable>
B. < apex:define>
C. <apex:param>
D. < apex:attribute>
Choose 2 answers
92) How can the DISTANCE and GEOLOCATION functions be used in SOQL queries?
Choose 2 answers
93) A developer has created a solution using the SOAP API for authenticating Communities users. What
is needed when issuing the login()Call?
Choose 2 answers
A. Organization Id
B. Session Id
D. Security Token
94) When developing a Visualforce page that will be used by a global organization that does business in
many languages and many currencies, which feature should be used?
Choose 3 answers
A. Custom Labels
B_ convertCurrency()
C. Global Labels
D. Translation Workbench
E, getLocalCurrency()
What can the developer use to provide test data to the test methods?
Choose 2 answers
[FIND 'map"' IN ALL FIELDS RETURNING Account (Id, Name) , Contact, Opportunity, Lead]
A. List<sobject>
B. List<List<sObj ect>>
C, List<AggregateResult>
D, List<Account>
Choose 3 answers
A. Users
B. Groups
C. Profiles
D. Roles
E. Organization
98) A developer has created a Visualforce page that uses a third-party JavaScript framework. The
developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex
Controllers.
Choose 2 answers
A @RemoteAction
B. @RemoteAction
C. @RemoteAction
public static String getTable()
E] @Remoteobject
Choose 3 answers
A. Streaming API
B. Test API
c. Tooling API
D. SOAP API
E. Metadata API
100) Which statement is true about using ConnectApi namespace (also called Chatter in Apex)?
Choose 2 answers
A. Chatter in Apex methods honor the 'with sharing' and 'without sharing' keywords.
C. Chatter in Apex methods do not run in system mode; they run in the context of the current user.
D. Many test methods related to Chatter in Apex require the BIsTest (SeeAllData=true) annotation.
101) A developer receives a LimitException: Too many query rows: 50001 error when running code.
What debugging approach using the Developer Console provides the fastest and most accurate
mechanism to identify a specific component that may be returning an unexpected number of rows?***
A. Count the number of Row Limit warning messages in the Debug Logs.
C. Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query.
D. Use the Execution Overview to see the number of rows returned by each Executed Unit.
102) A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a
custom object.
What is the recommended mechanism the developer should use to accomplish this?
A. Schema class
B. Apex API
C. Schema Builder
D. Metadata API
103) A developer is building a Visualforce page that interacts with external services.
Choose 2 answers
A, HTTPCalloutMock
B, HTTPRequestMock
C, HTTPResponseMock
D, StaticResourceCalloutMock
104) 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?
return null;
A_System.assertEquals(true, isFreezing(null));
C System.assertEquals(null, isFreezing('asdf'));
D.System.assertEquals(true, isFreezing('lOO'));
106) During the order of execution of a Visualforce page GET request, what happens after this step:
107) A developer has generated Apex code from a WSDL for an external web service. The web service
requires Basic authentication.
109) Employee-c is a Child object of Company-c. The Company-c object has an external Id field
Company_Id_c. How can a developer insert an Employee-c record linked to Company-c with a
Company_Id_c of '999'?
insert emp;
insert emp;
insert emp;
insert emp;
110) 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?
111) Which use case is an appropriate fit for the @future asynchronous Apex method?
Choose 2 answers
A. A developer has jobs that need larger query results than regular transactions allow.
B. A developer needs to segregate DML operations and bypass the mixed save DML error.
C. A developer has long-running jobs with large data volumes that need to be performed in batches-
D. A developer has long-running methods and needs to prevent delaying an Apex transaction.
112) 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.
A. Deactivate the trigger and move the logic into a Process or Flow.
B. Deactivate the workflow rule to prevent the field update from executing.
C. Use a static variable to prevent the trigger from executing more than once.
D. Use a global variable to prevent the trigger from executing more than once.
113) A company wants to create a dynamic survey that navigates users through a different series of
questions based on their previous responses.
114) Which statement is true regarding both Flow and Lightning Process? Choose 2
115) A developer has a page with two extensions overriding the Standard controller for Case.
showHeader="false">
Each extension has a method called Save. The page has a command button as defined:
@HttpPost
global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
Choose 2 answers
A. <request>
<b1>false</bl>
</request>
B.<reguest>
<il>123</il>
<bl>false</bl>
</request>
11" : "123",
"b1" : "false",
D. il" : 123,
“bl" : false
117) 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.
Choose 2 answers
A. The test does not call Test.startTest()
insert order;
req.setEndpoint('https://www.example.org/v1/orders');
req.setMethod('POST');
req.setBody(JSON.serialize(externalOrder));
While testing the code, the developer receives the followmg error message:
Choose 2 answers
A. Use the asyncSend() method of the HTTP class to send the request in async context.
119) 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?
A. Use the rendered condition in Visualforce to limit data based on data filters.
B. Use filter conditions in a SOQL query to limit data based on data filters.
C. Use an Apex controller to refine raw data based on data filters and store the result in a transient
variable.
D. Use an Apex controller to refine raw data based on data filters and store the result in a static variable.
120) What is the optimal syntax for adding a link to a case in a Visualforce page?
Choose 2 answers
[] {lcase.Name}
</apex:outputLink>
[] {lca3e.Name}
</apex:outputLink>
(LIE {!case.Name}
</apex:outputLink>
[] {lcaSe.Name}
</apex:outputLink>