Developer Exam Set 1
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow
- Name
- Amount
- Account
Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
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.
Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
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 Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
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?
AppExchange
Visual Studio Core IDE
Salesforce CLI
Developer Console
What does the Lightning Component framework provide to developers?
Extended governor limits for applications
Templates to create custom components.
Support for Classic and Lightning UIS.
Pre-built component that can be reused.
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.
A record trigger flow on the Opportunity object
An Apex trigger on the Opportunity object
Approval process on the Opportunity object
An error condition formula on a validation rule on Opportunity
Which two are phases in the Aura application event propagation framework? Choose 2 answers
Emit
Control
Default
Bubble
Which two sfdx commands can be used to add testing data to a Developer sandbox?
Forced: data:bulk:upsert
Forced: data: object :upsert
Forced: data: tree: Import
Forced: data:async:upsert
What are three ways for a developer to execute tests in an org? Choose 3.
Tooling API
Bulk API
Setup Menu
Salesforce DX
Metadata API.
Which two settings must be defined in order to update a record of a junction object? Choose 2 answers
Read access on the primary relationship
Read/Write access on the secondary relationship
Read/Write access on the junction object
Read/Write access on the primary relationship
What should be used to create scratch orgs?
Developer Console
Salesforce CLI
Workbench
Sandbox refresh
Which salesforce org has a complete duplicate copy of the production org including data
Developer Pro Sandbox
Partial Copy Sandbox
Production
Full Sandbox
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must
call an Apex method to execute 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?
call an Apex method to execute 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
@RemoteAction
@InvocableMethod
@AuraEnaled
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone c custom object.
How should a developer implement this feature?
Build an Account Assignment Rule.
Build a flow with flow builder
Build an account Approval Process
Build an Account Workflow Rule
The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline maintenance of the picklist and their values, while also restricting the values to the ones mentioned above?
Create the Picklist on each object and use a Global Picklist Value Set containing the Values.
Create the Picklist on each object as a required field and select "Display values alphabeticaly, not in the order entered".
Create the Picklist on each object and select "Restrict picklist to the values defined in the value set"
Create the Picklist on each and add a validation rule to ensure data integrity
In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce
application using Aura Component-based development over Visualforce?
application using Aura Component-based development over Visualforce?
Choose 2 answers
Self-contained and reusable units of an application
Automatic code generation
Rich component ecosystem
Server-side run-time debugging
A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:
public class SilverLaptop
{
// code
}
How can a developer use the Laptop Interface within the Silvertaptop class?
A. @Extends(class=Laptop'')
public class SilverLaptop
B. Public calss SilverLaptop extends Laptop
C. @Interface (class=''Laptop'')
public class SilverLaptop
public class SilverLaptop
D. Public class Silverlaptop implements Laptop
A
B
C
D
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?
How can this be achieved?
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.
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.
Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity
Use the Streaming API to create real-time roll-up summaries.
Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers
Upload the SVG as a static resource
Import the static resource and provide a getter for it in JavaScript.
Reference the property in the HTML template.
Reference the import in the HTML template.
Import the SVG as a content asset file.
As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted
Which automation tool should be used to meet this business requirement?
Outbound Messaging
Scheduled job
Record-Triggered Flow
Flow Orchestration
A developer is creating a Lightning web component to show a list of sales records.
The Sales Representative user should be able to see the commission-field on each record. The Sales Assistance
user should be able to see all field on the record except the commission field.
How should this be enforced so that the component works for both users without showing any errors?
The Sales Representative user should be able to see the commission-field on each record. The Sales Assistance
user should be able to see all field on the record except the commission field.
How should this be enforced so that the component works for both users without showing any errors?
Use Lightning Data Service to get the collection of sales records.
Use Lightning Locker Service to enforce sharing rules and field-level security.
Use with SECURITY_EMFoRCED in the SOQL that fetches the data for the component.
Use security. stripInaccessible to remove fields inaccessible to the current user.
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit.
public class without sharing OpportunityService(
public static List getOpportunityProducts(Set opportunityIds)
{
List oppLineItems = new List();
for(Id thisOppId : opportunityIds)
{
oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)];
}
return oppLineItems;
}
}
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?
Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
Use the System.Limits.getLimitQueries() method to ensure the number of queries is less than 100.
Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
Use the System.Limits.getQueries() method to ensure the number of queries is less than 100
An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price. What is the correct implementation?
Implement the line amount as a numeric formula field and the order amount as a roll-up summary field
Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.
Implement the Line amount as a currency field and the order amount as a SUM formula field.
Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order.
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?
Data Loader runs from the developer's browser.
Data Import Wizard does not support Opportunities.
Data Loader automatically relates Opportunities to Accounts.
Data Import Wizard can not import all 500 records.
Which aspect of Apex programming is limited due to multitenancy?
The number of active Apex classes
The number of methods in an Apex Class
The number of records processed in a loop
The number of records returned from database queries
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 click a button called.. component, the parent component must be alerted so it can navigate to the next page.
One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?
Fire a notification.
Update a property on the parent.
Call a method in the Apex controller.
Create a custom event.
Universal Containers UC uses out-of-the-box Order management, that has a master-detail relationship between Order and Order Line Item.
Universal Containers 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?
an Order?
Use a CEILING 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
Use a LATEST formula on each of the latest availability date fields.
Use a Max Roll-Up Summary field on the Latest availability date fields.
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits?
Choose 2 answers
The Apex governor limits will use asynchronous limit levels.
The Apex governor limits cannot be exeeded due to the to the asynchronous nature of the transition
The Apex governor limits are ommitted while calling the constructor of the Apex class.
The Apex governor limits are reset for each Iteration of the execute() method.
For which three items can a trace flag be configured?
Choose 3 answers
Visualforce
Apex Trigger
Apex Class
User
Flow
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 a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is ‘Technology’ while also retrieving the contact’s Job_Application c records.
Based on the object’s relationships, what is the most efficient statement to retrieve the list of contacts?
[SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = ‘Technology’];
[SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Accounts.Industry = ‘Technology’];
. [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE Accounts.Industry = ‘Technology’];
[SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHERE Account.Industry = ‘Technology’];;
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
• 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
Rollup summary fields can cause the parent record to go through Save.
The trigger may fire multiple times during a transaction.
Duplicate rules are executed once all DML operations commit to the database.
The validation rules will cause the trigger to fire again.
A company has been adding data to Salesforce and has not done a good Job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to identify duplicates and merge the records together.
Which two statements are valid considerations when using merged?
Choose 2 answers
The field values on the master record are overwritten by the records being merged.
Merge is supported with accounts, contacts, cases, and leads.
External ID fields can be used with the merge method
The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record.
Universal Containers has 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?
Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.
Rewrite all Visualforce pages as Lightning components.
Set the attribute enableLightning to true in the definition.
Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter.
How should the developer prevent a cross site scripting vulnerability?
ApexPages.currentPage() .getParameters() .get('url_param')
ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
A developer is implementing an Apex class for a financial system. Within the class, the
variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is
assigned.
variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is
assigned.
In which two ways can the developer declare the variables to ensure their value can only be assigned one time?
Choose 2 answers
Use the static keyword and assign its value in the class constructor.
Use the final keyword and assign its value in the class constructor
Use the static keyword and assign its value in a static initializer.
Use the final keyword and assign its value when declaring the variable.
Which three statements are true regarding custom exceptions in Apex?
(Choose three.)
A custom exception class must extend the system Exception class.
A custom exception class can implement one or many interfaces.
A custom exception class name must end with “Exception”.
A custom exception class cannot contain member variables or methods.
A custom exception class can extend other classes besides the Exception class.
A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names.
What two things should be done to create the test data within the unit test with the least amount of code?
Choose 2 answers
Use the @isTest(isParallel=true) annotation in the test class.
Use Test.loadData to populate data in your test methods.
Use the @isTest(seeAllData=true) annotation in the test class.
Create a static resource containing test data.
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.
At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.
What should a developer use to satisfy this requirement?
An Apex controller
An Apex REST class
An outbound message
An invocable method
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?
Lookup field
External ID field
Formula field
External Object
A developer is writing a tests for a class and needs to insert records to validate functionality.
Which annotation method should be used to create records for every method in the test class.
@isTest(SeeAllData=true)
@PreTest
@StartTest
@TestSetup
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.
What should the developer use to override the Contact's Edit button and provide this functionality?
A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience
A Lightning component in Salesforce Classic and a Lightning component in lightning Experience
A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience
A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience
A developer considers the following snippet of code:

