Question 151: Correct
An org has an existing Visualflow thatcreates an opportunity with an update records
element. A developer must update the Visual Flow to also create a Contact and store
the created Contact's ID on the Opportunity.
Which update should the developer make in the Visual Flow?
• Add a new get records element.
Add a new quick action (of type create) element.
• Add a new create records element.(Correct)
• Add a new update records element.
Question 152: Correct
Ursa Major Solar(UMS) uses a custom object called Vendor. The Vendor custom object
has a Master-Detail relationship with the standard Account object.
Based on some internal discussions, the UC administrator tried to change the
Master-Detail relationship to a Lookup relationship but was not able to do so.
What is a possible reason that this change was not permitted?
• The Account records contain Vendor roll-up summary fields.(Correct)
The Vendor object must use a Master-Detail field for reporting.
The Vendor records have existing values in the Account object.
• The Account object is included in a workflow on the Vendor object.
Question 153: Correct
Universal Containers recently transitioned from Classic to Lightning Experience. One of
its business processes requires certain values from the Opportunity object to be sent
via an HTTP REST callout to its external order management system based on a
user-initiated action on the Opportunity detail page. Example values are as follows:
Name
Amount
•
Account
Which twO methods should the developer implement to fulfill the business requirement?
Choose 2 answers.
• Create a Visualforce page that performs the HTTP REST callout, and use a
Visualforce quick action to expose the component on the Opportunity detail
page. (Correct)
• Create a Lightning component that performs the HTTP REST callout, and use a
Lightning Action to expose the component on the Opportunity detail
page.(Correct)
• Create an after update trigger on the Opportunity object that calls a helper
method using @Future (Callout=true) to perform the HTTP REST callout.
• Create a Process Builder on the Opportunity object that executes an Apex
immediate action to perform the HTTP REST callout whenever the Opportunity is
updated.
Question 154: Correct
The Job_Application_c custom object has a field that is a Master-Detail relationship to
the contact object, where the contact object is the Master. As part of feature
implementation, a developer needs to retrieve a list containing allcontact records where
the related Account Industry is Technology' while also retrieving the contact's
Job_application crecords.
Based on the object's relationships, what is the most efficient statement to retrieve the
list of contacts?
(SELECT ld, (SELECT Id FROM Job_Application_c) FROM Contact WHERE
Account.Industry =Technologyl:
• (SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE
Accounts.Industry =Technology:
• (SELECT Id, (SELECT Id FROM Job_Applications) FROM Contact WHERE
Accounts.Industry = Technology1:
• (SELECT Id, (SELECT Id FROM Job_Applications) FROM Contact WHERE
Account.Industry =Technology]:(Correct)
Question 155: Correct
Which exception type cannot be caught?
• No Access Exception.
A Custom Exception.
• Limit Exception.(Correct)
• Callout Exception.
Question 156: Correct
A developer completed modifications to a customized feature that is comprised of two
elements:
• Apex trigger
•
Trigger handler Apex class
What are two factors that the developer must take into account to properly deploy the
modification to the production environment?
Choose 2 answers.
• Test methods must be declared with the testMethod keyword.
• All methods in the test classes must use @isTest.
Apex classes must have at least 75% code coverage org-wide.(Correct)
At least one line of code must be executed for the Apex trigger.(Correct)
Question 157: Correct
A developer needs to have records with specific field values in order to test a new Apex
class.
What should the developer do to ensure the data is available for the test?
• Use Anonymous Apex to create the required data.
• Use SOQL to query the org for the required data.
• Use Test.loadData) and reference a CSV file.
• Use Test.loadData) and reference a static resource.(Correct)
Question 158: Correct
A developer must create a lightning component that allows users to input Contact
record information to create a Contact record, including a salary_c custom field.
What should the developer use, along with a lightning a lightning-record- edit- form, so
that Salary_c field functions asa currency input and is only viewable and editable by
users that have the correct field level permissions on Salary_c?
<lightning-input-currency value="Salary_c>
o </lightning-input-currency>
<lightning-input type="number" value="Salary. c formatter="currency">
<lightning-formatted-number value ="Salary_c'format-style="currency">
<lightning-input-field field-name="Salary_c>
o
</lightning-input-field>(Correct)
Question 159: Correct
Universal Containers has a large number of custom applications that were built using a
third-party JavaScript framework and exposed using Visualforce pages.
The company wants to update these applications to apply styling that resembles the
look and feel of Lightning Experience.
What should the developer do to fulfill the business request in the quickest and most
effective manner?
• Rewrite all Visualforce pages as Lightning components.
Enable Available for Lightning Experience, Lightning Communities, and the
mobile app on Visualforce pages used by the custom application.
Incorporate the Salesforce Lightning Design System CSS stylesheet into the
JavaScript applications.
• Set the attribute enable Lightning to true in the definition. (Correct)
Question 160: Correct
Inthe Lightning Ul, where should a developer look to find information about a Paused
Flow Interview?
• In the system debug log by filtering on Paused Flow Interview.
In the Paused Interviews sections of the Apex Flex Queue.
. On the paused Flow Interviews component on the Home page. (Correct)
On the Paused Flow lnterviews related list for a given record.
Question 161: Correct
What are three benefits of using declarative customizations over code?
Choose 3 answers.
• Declarative customizations automatically update with each Salesforce
release.(Correct)
• Declarative customizations cannot generate run-time errors.
Declarative customizations do not require user testing.
• Declarative customizations have more flexibility related to limits.(Correct)
Declarative customizations generally require less maintenance. (Correct)
Question 162: Correct
Universal Containers uses Service Cloud with a custom field, Stage_c, on the Case
object.
Management wants to send a follow-up email reminder 6 hours after the stage_c field is
set to "Waiting on Customer". The sales Administrator wants to ensure the solution
used is bulk safe.
Which two automation tools should a developer recommend to meet these business
requirements?
Choose 2 answers
Scheduled Flow.(Correct)
Process Builder. (Correct)
Einstein Next Best Action.
Record-Triggered Flow.
Question 166: Correct
Which action causes a before trigger to fire by default for Accounts?
Updating addresses using the Mass Address update tool.
Importing data using the Data Loader and the Bulk API.(Correct)
• Converting Leads to Contact accounts.
• Renaming or replacing picklists.
Question 167: Correct
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are
met, the flow must call an Apex method to complex validation involving several types of
objects.
When creating the Apex method, which annotation should a developer use to ensure the
method can be used within the flow?
@future
• @lnvocableMethod(Correct)
@AuraEnabled
@RemoteAction
Question 168: Correct
Universal Containers hires a developer to build a custom search page to help users find
the Accounts they want. Users will be able to search on Name, Description, and a
custom comments field.
Which consideration should a developer be aware of when deciding between SOQL and
SOSL?
Choose2 answers.
• SOSL is faster for text searches.(Correct)
SOQL is faster for text searches.
SOQL is able to return more records.(Correct)
SOSL is able to return more records.
Question 169: Correct
developer created this Apex trigger that calls
A
Myclass.myStaticMethod: Trigger myTrigger on Contact (before insert)
{
Myclass.myStaticMethod (trigger.new, trigger.oldMap };
The developer creates a test class with a test method that calls
MyClass.mystaticMethod, resulting in 81% overall code coverage.
What happens when the developer tries to deploy the trigger and two classes to
production, assuming no other code exists?
The deployment fails because the Apex trigger has no code coverage.(Correct)
• The deployment passes because the Apex code has required (>75%) code
coverage.
• The deployment passes because both classes and the trigger were included in
the deployment.
• The deployment fails because no assertions were made in the test method.
Question 170: Correct
Which two sfdc commands can be used to add testing data toa Developer sandbox?
Choose 2 answers.
• Force:data:tree:import(Correct)
Force:data:async.upsert
• Force:data:bulk:upsert(Correct)
Force:data:object:create
Question 171: Correct
A Next Best Action strategy uses an Enhance Element that invokes an Apex method to
determine a discount for a Contact, based on a number of factors.
What is the correct definition of the Apex Method?
• @InvocableMethod
o
Global staticList<List<Recommendation>> getLevel(List<ContactWrapper>
input)
o
{/*implementation /)(Correct)
• @lnvocableMethod
o
Global static ListRecommendation getLevel(List<ContactWrapper> input)
o
(/*implementation*/}
• @lnvocableMethod
o
Global List<List<Recommendation>> getLevel(List<ContactWrapper>
input)
)
o
{/*implementation*/
@lnvocableMethod
o
Global Recommendation getlevel(ContactWrapper input)
o {/*implementation*/}
Question 172: Correct
A developer created a Lightning web component called statusComponent to be inserted
into Account record page.
Which two things should the developer do to make this component available?
Choose 2 answers.
• Add <target>lightning RecordPage</target> to the statusComponent.js-meta.xml
file. (Correct)
• Add <target>lightning RecordPage</target> to the statusComponent,js file.
Add <masterLabel>Account</masterlabel> to the statusComponentjs-meta.xml
file
Add <isExposed>true</lisExposed> to the statusComponent,js-meta.xml
file.(Correct)
Question 173: Correct
What are two ways a developer can get the status of an enqueued job fora class that
implements the queueatble interface?
Choose 2 answers.
Query the AsyncApexJob object. (Correct)
• View the apex Jobs page.(Correct)
• View the apex flex Queue.
View the apex status Page.
Page 72 / 89
Question 174: Correct
Given the following code snippet, that is part of a custom controller for a Visualforce
page:
Public void updateContact(Contact thisContact)(
thisContact.Is_Active_c = false;
try{
update thisContact;
} catch(Exception e){
String errorMessage ='An error occurred while updating the Contact,
te.getMessage( )}
ApexPages.addmessage(new
ApexPages.message(ApexPages.severity.FATAL,errorMessage))
Inwhich two ways can the try/catch be enclosed to enforce object and field-level
permissions and prevent the DML statement from being executed if the currently
logged-in user does not have the appropriate level of access?
Choose 2 answers.
• Use if(thisContact.Ownerld == Userinfo.getUserld())
• Use if(Schema.sObjectType.Contact.IsAccessible())
• Use if(Schema. sObject Type.Contact. fields.IsActive c.isUpdateable( )(Correct)
• Use if(Schema.sObjectType.Contact.isUpdatable()) (Correct)
Question 175: Correct
How should a custom user interface be provided when a user edits an Account in
Lightning Experience?
• Override the account's edit button with a Lightning page.
• Override the account's edit button with a Lightning action.
• Override the account's edit button with a lightning flow.
• Override the account's edit button with a lightning component. (Correct)
Question 176: Correct
A Lightning component has a wired property, searchresults, that stores a list of
Opportunities.
Which definition of the Apex method, to which the searchresults property is wired,
should be used?
• @AuraEnabled (cacheable=true)
o
Public static List<Opportunity> search (String term) { / implementation "/
XCorrect)
• @AuraEnabled (cacheable=true)
o
Public List<Opportunity> search (String term) {/* implementation "/}
• @AuraEnabled (cacheable=false)
o
Public List<Opportunity> search (String term) { /* implementation */)
• @AuraEnabled(caceable=false)
o
Public static List<Opportunity> search (String term) { /* implementation
*/}
Question 177: Corect
Refer to the following code that runs in an execute anonymous block:
:
for(List<Lead>theseLeads [SELECT LastName, Company, Email FROM Lead LIMIT
2000)%
for(Lead this Lead:theseLeads)
if (thisLead.Email == null)
thisLead.Email = assignGenericEmail (thisLead.LastName,
thisLead.Company):
Database.Update(theseLeads,false):
In an environment where the full result set is returned, what is a possible outcome of
this code?
• The transaction will succeed and the full result set changes will be committed to
the DB.(Correct)
The total number of DML statements issued will be exceeded.
The total no of records processed as a result of DML Statements will be
exceeded.
The transaction will succeed and the first ten thousand records will be
committed to the DB.
Question 178: Correct
Which two are best practices when it comes to Aura component and application event
handling?
Choose 2 answers.
Try to use application events as opposed to component events.
Use component events to communicate actions that should be handled at the
application level.
Handle low-level events in the event handler and re-fire them as higher-level
events.(Correct)
Reuse the event logic in a component bundle, by putting the logic in the
helper.(Correct)
Question 179: Correct
Which Salesforce feature allows a developer to see when a user last logged in to
Salesforce if real-time notification is not required?
Asynchronous Data Capture Events
Event Monitoring Log.(Correct)
Developer Log.
Calendar Events.
Question 180: Correct
A developer must modify the following code snippet to prevent the number of SOQL
queries issued from exceeding the platform governor limit.
public without sharing class OpportunityService{
public static List<OpportunityLineltem> getopportunityProducts (Set<ld>
opportunitylds) {
List<OpportunityLineltem> oppLineltems = new List<OpportunityLineltem> ():
For (Id thisOppld : opportunitylds)\
oppLineltems.addAll ( [Select ld FROM OpportunityLineltem WHERE
Opportunityld = thisOppld] ):
Return oppLineltems;
The above method might be called during a trigger execution via a Lightning
component.
Which technique should be implemented to avoid reaching the governor limit?
Use the System.Limits.getLimitQueries() method to ensure the number of
queries is less than 100.
Use the System.Limits.getQueries() method to ensure the number of queries is
less than 100.
Refactor the code above to perform the SOQL query only if the Set of
opportunitylds contains less 100 lds.
Refactor the code above to perform only one SOQL query, filtering by the Set of
opportunitylds.(Correct)
Question 181: Correct
A developer has the following requirements:
•
Calculate the total amount on an order.
•
Calculate the line amount for each Line lItem based on the quantity selected and
price.
.
Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements?
An order has a Lookup field to Line item and there can be many Line Items per
Order.
Line Item has a Master-Detail field to Order and the Master can be
re-parented.(Correct)
An order has a Master-Detail field to Line Item and there can be many Line Items
per order.
Line Item has a lookup field to Order and there can be many Orders per Line
Items.
Question 182: Correct
Which Lightning code segment should be written to declare dependencies on a
Lightning component, caccountList, that is used in a Visualforce page?
<aura:application access="GLOBAL>
o caura:dependency resource="c:accountList"/>
o </aura:application>
<aura:component access="GLOBAL'
o <aura:dependency resource-"c:accountList"/>
o </aura:component>
<aura:component access="GLOBAL' extends="1tng:outApp">
o caura:dependency resource="c:accountList'/>
o </aura:component>
<aura:application access="GLOBAL extends="1tng:outApp">
o <aura:dependency resource-"c:accountList"/>
o </aura:application>(Corect)
Question 183: Correct
Which statement generates a list of Leads and Contacts that have a field with the
phrase 'ACME?
• Map <sObject> searchList = [FIND "ACME*" IN ALL FIELDS RETURNING Contact,
Lead:
List<List <sObject>> searchList = [FIND *ACME* IN ALL FIELDS RETURNING
Contact, Lead):(Correct)
List<List <sObject>> searchList = (SELECT Name, ID FROM Contact, Lead WHERE
Name like 'ACME]:
List <sObject> searchList = [FIND *ACME IN ALL FIELDS RETURNING Contact,
Lead:
Question 184: Correct
Which two settings must be defined in order to updatea record of a junction object?
Choose 2 answers.
Read/Write access on the secondary relationship.(Correct)
Read access on the primary relationship.
Read/Write access on the junction object.
Read/Write access on the primary relationship. (Correct)
Question 185: Correct
Which three statements are true regarding custom exceptions in Apex?
Choose 3 answers.
• custom exception class
A must extend the system Exception class. (Correct)
custom exception class cannot contain member variables or methods.
A
• Acustom exception class can extend other classes besides the Exception class.
A custom exception class name must end with 'Exception.(Correct)
A custom exception class can implement one or many interfaces.(Correct)
Question 186: Correct
An Opportunity needs to have an amount rolled up from a custom object that is not in a
Master/Detail relationship.
How can this be achieved?
Use the Streaming APl to create real-time roll-up summaries.
• Writea trigger on the child object and use a red-black tree sorting to sum the
amount for all related child objects under the Opportunity.
• Writea trigger on the child object and use an aggregate function to sum the
amount for all related child objects under the Opportunity. (Correct)
Write a Process Builder that links the custom object to the Opportunity.
Question 187: Correct
Which aspect of Apex programming is limited due to multitenancy?
• The number of methods in an Apex class.
The number of active Apex classes.
The number of records processed in a loop.
The number of records returned from database queries.(Correct)
Question 188: Correct
Refer to the following code snippet for an environment has more than 200 Accounts
belonging to the Technology' industry:
for (Account thisAccount:[Select ld, Industry FROM Account LIMIT 250] ) {
if (thisAccount.Industry == "Technology) {
thisAkccount. Is_Tech_¢ = true;
update thisAccount;
When the code executes, what happens as a result of the Apex transaction?
• If executed in an asynchronous context, the apex transaction is likely to fail by
exceeding the DML governor limit.
The Apex transaction succeeds regardless of any uncaught exception and all
processed accounts are updated.
The Apex transaction fails with the following message: "SObject row was
retrieved via SOQL without querying the requested field: Account. Is_Tech_c".
If executed in a synchronous context, the apex transaction is likely to fail by
exceeding the DML governor limit. (Correct)
Question 189: Correct
What are the 3 ways for a developer to execute tests in an org?
Choose3 answers.
Metadata API
Setup Menu(Correct)
Bulk API
Salesforce DX(Correct)
• Tooling API(Correct)
Question 190: Correct
What should a developer use to obtain the ld and Name of all the Leads, Accounts, and
Contacts that have the company name "Universal Containers"?
SELECT Lead.id, Lead.Name, Account.Ild, Account.Name, Contact.ld,
Contact.Name FROM Lead, Account, Contact WHERE |I| CompanyName =
Universal Containers'
FIND Universal Containers' IN CompanyName Fields RETURNING lead(id, name).
account(id, name), contact(id, name)
• SELECT lead(id, name), account(id, name), contact(id, name) FROM Lead,
Account, Contact WHERE Name = "Universal Containers'
FIND Universal Containers' IN Name Fields RETURNING lead(id, name),
account(id, name), contact(id, name) (Correct)
Question 191: Correct
Universal Containers is building a recruiting app with an Applicant object that stores
information about an individual person that represents a job. Each applicant may apply
for more than one job.
What should a developer implement to represent that an applicant has applied for a job?
Master-detail field from Applicant to job.
Lookup field from Applicant to Job.
Junction object between Applicant and job. (Correct)
• Formula field on Applicant that references Job.
Question 192: Correct
A developer must write an Apex method that will be called from a Lightning Component.
The method may delete an account stored in the accountRec variable.
Which method a Developer use to ensure only users that should be able to delete
Acoounts can successfully perform deletions?
accountRec.isDeletable()
• Schema.sObject Type.Account.isDeletable()(Correct)
accountRec.sObjectType.isDeleteable()
Account.isDeletable()
Question 193: Correct
A
custom Visualforce controller calls the Apexpages. addMessage) method, but no
messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?
<apex:pageMessage severity="info" />
<apex:Message for="info" />
<apex:facet name="Messages" />
<apex:pageMessages />(Correct)
Question 194: Correct
Get Cloudy Consulting (GCC) has a multitude of servers that host its customers'
websites. GCC wants to provide a server's status page that is always on display in its
call center. It should update in real-time with any changes made to any servers. To
accommodate this on the server-side, a developer created a Server Update platform
event.
The developer is working on a Lightning web component to display the information.
What should be added to the Lightning web component to allow the developer to
interact with the Server Update platform event?
• import { subscribe, unsubscribe, onError } from lightning/ServerUpdate'
• import{ subscribe, unsubscribe, onError } from lightning/empApi:(Correct)
• import { subscribe, unsubscribe, onError ) from lightning/MessageChannel'
• import{ subscribe, unsubscribe, onError ) from lightning/pubsub'
Question 195: Correct
A
Salesforce Administrator used Flow Builder to create a flow named
"accountOnboarding". The flow must be used inside an Aura component.
Which tag should a developer use to display the flow in the component?
• lightning-flow
• aura-flow
aura:flow
• lightning:flow(Correct)
Question 196: Correct
Universal Containers decided to use exclusively declarative development to build out a
new Salesforce application.
Which three options should be used to build out the database layer for the application?
Choose3 answers.
• Process Builder.
• Triggers.
• Roll-up summaries.(Correct)
• Custom objects and fields.(Correct)
• Relationships.(Correct)
Question 197: Correct
Cloud Klick(CK) wants to back up all of the data and attachments in the Salesforce org
once a month.
Which approach should a developer use to meet this requirement?
• Createa Schedulable Apex class.
Use the Data Loader command line.
• Schedule a report
• Define a Data Export scheduled job. (Correct)
Question 198: Correct
A developer is creating an app that contains multiple Lightning web components. One of
the child components is used for navigation purposes, When a user clicks a button
called Next in the component must be alerted so it can navigate to the next page.
How should this be accomplished?
• Update a property on the parent.
Create a custom event.(Correct)
• Call a method in the Apex controller.
• Fire a notification.
Question 199: Correct
AW Computing (AWC) handles orders in Salesforce and stores its product inventory in a
field, Inventory_c, ona custom object, Product_c. When an order for a Procuct_c is
placed, the Inventoryc field is reduced by the quantity of the order using an Apex
trigger.
public void reducelnventory(ld prodld, Integer qty) {
=
Integer newinventoryAmt getNewinventoryAmt (prodld, qty:
Product c p = new Product c (ld = prodid, Inventory c= newinventoryAmt);
update p:
Il code goes here
AWC wants the real-time inventory reduction for a product to be sent to many of its
external systems, including some future systems the company is currently planning.
What should a developer add to the code at the placeholder to meet these
requirements?
• InventoryReductionEvent_c ev = new InventoryReductionEvent_c (Productld_c =
prodid, Reduction_c = qty);
o insert ev;
• InventoryReductionEvent_c ev = new InventoryReductionEventLc (Productld_c =
prodld, Reduction_c= gty);
o EventBus.publish(ev):
InventoryReductionEvent_e ev = new InventoryReductionEvent e (Productld_c =
prodid, Reduction_c =qty);
o insert ev;
• InventoryReductionEvent_e ev = new InventoryReductionEvent_e (Productld_c =
prodid, Reduction_c =qty)
o EventBus.publish(ev);(Correct)
Question 200: Correct
Universal Containers uses a simple Order Management app. On the Order Lines, the
order line total is calculated by
multiplying the ltem price with the quantity ordered. There is a Master-Detail relationship
between the Order and the
Order Lines object.
What is the best practice to get the sum of all order line totals on the order header?
• Apex trigger.
Process Builder.
• Roll-up summary field. (Correct)
Declarative Rollup Summaries App.
Question 201: Correct
Which two statements are true about using the @testSetup annotation in an Apex test
class?
Choose 2 answers.
• The @testSetup annotation is not supported when the @isTest(SeeAlIData=True)
annotation is used.(Correct)
•Records created in the test setup method cannot be updated in individual test
methods.
• A method defined with the @testSetup annotation executes once for each test
method in the test class and
• counts towards system limits.
In a test setup method, test data is inserted once and made available for all test
methods in the test class. (Correct)
Question 202: Correct
What is the benefit of developing applications in a multi-tenant environment?
Enforced best practices for development.(Correct)
Default out-of-the-box configuration.
Unlimited processing power and memory.
• Access to predefined computing resources.
Question 203: Correct
Refer tothe following Apex code:
Integer x = 0;
do {
X=1;
X++;
} while (x < 1);
System.debug (x);
What is the value of x when it is written to the debug log?
• 0
3
• 2(Correct)
• 1
Question 204: Correct
A developer needs to implement a custom SOAP Web Service that is used by an
external Web application. The developer chooses to include helper methods that are not
used by the Web Application in the implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?
• webservice class WebServiceClass {
private Boolean helperMethod) (/*implementation.../)
webservice static String updateRecords) (/*implementation...)
• webservice class WebServiceClass {
private Boolean helperMethod) /*implementation../)
global static String updateRecords) (/*implementation..)
• global class WebServiceClass{
private Boolean helperMethod) /*implementation...)
global String updateRecords) (/*implementation../)
• global class WebServiceClass{
private Boolean helperMethod) /*implementation../)
webservice static String updateRecords) /*implementation../}
o (Correct)
Question 205: Correct
Which three Salesforce resources can be accessed from a Lightning web component?
Choose 3 answers.
• Third-party web components.
• Content asset files.(Correct)
• SVG resources. (Correct)
• All external libraries.
• Static resources.(Correct)
Question 206: Correct
In terms of the MVC paradigm, what are two advantages of implementing the view layer
of a Salesforce application using Lightning Web Component-based development over
Visualforce?
Choose 2 answers.
• Selfcontained and reusable units of an application.(Correct)
Rich component ecosystem.(Correct)
• Server-side run-time debugging.
.
Automatic code generation.
Question 207: Correct
developer needs to create a custom button for the Account object that, when clicked,
A
will perform a series of calculations and redirect the user to a custom Visualforce page.
Which three attributes need to be defined with values in the <apex:page> tag to
accomplish this?
Choose 3 answers.
• extensions(Correct)
action(Correct)
• readOnly
renderAs
• standardController(Correct)
Question 208: Correct
A developer needs to create a custom interface in Apex.
Which three considerations must the developer keep in mind while developing the Apex
Interface?
Choose 3 answers.
• A method defined in an Apex Interface cannot have an access modifier.(Correct)
New methods can be added to a public interface within a released package.
A method implementation cannot be defined within the Apex Interface.(Correct)
The Apex Interface class access modifier can be set to Private, Public, or Global.
• The Apex class must be declared using the interface keyword.(Correct)
Question 209: Correct
What can be developed using the Lightning Component framework?
Single-page web apps.(Correct)
Salesforce Integrations.
Dynamic web sites.
• Hosted web applications.
Question 210: Correct
Which code displays the contents of a Visualforce page as a PDF?
<apexpage renderAs="pdf>(Correct)
<apex:page contentType="application/pdf">
<apex:page renderAs="application/pdf">
<apex:page contentType="pdf">
Question 211: Correct
Universal Containers uses a Master-Detail relationship and stores the availability date
on each Line Item of an Order and Orders are only shipped when all of the Line Items are
available.
Which method should be used to calculate the estimated ship date for an Order?
• Use a CEILING formula on each of the latest availability date fields.
Use a MAX Roll-Up Summary field on the latest availability date fields.(Correct)
Use the LATEST formula on each of the latest availability date fields.
Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up
Summary field on the Order.
Question 212: Correct
A developer has a single custom controller class that works with a Visualforce Wizard
to support creating and editing multiple sObjects. The wizard accepts data from user
inputs across multiple Visualforce pages and from a parameter on the initial URL
What three statements are useful inside the unit test to effectively test the custom
controller?
Choose3 answers.
String nextPage = controller.save).getUrl0:(Correct)
insert pageRef;
Test.setCurrentPage(pageRef), (Correct)
ApexPages.currentPage).getParameters().put(input' TestValue):(Correct)
Public ExtendedController(ApexPages.StandardController cntrl) ()