wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

03-Developer 171-263

Total questions: 92

Worksheet time: 2hrs 32mins

Name
Class
Date
1.
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?
a)
Scratch orgs
b)
Developer sandboxes
c)
Full Copy sandboxes
d)
Developer eras
2.
Which statement describes the execution order when triggers are associated to the same object and event?
a)
Triggers are executed alphabetically by trigger name.
b)
Trigger execution order cannot be guaranteed.
c)
Triggers are executed in the order they are created.
d)
Triggers are executed in the order they are modified.
3.
A next Best Action strategy uses Enhancer Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?
a)
(@)InvocableMethod global static List<List<Recommendation>> getLevel(List<ContactWrapper>input) {/* implemantion*/}
b)
(@)InvocableMethod global List<List<Recommendation>> getLevel(List<ContactWrapper>input) {/* implemantion*/}
c)
(@)InvocableMethod global static ListRecommendation getLevel(List<ContactWrapper>input) {/* implemantion*/}
d)
(@)InvocableMethod global ListRecommendation getLevel(ContactWrapper input) {/* implemantion*/}
4.
A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use Data Loader Instead of Data Import Wizard?
a)
Data Import Wizard can not import all 500 records.
b)
Data Loader automatically relates Opportunities to Accounts,
c)
Data Import Wizard does not support Opportunities.
d)
Data Loader runs from the developer's browser.
5.
Which two are best practices when it comes to Aura component and application event handling? Choose 2 answers
a)
Handle low-level events 1ft the event handler and re-fire them as higher-level events
b)
Try to use application -events as opposed to component events,
c)
Reuse the event logic in a component bundle, by putting the logic in the helper
d)
Use component events to communicate actions that should be handled at the application level.
6.
What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface? Choose 2 answers
a)
Query the AsyncApexJob object
b)
View the Apex Status Page
c)
View the Apex Flex Queue
d)
View the Apex Jobs Page
7.
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?
a)
Write a trigger on the child object and use a red-black tree sorting to sum the amount for all related child objects under the Opportunity.
b)
Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity,
c)
Write a Process Builder that Minks the custom object to the Opportunity
d)
Use the Streaming API to create real-time rol!-tfp summaries.
8.
An org has an existing Flow that creates an Opportunity with an Update Records element. A developer must update the Flow to also create a contact and store the created Contact's id on the Opportunity Which update should the developer make in the Flow?
a)
Add a new Get -Records dement
b)
Add a new Quick Action element (of type Create).
c)
Add a new update Records element.
d)
Add a new Create Records element.
9.
An Approval Process is defined in the Expense_Item__c object. A business rule dictates that whenever a user changes the Status to 'Submitted* on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. A developer is asked to explore if this automation can be implemented without writing any Apex code. Which statement is true regarding this automation request?
a)
This can only be automated with Apex code.
b)
The developer can use a record triggered flow with Actions.
c)
This approval step cannot be automated and must be done manually.
d)
The developer can use Einstein Next Best Actions.
10.
Universal Containers(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer add to create the most efficient model that supports the business neetf?
a)
Add a Master-Detail field on the Global Address object to the Account object.
b)
Add a lookup field on the Account object to the Global Address object.
c)
Add a Lookup field on the Global Address object to the Account object.
d)
Add a Master-Detail field on the Account object to the Global Address object.
11.
What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers'"?
a)
FIND 'Universal Containers’ IN CompanyName Fields RETURNING lead(id, name), account(id, name), contact(id, name)
b)
SELECT lead(id, name), account(id,name), contact(id, name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'
c)
SELECT Lead.id, Lead.Name, Account.Id, Account.Name, Contact.Id, Contact. Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'
d)
FIND 'Universal Containers’ IN Name Fields RETURNING lead(id, name), account(id, name), contact(id, name)
12.
Flow Builder uses an Apex Action to provide information about multiple Contacts, stored in a custom class, ContactInfo. Which is the correct definition of the Apex method that gets the additional information?
a)
(@)InvocableMehod(label=’Additional Info’) public List<ContactInfo> getInfo(List<Id> contactIds) {/* implementation */}
b)
(@)InvocableMehod(label=’Additional Info’) public ContactInfo getInfo(Id contactId) {/* implementation */}
c)
(@)InvocableMehod(label=’Additional Info’) public static List<ContactInfo> getInfo(List<Id> contactIds) {/* implementation */}
d)
(@)InvocableMehod(label=’Additional Info’) public static ContactInfo getInfo(Id contactId) {/* implementation */}
13.
How does the Lightning Component framework help developers implement solutions faster?
a)
By providing code review standards and processes
b)
By providing an Agile process with default steps
c)
By providing change history and version control
d)
By providing device-awareness for mobile and desktops
14.
A developer has to identify a method in an Apex class that performs resource Intensive actions in memory by iterating ever the result set of a SOQL statement on the account, me method also performs a DML statement to save the changes to the database. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? Choose 2 answers
a)
Use trie @ReadOnly annotation to bypass the number of rows returned by a SOQL.
b)
Use Partial DML statements to ensure only valid data is committed,
c)
Use the System.Limit class to monitor the current CPU governor limit consumption.
d)
Use the Database.Savepoint method to enforce database integrity.
15.
A developer considers the following snippet of code: Boolean isOK; integer x; String theString =’Hello’; if(isOK == false && theString == ’Hello’){ x=1; } else if (isOK == true && theString == ’Hello’){ x=2; } else if (isOK != null && theString == ’Hello’){ x=3; }else { x=4; } Based on this code, what is the value of x?
a)
3
b)
1
c)
4
d)
2
16.
Which action causes a before trigger to fire by default for Accounts?
a)
Renaming or replacing picklists
b)
Importing data using the Data Loader and the Bulk API
c)
Updating addresses using the Mass Address update tool
d)
Converting Leads to Contact accounts
17.
Which three statements are true regarding custom exceptions in Apex? Choose 3 answers
a)
A custom exception class must extend the system Exception class.
b)
A custom exception class can extend other classes besides the Exception class.
c)
A custom exception class name must end with "Exception”.
d)
A custom exception class cannot contain member variables or methods.
e)
A custom exception class can implement one or many interfaces.
18.
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration that reads task reads task records is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
a)
Use a Try/Catch block after the insert statement.
b)
Remove the Apex Class from the Integration User’s Profile.
c)
Use the Database method with allOrNone set to false.
d)
Deactivate the Trigger before the Integration runs.
19.
Which two operations can be performed using a formula field? Choose 2 answers
a)
Displaying the last four digits of an encrypted Social Security number
b)
Triggering a Process guilder
c)
Displaying an Image based on the Opportunity Amount
d)
Calculating a score on a Lead based on the information from another field
20.
A developer has an integer variable called maxAttempts.. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction; while being able to share the variable’s state between trigger executions. How should the developer declare maxAttempts to meet these requirements?
a)
Declare maxAttempts as a private static variable on a helper class,
b)
Declare maxAttempts as a constant using the static and final keywords.
c)
Declare maxAttempts as a member variable on the trigger definition.
d)
Declare maxAttempts as a variable on a helper class.
21.
While working in a sandbox, an Apex test fails when run in the Test Framework. However, running the Apex test logic in the Execute Anonymous window succeeds with no exceptions or errors. Why did the method fail in the sandbox test framework but succeed in the Developer Console?
a)
The test method does not use System.runAs to execute as a specific user.
b)
The test method relies on existing data in the sandbox.
c)
The test method has a syntax error in the code.
d)
The test method is calling an @future method.
22.
A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?
a)
Use @IsTest (SeeAllData=true) and delete the existing standard price book.
b)
Use Test.loadData () and a static resource to load a standard price book,
c)
Use @TestVisible to allow the test method to see the standard price book,
d)
Use Test.getStandartPricebookId() to get the standard price book ID.
23.
Which three data types can a SOQL query return? Choose 3 answers
a)
Long
b)
Double
c)
Integer
d)
sObject
e)
List
24.
A developer has two custom controller extensions where each has a save() method. Which save() method will be called for the following Visualforce page? <apex:page standartController=”Account”, extensions=”ExtensionA, ExtensionB”> <apex:commandButton action=”{!save}” value=”Save” /> </apex:pageZ
a)
standard controller save()
b)
Runtime error will be generated
c)
ExtensionB save()
d)
ExtensionA save()
25.
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName) { Return Database.query(‘SELECT Id, FirstName, LastName FROM Contact WHERE LastName Like %’+lastName+’%’); } What are two ways the developer can update the method to prevent a SOQL injeciton attack? Choose 2 answers
a)
Use the @ReadOnly annotation and the with sharing keyword on the class,
b)
Use variable binding and replace the dynamic query with a static SOQL
c)
Use the escapeSingleQuotes method to sanitize the parameter before its use,
d)
Use a regular expression expression on the parameter to remove special characters,
26.
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-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c?
a)
<lightning-input-field field-name=” Salary__c”> </lightning-input-field>
b)
<lightning-formatted-number value=” Salary__c” format-style=”currency”> </lightning-formatted-number>
c)
<lightning-input- currency value=” Salary__c”> </lightning-input-currency>
d)
<lightning-input type=”number” value=” Salary__c” formatter=” currency”> </lightning-input>
27.
Universal Containers stores Orders and Line Items in Salesforce. For security reasons, financial representatives are allowed to see information on the Order such as order amount, but they should not be allowed to see the line Items on the Order. Which type of relationship should be used between Orders and Line Items?
a)
Lookup
b)
Master-Detail
c)
Indirect Lookup
d)
Direct Lookup
28.
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order records will be imported into Salesforce. How should the Order Number field be defined in Salesforce?
a)
Lookup
b)
Indirect Lookup
c)
Number with External ID
d)
Direct Lookup
29.
Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?
a)
<aura:component access=”GLOBAL” extends=”ltng:outApp”> <aura:dependency resource=”c:accountList”/> </aura:component>
b)
<aura:application access=”GLOBAL”> <aura:dependency resource=”c:accountList”/> </aura:application >
c)
<aura:application access=”GLOBAL” extends=”ltng:outApp”> <aura:dependency resource=”c:accountList”/> </aura:application >
d)
<aura:component access=”GLOBAL”> <aura:dependency resource=”c:accountList”/> </aura:component>
30.
Universal Containers decides 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? Choose 3 answers
a)
Process Builder
b)
Triggers
c)
Custom objects and fields
d)
Roll-up summaries
e)
Relationships
31.
What are two best practices when it comes to Lightning Web Component events? Choose 2 answers
a)
Use event.target to communicate data to elements that aren't in the same shadow tree.
b)
Use events configured with bubble: false and composed: false.
c)
Use CustomEvent to pass data from a child to a parent component.
d)
Use event.detail to communicate data to elements in the same shadow tree.
32.
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?
a)
Visual Studio Cod IDE
b)
Developer Console
c)
Setup Menu
d)
App Exchange
33.
Which aspect of Apex programming is limited due to multitenancy?
a)
The number of methods in an Apex class
b)
The number of records processed in a loop
c)
The number of active Apex classes
d)
The number of records returned from database queries
34.
A developer must create a CreditCardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { Public virtual void makePayment (Decimal amount) {/* implementation */} } Which is correct implementation?
a)
public class CreditCardPayment implements Payment { public override void makePayment(Decimal amount) {/* implementation */} }
b)
public class CreditCardPayment implements Payment { public virtual void makePayment(Decimal amount) {/* implementation */} }
c)
public class CreditCardPayment extends Payment { public override void makePayment(Decimal amount) {/* implementation */} }
d)
public class CreditCardPayment extends Payment { public virtual void makePayment(Decimal amount) {/* implementation */} }
35.
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?
a)
Rewrite all Visualforce pages as Lightning components.
b)
Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.
c)
Set the attribute enableLightning to true m the definition,
d)
Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.
36.
What is the result of the following code? Account a = new Account(); Database.insert(a, false);
a)
The record will not be created and no error will be reported.
b)
The record will not be created and an exception will be thrown.
c)
The record will be created and a message will be in the debug log.
d)
The record will be created and no error will be reported.
37.
An Approval Process Is defined in the Expense_Item__c object. A business rule dictates that whenever a user changes the Status to ‘Submitted’ on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. Which approach should be used to ensure the business requirement is met?
a)
Create a Process Builder on Expense_Report__c with a 'Submit for Approval’ action type to submit all related Expense_Item__c records when the criteria is met.
b)
Create a Process Builder on Expense_Report__c with a 'Apex’ action type to submit all related Expense_Item__c records when the criteria is met.
c)
Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submitable and trigger on Expense_Item__c to submit the records for approval.
d)
Create two Process Builders, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
38.
When a user edits the Postal Code on an Account, a custom Account text field! named "Timezone" must be updated based on the values in a PostalCodetoTimezone__c custom object. How can a developer implement this feature?
a)
Build a Workflow Rule
b)
Build an Account Assignment Rule.
c)
Build an Account Approval Process.
d)
Build a Flow with Flow Builder.
39.
A large corporation stores Orders and Line Items in Salesforce for different lines of business. Users are allowed to see Orders across the entire organization, but, for security purposes, should only be able to see the Line Items for Orders in their line of business. Which type of relationship should be used between Line Items and Orders?
a)
Lookup
b)
Direct Lookup
c)
Master-Detail
d)
Indirect Lookup
40.
What should a developer use to fix a Lightning web component bug in a sandbox?
a)
Execute Anonymous
b)
Developer Console
c)
VS Code
d)
Force.com IDE
41.
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what is defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?
a)
public class CheckPaymentProcessor implements PaymentProcessor { public void pay( Decimal amount); }
b)
public class CheckPaymentProcessor extends PaymentProcessor { public void pay( Decimal amount) { } }
c)
public class CheckPaymentProcessor implements PaymentProcessor { public void pay( Decimal amount) { } }
d)
public class CheckPaymentProcessor extends PaymentProcessor { public void pay( Decimal amount); }
42.
Which two statements are true about Getter and Setter methods as they relate to Visualforce? Choose 2 answers
a)
Getter methods pass value from a controller to a page.
b)
A corresponding setter method is required for each getter method
c)
Setter methods always have to be declared global.
d)
Getter methods must be named getVariable and setter methods must be named setVariable
43.
An administrator at Northern Trail Outfitters is creating a validation rule. Which two functions should the administrator use when creating a validation rule? Choose 2 answers
a)
Error message location
b)
Formula return type
c)
Rule active date
d)
Error condition formula
44.
What is a benefit of developing applications in a multi-tenant environment?
a)
Access to predefined computing resources
b)
Enforced best practices for development
c)
Default out-of-the-box configuration
d)
Unlimited processing power and memory
45.
The administrator has created new users for ten new employees at Northern Tall Outners Why are these users unable to access the account optect in the salesforce ero?
a)
Users' problem requires permission to the Account object.
b)
Users' roles are low on the role hierarchy
c)
Organization-vide cereus are sec co private
d)
users profile requires a sharing rule for Accounts
46.
Universal Containers wants to provide reseller partners with discounted prices on the products they purchase. How should an administrator configure this requirement?
a)
Create a separate PriceBook for reseller partners.
b)
Use a different Opportunity record type.
c)
Add a Partner _Discount_c field to the Opportunity
d)
Build separate reseller partner products.
47.
Cloud Kicks has the organization-wide sharing default set to private on the Shoe object. The sales manager should be able to view a report containing shoe records for all or the sales reps on their team. Which three items should the administrator configure to provide appropriate access to the report? choose 3 answers
a)
Report suscri
b)
Role Hierarchy
c)
Custom Report Type
d)
Folder Access
e)
Field-Level Security
48.
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be updated based on the values in a PostalCodeToTimezone c custom object. Which two automation tools can be used to implement this feature? Choose 2 answers
a)
Before-save flow
b)
Approval process
c)
Quick actions
d)
Account trigger
49.
Ursa Major Solar wants its sales reps to be aware when they are speaking with high-profile customers. Which two options should be added to the Lightning record pages to achieve this? Choose 2 answers
a)
Actions & Recommendations
b)
Rich Text Area
c)
Custom Component
d)
Component Visibility Filter
e)
Highlights Panel
50.
The IT manager at Universal Containers is doing an audit of the system's security. How should the administrator provide a summary of the org's security health?
a)
Run a Health Check to identify vulnerabilities.
b)
Change the Organization-Wide Default to private to restrict visibility.
c)
Download the last six months of user login data.
d)
Turn on Event Monitoring to track user events.
51.
The administrator at Cloud Kicks deleted a custom field but realized that it is part of the lead conversion process. What should an administrator take into consideration when undeleting the field?
a)
The field needs to be re-added to reports.
b)
The field history will remain deleted.
c)
The field needs to be restored in the search settings.
d)
The field mapping needs to be remapped.
52.
A user at Northern Trail Outfitters is having trouble logging into Salesforce. The user's login history shows that this person has attempted to log in multiple times and has been locked out of the organization. Which two ways should the administrator help the user log into Salesforce? Choose 2 answers
a)
Use the unlock button on the user's record detail page.
b)
Log in as the user to unlock the user and reset the password.
c)
Reset the password policies to allow the user to login.
d)
Reset password on the user's record detail page
53.
Universal Containers created a new job posting on the first of the month. It triggered a process scheduled action that will send a Chatter post to the department VP In 30 days if the position is still open and the status is not equal to Interviewing. On the 10th of the month, an applicant interviews, and the job posting status is updated to Interviewing. What will happen to the Chatter post in this situation?
a)
The pending Chatter post will be sent in 30 days
b)
The pending Chatter post will be will be paused.
c)
The pending Chatter post will be sent on the 10th of the month.
d)
The pending Chatter post will be canceled
54.
How does the Lightning Component framework help developers implement solutions faster?
a)
By providing change history and version control
b)
By providing an Agile process with default steps
c)
By providing code review standards and processes
d)
By providing device-awareness for mobile and desktops
55.
A developer wants to invoke an outbound message when a record meets a specific criteria. Which two features satisfy this use case? Choose 2 answers
a)
Approval Process has the capability to check the record criteria and send an outbound message without Apex code.
b)
Next Best Action can be used to check the record criteria and send an outbound message.
c)
Flow Builder can be used to check the record criteria and send an outbound message.
d)
Process Builder can be used to check the record criteria and send an outbound message without Apex code.
56.
Given the following trigger implementation: trigger leadTrigger on Lead (before update) { final ID BUSINESS_RECORDTYPEID - 012500000009Qad'; for (Lead thisLead : Trigger.new) { if(thisLead. Company != null 66 thisLead. RecordTypeId != BUSINESS_RECORDTYPEID) { thislead. RecordTypeId - BUSINESS_RECORDTYPEID; The developer receives deployment errors every time a deployment is attempted from a sandbox to Production. What should the developer do to ensure a successful deployment?
a)
Ensure BUSINESS_RECORDTYPEID is retrieved using Schema.Describe calls.
b)
Ensure BUSINESS_RECORDTYPEID is pushed as part of the deployment components.
c)
Ensure the deployment is validated by a System Admin user on Production.
d)
Ensure a record type with an ID of BUSINESS_RECORDTYPEID exists on Production prior to deployment.
57.
What should a developer do to check the code coverage of a class after running all tests?
a)
View the Code Coverage column in the list view on the Apex Classes page.
b)
Select and run the class on the Apex Test Execution page.
c)
View the Class Test Coverage tab on the Apex Class record in Salesforce Setup..
d)
View the Overall Code Coverage panel of the Tests tab in the Developer Console,
58.
What are three ways for a developer to execute tests in an org? Choose 3 answers
a)
Bulk API
b)
Tooling API
c)
Setup Menu
d)
SalesforceDX
e)
Metadata API
59.
Which three resources in an Aura Component can contain JavaScript functions? Choose 3 answers
a)
Controller
b)
Design
c)
Renderer
d)
Helper
e)
Style
60.
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)
The Apex class must be declared using the interface keyword.
b)
A method implementation can be defined within the Apex interface.
c)
The Apex interface class access modifier can be set to private, public, or global.
d)
New methods can be added to a public interface within a released package.
e)
A method defined in an Apex interface cannot have an access modifier
61.
Refer to the following code snippet for an environment has more than 200 Accounts belonging to the 'Technology' industry: for (Account thisAccount : [SELECT ID, Industry FROM Account LIMIT 150)) { if (thisAccount. Industry Technology) thisAccount. Is_Tech_c - true; } update thisAccount; } When the code executes, what happens as a result of the Apex transaction?
a)
The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.
b)
If executed in a synchronous context, the Apex transaction is likely to fail by exceeding the DML governor limit.
c)
The Apex transaction fails with the following message: Sobject row was retrieved via soL without querying the requested field: Account.Is Tech
d)
If executed in an asynchronous context, the Apex transaction is likely to fail by exceeding the ML governor limit.
62.
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
a)
Create and populate a custom field on the parent object marked as Unique.
b)
Create a custom field on the child object of type Lookup.
c)
Create a custom field on the child object of type External Relationship.
d)
Create and populate a custom field on the parent object marked as an External ID.
63.
233- In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?
a)
In the system debug log by filtering on Pausi filtering on Paused Flow Interview
b)
On the Paused Flow Interviews related list for given record
c)
On the Paused Flow Interviews component on the Home page
d)
In the Paused Interviews section of the Apex Flex Queue
64.
Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers
a)
$Lightning.useComponent
b)
$Lightning.createComponent
c)
<apex:slds/>
d)
<apex: includeLightning/>
e)
$Lightning.use
65.
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist: Rollup summary fields Custom validation rules Duplicate rules A developer created a trigger on the Account object. What two things should the developer consider while testing the trigger code? Choose 2 answers
a)
Rollup summary fields can cause the parent record to go through Save.
b)
The trigger may fire multiple times during a transaction.
c)
Duplicate rules are executed once all DML operations commit to the database.
d)
The validation rules will cause the trigger to fire again.
66.
A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner?
a)
A record trigger flow on the Opportunity object
b)
An Apex trigger on the Opportunity object
c)
An approval process on the Opportunity object
d)
An error condition formula on a validation rule on Opportunity
67.
What can be used to override the Account's standard Edit button for Lightning Experience?
a)
Lightning action
b)
Lightning component
c)
Lightning page
d)
Lightning flow
68.
A developer created a new after insert trigger on the Lead object that creates Task records for each Lead. After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart. Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task insert statement, so that manual restarts are not needed?
a)
Use the Database method with allOrMone set to false.
b)
Remove the Apex dass from the integration user's profile.
c)
Use a try-catch block after the insert statement.
d)
Deactivate the trigger before the integration runs.
69.
Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered. What is the best practice to get the sum of all Order Line item totals on the Order record?
a)
Roll-up summary field
b)
Quick action
c)
Apex trigger
d)
Formula field
70.
Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?
a)
<apex:page lightningStyleSheets="true">
b)
<apex:includeLightning/>
c)
<apex:Slds/>
d)
<apex:styleSheet value="(!$URLFOR ($Resource.slds, 'assets/slds.css'))”>
71.
A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users. Which three things should the developer do to satisfy these requirements? Choose 3 answers
a)
Add a dynamic action to the Account record page.
b)
Create a custom permission for the users.
c)
Create a Lightning web component.
d)
Add a dynamic action to the user's assigned page layouts.
e)
Create a dynamic form.
72.
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds "Decommissioned" as a picklist value for the Status__c custom field within the Container__c object. Which tool should the developer use to enforce only Container records with a status of "Decommissioned" can be deleted?
a)
After record-triggered flow
b)
Apex trigger
c)
Before record-triggered flow
d)
Validation rule
73.
A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. The developer wants to ensure the Visualforce page matches the Lightning Experience user interface. What attribute needs to be defined within the <apex:page> tag to meet the requirement?
a)
Wizard="true"
b)
applyHtmlTag="true"
c)
setup="true'
d)
lightningStylesheets_”true”
74.
Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, Job_Application__c acting as the detail. Within the Job__c object, a custom multi-select picklist, Preferred_Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship. Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred Locations c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync, if changes occur to the Contact's Mailing State or if the Job's Preferred Locations c field is updated. What is the recommended tool a developer should use to meet the business requirement?
a)
Record-triggered flow
b)
Formula field
c)
Apex trigger
d)
Process Builder
75.
Consider the following code snippet: public static List‹Lead› obtainAllFields(Set<Id> leadIds){ List<Lead> result = new List<Lead> 0); for (Id leadid : leadIds) result.add ([SELECT FIELDS (ALL) FROM Lead WHERE Id = :leadId]; } return result; } Given the multi-tenant architecture of the Salesforce platform, what is a best practice a developer should implement and ensure successful execution of the method?
a)
Avoid performing queries inside for loops.
b)
Avoid returning an empty List of records.
c)
Avoid using variables as query filters.
d)
Avoid executing queries without a limit clause.
76.
A developer is integrating with a legacy on-premise SQL database. What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?
a)
Formula field
b)
Lookup field
c)
External Object
d)
External ID field
77.
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 Salesforce Administrator wants to ensure the solution used is bulk safe. Which automation tool should a developer recommend to meet these business requirements?
a)
Scheduled Flow
b)
Einstein Next Best Action
c)
Entitlement Process
d)
Record-Triggered Flow
78.
A developer is debugging the following code to determine why Accounts are not being created. List<Account> accts = getAccounts (); // getAccounts implemented elsewhere Database. insert (accts, false); How should the code be altered to help debug the issue?
a)
Set the second insert method parameter to true.
b)
Collect the insert method return value in a SaveResult variable.
c)
Change the ML statement to insert accts.
d)
Add a try-catch around the insert method
79.
Which process automation should be used to post a message to Chatter without using Apex code?
a)
Strategy Builder
b)
Flow Builder
c)
Entitlement Process
d)
Outbound Message
80.
A developer has the following requirements: Calculate the total amount on an Order. Calculate the line amount for each Line Item based on 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 on its own?
a)
Order has a re-parentable lookup field to Line Item.
b)
Line Item has a re-parentable master-detail field to Order.
c)
Line Item has a re-parentable lookup field to Order.
d)
Order has a re-parentable master-detail field to Line Item
81.
On a brand new developer org, a developer writes a single trigger named AccountTrigger on the Account object to perform complex validations on the after insert and after update DML events. A Salesforce administrator creates a Process Builder to update a custom field within the same object every time an Account is created or updated. How many times will the AccountTrigger fire if a new Account is inserted, assuming no other automation logic is implemented on the Account?
a)
2
b)
4
c)
1
d)
6
82.
Universal Containers (UC) 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?
a)
The Account object does not allow changing a field type for a custom field.
b)
The organization wide default for the Vendor object is Public Read/Write.
c)
Some of the Vendor records have null for the Account field.
d)
The Account object has a roll-up summary field on the Vendor object.
83.
Universal Containers decides to use purely declarative development to build out a new Salesforce application. Which two options can be used to build out the business logic layer for this application? Choose 2 answers
a)
Flow Builder
b)
Validation Rules
c)
Batch Jobs
d)
Remote Actions
84.
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user. How can the developer make sure that validation rule violations are displayed?
a)
Add custom controller attributes to display the message.
b)
Use a try/catch with a custom exception class.
c)
Perform the DML using the Database.upsert() method
d)
Include <apex: messages> on the Visualforce page.
85.
Given the code below: List<Account> aList =[SELECT Id FROM Account]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id]; } What should a developer do to correct the code so that there is no chance of hitting a governor limit?
a)
combine the two SELECT statements into a single SOQL statement.
b)
Add a LIMIT clause to the first SELECT SOQL statement.
c)
Add a WHERE clause to the first SELECT SOQL statement.
d)
Rework the code and eliminate the for loop.
86.
A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality. What should the developer use to satisfy this requirement in the most efficient manner?
a)
Lightning Component
b)
Apex Trigger
c)
Approval Process
d)
Flow Builder
87.
A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. when the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates it in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce. Which two actions will prevent the duplicate order records from being created in Salesforce? Choose 2 answers
a)
Use the email on the contact record as an external ID.
b)
write a before trigger on the order object to delete any duplicates.
c)
Ensure that the order number in the OMS is unique.
d)
Use the order number from the OMS as an external ID.
88.
A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities(), method to provide data. Which modification to the method is necessary?
a)
The method must be decorated with (cachesblewtzue).
b)
The method must return String of a serialized JSON Array.
c)
The method must return a JSON Object.
d)
The method must be decorated with @AuraEnabled.
89.
Universal Containers has created a unique process for tracking container repairs . A custom field , status_c , has been created within the container external systems every time the value of the seague picklist changes . e custom object . A developer is tasked with sending notifications to multiple Which two tools should the developer use to meet the business requirement and ensure low maintenance of the solution ? Choose 2 answers
a)
Record - Triggered flow
b)
Apex trigger
c)
Apex callouts
d)
Platform event
90.
A developer needs to create a baseline set of data ( Accounts , Contacts , Products , Assets ) for an entire suite of tests allowing them to test independent requirements for various types of Salesforce Cases . Which approach can efficiently generate the required data for each unit test ?
a)
Add #IsTest ( seeAllData - true ) at the start of the unit test class .
b)
Use @TestSetup with a void method .
c)
Create test data before Test.starttest ( ) in the unit test .
d)
Create a mock using the Stub API .
91.
Which three statements are accurate about debug logs ? Choose 3 answers
a)
A.The maximum size of a debug log is 5 MB .
b)
B. Only the 20 most recent debug logs for a user are kept .
c)
C. Debug log levels are cumulative , where FINE log level includes all events logged at the DEBUG , INFO , WARN , and ERROR levels .
d)
D. System debug logs are retained for 24 hours .
e)
E. Debug logs can be set for specific users , classes , and triggers .
92.
A developer created these three Rollup Summary fields in the custom object , Projecte : Total Timesheets_c Total Approved Timesheets_c Total Rejected_Timesheet_c The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project . Which should the developer use to implement the business requirement in order to minimize maintenance overhead ?
a)
Record - triggered flow
b)
Apex trigger
c)
Formula field
d)
Field Update actions