4
2
1
3
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class.
Change Set deployment to production fails with the test coverage warning:
"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required"
"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required"
What should the developer do to successfully deploy the new Apex trigger and helper class?
Create a test class and methods to cover the Apex trigger
Run the tests using the 'Run All Tests' method.
Remove the falling test methods from the test class.
Increase the test class coverage on the helper class
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what 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 implements PaymentProcessor
{
public void pay(Decimal amount);
}
public void pay(Decimal amount);
}
C. Public class CheckPaymentProcessor extends PaymentProcessor
{
public void pay(Decimal amount);
}
public void pay(Decimal amount);
}
D. Public class CheckPaymentProcessor extends PaymentProcessor
{
public void pay(Decimal amount) {}
}
public void pay(Decimal amount) {}
}
A
B
C
D
Which three operations affect the number of times a trigger can fire?
Choose 3 answers
Choose 3 answers
Process Flows
Workflow Rules
Criteria-based Sharing calculations
Email messages
Roll-Up Summary fields
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
Lightning:flow
Aura:flow
In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?
On the Paused Row Interviews related List for a given record
In the Paused Interviews section of the Apex Flex Queue
In the system debug log by Altering on Paused Row Interview
On the Paused Row Interviews component on the Home page
A developer created these three Rollup Summary fields in the custom object, Project_ct,

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?
Record-triggered Flow
Formula field
Apex Trigger
Apex Trigger
Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application 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
Formula field on Applicant that references Job
Junction object between Applicant and Job
Lookup field from Applicant to Job
An Apex method, getAccounts, that returns a List of Accounts given a search Term, is available for Lighting Web components to use. What is the correct definition of a Lighting Web component property that uses the getAccounts method?
@AuraEnabled(getAccounts, ‘$searchTerm’) accountList;
@wire(getAccounts, ‘$searchTerm’) accountList;
@AuraEnabled(getAccounts, {searchTerm: ‘$searchTerm’}) accountList;
@wire(getAccounts, {searchTerm: ‘$searchTerm’}) accountList;
Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?
Limits
Exception
Messaging
OrgLimit
What should a developer do to check the code coverage of a class after running all tests?
View the Code Coverage column in the view on the Apex Classes page.
View the Class test Coverage tab on the Apex Class record.
View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.
Select and run the class on the Apex Test Execution page
A developer created a new trigger that inserts a Task when a new Lead is created.
After deploying to production, an outside integration chat 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?
Deactivate the trigger before the integration runs.
Use a try-catch block after the insert statement.
Remove the Apex class from the integration user's profile.
Use the Database method with all or None set to false
What should a developer use to script the deployment and unit test execution as part of continuous integration?
Vs Code
Developer Console
Salesforce CLI
Execute Anonymous
A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page. Without writing unnecessary code, which controller should be used for this purpose?
Standard list controller
Standard controller
Lightning controller
Custom controller
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers
Choose 3 answers
Insert pageRef.
Test.setCurrentPage(pageRef);
Public ExtendedController(ApexPages StandardController cntrl) { }
ApexPages.CurrentPage().getParameters().put('input\’, 'TestValue');
String nextPage - controller.save().getUrl();
Which three code lines are required to create a Lightning component on a Visualforce page?
Choose 3 answers
$Lightning.createComponent
$Lightning.useComponent
$Lightning.use
<apex:includeLightning/>
<apex:slds/>
Which action causes a before trigger to fire by default for Accounts?
Renaming or replacing picklist
Importing data using the Data Loader and the Bulk API
Converting Leads to Contact accounts
Updating addresses using the Mass Address update tool
Assuming that ‘name; is a String obtained by an <apex:inputText> tag on a Visualforce page.
Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers
Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers
A. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name.noQuotes() + '%\''; List results = Database.query(query); B. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + String.escapeSingleQuotes(name) + '%\'';
B. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + String.escapeSingleQuotes(name) + '%\'';
List results = Database.query(query);
C. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name + '%\''; List results = Database.query(query);
D. String query = '%' + name + '%';
List results = [SELECT Id FROM Account WHERE Name LIKE :query];
A
B
C
D
Which three Salesforce resources can be accessed from a Lightning web component?
Choose 3 answers
Choose 3 answers
SVG resources
Third-party web components
Content asset files
Static resources
All external libraries
Refer to the following Apex code:

What is the value of x when it is written to the debug log?
0
1
2
3
{"name":"Developer Exam Set 1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers), 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?, What does the Lightning Component framework provide to developers?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
More Quizzes
Vocabulary Test
320
Wolf Life: Do You Survive?
126224
Tìm hiểu về Bạn phượng
420
Prueba de Adjetivos
105659
Much Ado About Nothing Act I - Test Your Knowledge
201029225
Which Literary Character Are You? Free Personality
201020887
Which Deity Is Calling Me? Free Patron God or Goddess
201026130
Spanish 2 Midterm Practice - Free
201019083
Nursing Pathophysiology - Free Practice Questions
201018984
CNA Safety Practice Test - Free Online Questions
201019083
ANSI Test - Free Online Standards Knowledge Check
201032593
Name the Superhero - Can You Name Them All?
201020887