Platform Developer I Exam Revision 3 (1)
Platform Developer I Exam Revision 3 (1)
Goal : Certification
18/09/204 — 26/09/2024
SalesForce
- Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
2/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:page>
A. Apex Flex Queue:
The Apex Flex Queue in Salesforce allows you to manage and monitor queued batch jobs. It holds
up to 100 batch jobs that are waiting to be processed once the currently running jobs are finished.
Only five batch jobs can be processed simultaneously, but additional jobs can wait in the Flex
Queue.
● Use Case: When you have more than five batch jobs submitted, the extra jobs will be
placed in the Flex Queue and executed when one of the currently running jobs finishes.
● Benefits: You can monitor the Flex Queue, reorder jobs, and manage which jobs should be
prioritized for execution.
4/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?*
Use the Database method with all or None set to false
5/Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts.
The component should be able to validate the user input before saving the information to the database.
What is the best technology to create this component?
Lightning Web Components
Only Three Records Can Be Merged at Once:
The merge operation in Salesforce only allows up to three records to be merged in a single transaction.
The first record you specify in the merge method becomes the "master" record, and the other two records will be
merged into this master record. This is important to consider when dealing with more than three duplicates at once;
you would need to perform multiple merges if more than three duplicates exist.
EXEMPLE :
Lead masterLead = [SELECT Id, Name FROM Lead WHERE Id = 'someId'];
● When you merge multiple Leads, one record is the "master" record. This master record keeps its field values
after the merge.
● The other records (called "duplicates") get deleted, but if they have some important values, you can choose
to keep those values before merging.
A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in
the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?
C. The test method does not use System.runAs to execute as a specific user.
What should a developer use to script the deployment and unit test execution as part of continuous integration?
—-----------------------------------------------------------------------------------------------------------------------------------------------------------------
When migrating a Visualforce page to a Lightning Web Component (LWC) and using Lightning Data Service (LDS) to access record data, the
developer should be aware of the following key security consideration:
Lightning Data Service Enforces Sharing Rules and Field-Level Security (FLS)
Key Point:
The Visualforce page shows information about a single record. The developer
decides to use Lightning Data Service to access record data.
● The data created in the @testSetup method is available to all test methods within the test class.
● This allows developers to set up test data once, reducing duplication and improving test class efficiency.
insert acc;
@isTest
System.assertNotEquals(null, acc); }}
Which two statements are true about using the @testSetup annotation in an Apex test class?
B. Records created in the test setup method cannot be updated in individual test methods.
C. A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.
D. Qo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used. True: The @testSetup annotation is not supported when the IsTest(SeeAllData=true) annotation is
used, because the purpose of @testSetup is to create test data specific to the test class, and SeeAllData=true is used to access real org data, which contradicts the purpose of isolation in test setup.
A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.
Which annotation should the developer add to the Apex method to achieve this? a/ @Auraenabled (cacheable=true)
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?
D. @AuraEnabled(cacheable=true)
A. Share the parent Case and Defect_c records. B. Fast field Updates record-triggered flow
D.
A development team wants to use a deployment script to automatically deploy to a sandbox during
their development cycles. Which two tools can they use to run a script that deploys to a sandbox?A.
Change Sets
B. Developer Console
D. Calling a method with the click of a button C. Maintain all three triggers on the
Expense__c object, but move the Apex logic
out of the trigger definition.
D. Roll-Up Summaries
D. The number of records processed in a loop
E. Flow
A developer created a Lightning web component called
A developer is tasked to perform a security review of the ContactSearch Apex statusComponent to be inserted into the Account record page.
class that exists in the system. Whithin the class, the developer identifies the Which two things should the developer do to make the
following method as a security threat: List<Contact> performSearch(String component available?
lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact
WHERE LastName Like %'+lastName+'%); } What are two ways the developer can A. Add<target> Lightning_RecordPage </target> to the
update the method to prevent a SOQL injection attack? Choose 2 answers statusComponent.js file.
A. Use the escapeSingleQuote method to sanitize the parameter before its use.
B. Add < masterLabel>Account</master Label> to the
B. Use a regular expression on the parameter to remove special characters. statusComponent.js-meta ml file.
C. Use variable binding and replace the dynamic query with a static SOQL. C. Add <isExposed> true</isExposed> to the
statusComponent.js-meta ml file.
D. Use the @Readonly annotation and the with sharing keyword on the class.
C. bubbles: true, composed: true B. A custom field, Link__c, on the standard Contact object that
looks up to an Account or a Campaign
D. bubbles: false, composed: true
C. The Parentid field on the standard Account object
When the code executes, a DML exception is thrown.
How should a developer modify the code to ensure exceptions are handled gracefully? D. The Whatld field on the standard Event object
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 an aggregate function to sum the amount for all related child objects under the Opportunity
C. Write a Process Builder that links the custom object to the Opportunity.
D. 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.
Which statement describes the execution order when trigger are A developer is asked to prevent anyone other than a user with Sales
associated to the same object and event? Manager profile from changing the Opportunity Status to Closed Lost if
the lost reason is blank.
A. Trigger execution order cannot be : guaranteed. why : In Which automation allows the developer to satisfy this requirement in the
Salesforce, when multiple triggers are associated with the same most efficient manner?
object and event, the execution order of those triggers is not
A. An error condition formula on a validation rule on Opportunity
guaranteed. While Salesforce processes them, the order in
which they run is unpredictable, and developers cannot rely on
B. A record trigger flow on the Opportunity object
the system to execute them in a specific sequence.
E. Content asset files D. Write the query in a custom Lightning web component wrapper ana
invoke from the Lightning component,
Explanation:
AW Computing tracks order information in custom objects called order__c and
order_Line_ c - Currently, all shipping information is stored in the order__c object.
1. SVG resources (C): Salesforce allows Lightning The company wants to expand Its order application to support split shipments so that
Web Components (LWC) to access and display any number of order_Line__c records on a single order__c can be shipped to different
SVG images, which can be used as icons or for locations.
What should a developer add to fulfill this requirement?
custom graphical content.
2. Static resources (D): Static resources (such as A. Order_shipment_Group_c object and master-detail field on order_c
JavaScript libraries, CSS files, or images) are
hosted by Salesforce and can be referenced within B. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c
LWCs.
C. Order_shipment_Group_c object and master-detail field on order_Line_c
3. Content asset files (E): Content assets are files
stored in Salesforce that can be accessed by
D. Order_shipment_Group_c object and master-detail field on order_shipment_Group_c
LWCs, especially for media content like images or
What are three characteristics of change set deployments?
Deployment in salesForce Choose 3 answers
SET EXPLANATION :In programming, a set is a collection of A. Change sets can deploy custom settings data.
distinct, unordered elements where duplicates are not allowed.
Unlike lists or arrays, where items can appear more than once and B. Change sets can be used to transfer records.
the order matters, a set ensures that each item appears only once,
and there’s no defined order. C. Deployment is done in a one-way, single transaction.
1. No Duplicates: Sets automatically E. Sending a change set between two orgs requires a
filter out any duplicate values. deployment connection.
2. Unordered: The items in a set do not
have a particular sequence.
3. Efficient Membership Testing:
Checking if an item is in a set is
generally faster than checking in a list,
as sets use hash-based lookups. EXPLANATION NEXT PAGEE !!!!!!
A. Change sets can deploy custom settings data.
● Explanation: Change sets can deploy metadata but not actual data. Custom settings can be deployed as metadata, meaning their structure or definition, but not
the data they contain. Custom settings data needs to be migrated separately, for example, via the Data Loader or other data migration tools.
● Is this correct?: No – Change sets cannot deploy the data for custom settings.
● Explanation: Change sets are used to deploy metadata (configuration) between Salesforce orgs, such as objects, fields, and classes. They do not transfer actual
records or data, like leads or opportunities.
● Is this correct?: No – Change sets do not transfer records; they only transfer metadata.
● Explanation: This is true. Change sets are deployed in a single transaction. This means all the components in the change set are deployed at once, and if any
component fails, the entire deployment is rolled back.
● Is this correct?: Yes – Change set deployment is a one-way process, and it all happens in one transaction.
● Explanation: This is also true. Change sets can only be used between related (connected) Salesforce orgs, such as a sandbox and its associated production org
or between sandboxes of the same production org. To deploy a change set between two orgs, there needs to be a deployment connection between them.
● Is this correct?: Yes – Change sets can only be used between related orgs.
● Explanation: Correct. Before you can send a change set between two orgs (e.g., from a sandbox to production), you need to establish a deployment connection
between those orgs. This connection allows you to transfer metadata using change sets.
● Is this correct?: Yes – A deployment connection is required to send change sets between orgs.
Universal Container* 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 answer
A. Validation Rules
C. Remote Actions
D. Batch Jobs
Purely declarative development refers to building and configuring applications or systems using point-and-click,
drag-and-drop, or other visual tools, without writing code. In Salesforce and similar platforms,
B. The parent component can use a custom event to pass the data to the
child component,
D. The parent component can use the Apex controller class to send data
to the child component.
C. The parent component can invoke a method in the child
component.
● This method allows loading data from static resource CSV files into the
test context. If you have a CSV file containing
Pricing_Structure__c records, this would be a valid approach to
ensure that the necessary data is available during the test.
A team of developers is working on a source-driven project that A. Full Copy Sandboxes
allows them to work independently, with many different org
configurations. Which type of Salesforce orgs should they use for ● These are copies of your production environment, including all data and
their development? metadata. They are useful for testing and training but are not ideal for
independent, agile development because they can be large and take
A. Full Copy sandboxes time to refresh.
What occurs when more than one Account is returned by the SOQL
query?
A. The query falls and an error Is written to the debug log.
B. @isTest (SeeAllData-true)
C. @TestSetup
D. @FreTest
The @InvocableMethod annotation in Apex is used to expose an Apex method to be called
from Salesforce automation tools, such as Process Builder or Flow. This allows you to create
custom business logic that can be executed within these tools.
Static Method Requirement: What are three considerations when using the
@InvocableMethod annotation in Apex?
● The method must be declared as static. This means that it belongs to the Choose 3 answers
class itself rather than to a specific instance of the class. This is necessary for
A. A method using the @InvocableMethod annotation
the method to be called without needing to create an object of the class.
must be declared as static
Parameter Types:
B. A method using the @InvocableMethod annotation
● The method can accept a list of input parameters, but those parameters must can be declared as Public or Global.
be wrapped in a specific type. Typically, you use a custom class with properties
that define the inputs. This allows the method to accept multiple records from
C. Only one method using the @InvocableMethod
the calling tool.
annotqation can be defined per Apex class.
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?
A. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
● A. String.ValueOf(ApexPages.currentPage().getParameters().get('url_param'))
○ This simply converts the input to a string but does not perform any sanitization, leaving it vulnerable to XSS.
● B. String.escapeSingleQuotes(ApexPages.currentPage().getParameters().get('url_param'))
○ While this method helps prevent issues with single quotes, it does not cover all potential XSS vectors, especially those
involving HTML tags.
● D. ApexPages.currentPage().getParameters().get('url_param')
○ This retrieves the parameter directly without any sanitization, making it highly susceptible to XSS attacks.
A developer must create a DrawList class that provides capabilities extends is used for inheriting from a
defined in the Sortable and Drawable interfaces. public interface class, not for implementing interfaces
Sortable { void sort(); } public interface Drawable { void draw(); } Which
is the correct implementation?
In Java and Apex, the correct syntax to
A. Public class DrawList extends Sortable, extends Sortable, extends implement multiple interfaces is to use
Drawable { public void sort() { /*implementation*/ } public void draw() { /* the implements keyword, not
implementation */} extends. A class can implement
multiple interfaces, meaning it will
B. Public class DrawList implements Sortable, Implements Drawable { provide implementations for the methods
defined by those interfaces.
public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
]
A company has a custom object, Order__c, that has a required, unique external ID field called OrderNumber__c.
Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of
C. Task actions
C. At least 75% of Aptx code must be covered by unit tests.
Given the following code snippet, that is part of a custom controller for a
Visualforce page:
In which 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 current logged-in user does not have the appropriate level
of access? Choose 2 answers
A. Use if (Schema, sobjectType, Contact, isUpdatable ( ) )
D. Use if (Schema.sObjectType.Contact.isAccessible ( ) )
What are two characteristics related to formulas? A developer wants to get access to the standard price book in the org
Choose 2 answers while writing a test class that covers an OpportunityLineItem trigger.
Which method allows access to the price book?
A. Formulas can reference values from objects.
A. Use @IsTest (SeeAllData=True) and delete the existing standard price
B. Fields that are used in a formula field can be deleted or book
edited wlthojt editing the formjta.
B. Use Test.getStandardPricebookid ( ) to get the standard price book ID.
C. formulas can reference themselves.
C. Use @TestVisible to allow the test method to see the standard price book.
D. Formulas are calculated at runtime and are not stored in the
database D. Use Test.loadData ( )and a static resource to load a standard price book
C. View the Code Coverage column in the list on the Apex Classes page.
D. View the code coverage percentage or the class using the Overalll
code Coverage panel in the Developer Console Test tab.
A developer must implement a CheckPaymentProcessor class that provides A developer wants to mark each Account in a
check processing payment capabilities that adhere to what defined for List<Account> as either or Inactive based on the
payments in the PaymentProcessor interface. public interface LastModified field value being more than 90 days.
PaymentProcessor { void pay(Decimal amount); } Which is the correct Which Apex technique should the developer use?
implementation to use the PaymentProcessor interface class?
A. A Switch statement, with a for loop inside
A. Public class CheckPaymentProcessor implements PaymentProcessor {
B. An If/else statement, with a for loop inside
public void pay(Decimal amount);
} C. A for loop, with an if/else statement inside
B. Public class CheckPaymentProcessor extends PaymentProcessor { D. A for loop, with a switch statement inside
public void pay(Decimal amount) {} Using a for loop to iterate over the
} List<Account> and an if/else statement to
check the LastModified field allows the
C. Public class CheckPaymentProcessor implements PaymentProcessor { developer to mark each account as either
Active or Inactive based on the condition.
This is a straightforward and effective
public void pay(Decimal amount) {}
approach for this scenario.
}
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?
A. Create the Picklist on each object and use a Global Picklist Value Set containing the
Values.
B. Create the Picklist on each object as a required field and select "Display values
alphabeticaly, not in the order entered".
C. Create the Picklist on each and add a validation rule to ensure data integrity.
D. Create the Picklist on each object and select "Restrict picklist to the values defined in
the value set".
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 answe
A. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the
Opportunity detail page.
B. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP
REST callout.
C. 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.
D. 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.
The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, 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?
A. The deployment fails because the Apex trigger has no code coverage.
B. The deployment passes because both classes and the trigger were included in the deployment.
C. The deployment fails because no assertions were made in the test method.
D. The deployment passes because the Apex code has the required >75% code coverage.
A credit card company needs to implement the Reason:
functionality for a service agent to process
damaged or stolen credit cards. When the ● Screen-based Flow: This allows for a guided, interactive experience for the service agent.
customers call in, the service agent must gather It can prompt the agent to collect various pieces of information step-by-step, making it
many pieces of information. A developer is
user-friendly and efficient. Flows can also easily incorporate logic to handle different
tasked to implement this functionality.
scenarios based on user input.
What should the developer use to satisfy this
requirement in the most efficient manner?
Why Not the Others:
A. Approval process
● A. Approval Process: This is primarily for routing records for approval and is not suitable
B. Lightning Component for gathering information interactively.
● B. Lightning Component: While a Lightning component could be used, it may require
C. Screen-based flow more development time to implement compared to using a flow, which is designed for this
type of use case.
● D. Apex Trigger: Triggers are used for automated backend processes and wouldn’t provide
D. Apex trigger
an interface for the service agent to gather information interactively.
Create Custom Exceptions
Custom exceptions enable you to specify detailed error messages and have more custom error
handling in your catch blocks.
Exceptions can be top-level classes, that is, they can have member variables, methods and
constructors, they can implement interfaces, and so on.
To create your custom exception class, extend the built-in Exception class and make sure your
class name ends with the word Exception, such as “MyException” or “PurchaseException”. All
exception classes extend the system-defined base class Exception, and therefore, inherits all
common Exception methods.
Like Java classes, user-defined exception types can form an inheritance tree, and catch blocks can catch any object in this inheritance
tree. For example:
public class ExceptionExample {
public virtual class BaseException extends Exception {}
public class OtherException extends BaseException {}
C. A custom exception class must extend In many languages, including Java, custom exceptions must extend from the Exception
class (or a subclass of it) to be recognized as exceptions.
the system Exception class.
D. A custom exception class can extend While a custom exception can extend other classes, it must ultimately extend the
other classes besides the Exception class. Exception class or one of its subclasses to be treated as an exception.
E. A custom exception class can implement A custom exception class can implement interfaces, allowing it to adhere to specific
one or many interfaces. contracts or behaviors defined by those interfaces.
A. Partial Copy Sandbox
a Sandbox is a separate environment that
allows developers, administrators, and ● Purpose: This type of sandbox is used for testing and development
testers to work on and test applications, purposes. It includes a subset of your production data (up to 5 GB) and all
configurations, and data without affecting the metadata, allowing for testing with real data.
production environment ● Data: Contains some data but is not a complete copy of the production data.
B. Full Sandbox
Which salesforce org has a complete duplicate copy of ● Purpose: This sandbox provides a complete duplicate of your production
the production org including data and configuration? org, including all data and configuration. It's typically used for performance
A. Partial Copy Sandbox testing, user training, or QA.
● Data: Contains a complete copy of all production data.
B. Full Sandbox
C. Developer Pro Sandbox
C. Developer Pro Sandbox ● Purpose: Similar to a Developer Sandbox but with more storage. It's
primarily used for development and testing with configuration and limited
D. Production data.
● Data: Contains no production data by default; it is primarily for development.
D. Production
Key Features of Sandboxes: ● Purpose: This is your live Salesforce environment where real business
1. Isolation operations occur.
2. Testing and Development ● Data: Contains all your actual business data.
You can configure trace flags for the following three items:
1. Apex Code: You can enable debug logging for Apex code to capture details about the execution of your Apex classes
and triggers, which helps in identifying issues or performance bottlenecks.
2. Workflow: Trace flags can be set to log information about workflow rules, including the criteria for rule execution and
the actions taken, which is useful for debugging complex workflows.
3. Validation Rules(user): You can also configure trace flags to log information about validation rules to understand why
certain records are being accepted or rejected based on the rules defined.
For which three items can 2 trace flag be configured? Choose 3 answers How to Set Trace Flags:
A. Apex Class
1. Navigate to Setup in Salesforce.
B. Visualforce 2. In the Quick Find box, type Debug
Logs and select it.
C. User 3. Click New to create a new trace flag,
selecting the user and specifying the
D. Flow log levels for the items you want to
trace.
E. Apex Trager
Ursa Major Solar has a custom object, serviceJob-o, with
What are three capabilities of the <ltng : require> tag when
an optional Lookup field to Account called
loading JavaScript resources in Aura components?
partner-service-Provider_c.
Choose 3 answers ????!!!!!!! donnoww
The TotalJobs-o field on Account tracks the total number
of serviceJob-o records to which a partner service A. Loading scripts In parallel
provider Account is related.
What is the most efficient way to ensure that the Total
B. Loading externally hosted scripts
job_o field kept up to data? !!!!!!!!! donnoww
A. Create a schedule-triggered flow on ServiceJob_o. C. Loading files from Documents
B. Salesforce CLI
C. Sandbox refresh
D. Developer Console
A developer creates a batch Apex job to update a large number of records, Asynchronous Job Monitoring Page: This
and receives reports of the job timing out and not completing. page provides insights into the status of
What is the first step towards troubleshooting the issue? asynchronous jobs, including batch jobs. By
checking this page, you can gather important
A. Decrease the batch size to reduce the load on the system.
information about the job's execution, such as
how many batches were processed, whether
B. Check the asynchronous job monitoring page to view the job status and any errors occurred, and if the job is still
logs. running or has failed.
D. Disable the batch job and recreate it with a smaller number of records.
C. Schedule a report.
C. Developer Console
● What is it? The StandardSetController is a built-in Visualforce ● What is it? This is not a built-in controller like
controller provided by Salesforce that allows developers to implement StandardSetController, but typically refers to a
pagination efficiently. It automatically handles large record sets and custom implementation that uses the SOQL OFFSET
allows navigation through pages of records without exceeding view keyword to retrieve a specific subset of records.
state limits. ● Why Not Use It? The OFFSET keyword in SOQL can
● Why Use It? It reduces the number of records loaded into memory become inefficient with large data sets because it
(view state) at any given time by only displaying a limited number of essentially skips records to retrieve a subset, which can
records per page, which is perfect for handling the scenario of 10,000+ degrade performance as you move further into the
records. record set. Salesforce does not recommend using it for
● How Does It Work? You can specify the page size and navigate large data volumes.
through pages, loading only a subset of records at a time.
comparison
The sales management team at Universal Container requires that the Lead A validation rule is the best way to ensure that a field is
Source field of the Lead record be populated when a.. converted. populated with data before a certain action is taken, such
What should be done to ensure that a user populates the Lead Source
as converting a lead.
field prior to converting a Lead?
A. Create an after trigger on Lead. ● What is a validation rule? A validation rule
enforces that specific criteria are met when saving
B. Use a validation rule. or updating a record. If the criteria aren't met, the
system will display an error message, preventing
C. Use Lead Conversion field mapping. the user from proceeding until the issue is
resolved.
D. Use a formula field.
D. An Apex controller
A developer needs to allow users to A. Create a Custom Permission for the users.
complete a form on an Account record that
will create a record for a custom object. ● This will allow the developer to define a specific permission that can be granted only to the small group of users who
The form needs to display different fields should have access to the functionality. Custom permissions can be checked in the Lightning component or flow to
control visibility.
depending on the user's job role. The
functionality should only be available to a
small group of users. B. Create a Dynamic Form.
Which three things should the developer do
● A Dynamic Form allows for a more flexible layout and conditional visibility of fields based on user criteria. This will
to satisfy these requirements?
enable the display of different fields depending on the user’s job role, allowing for a tailored experience.
Choose 3 answers
A. Create a Custom Permission for the D. Create a Lightning web component.
users.
● A Lightning web component (LWC) can be used to create the custom form. This component can incorporate the
logic to check user roles and permissions and render fields accordingly. LWCs are also a great way to enhance user
B. Create a Dynamic Form, experience on the Lightning platform.
C. Add a Dynamic Action to the Users' Why Other Options Are Less Suitable:
assigned Page Layouts.
● C. Add a Dynamic Action to the Users' assigned Page Layouts.
○ While Dynamic Actions can be useful for controlling visibility and actions on the page, this option does not
D. Create a Lightning wet> component. directly address the requirement to create a record for a custom object or customize the fields shown
based on job roles.
● E. Add a Dynamic Action to the Account Record Page.
E. Add a Dynamic Action to the Account ○ Similar to option C, while Dynamic Actions can help manage visibility, they do not directly create the
Record Page. record or control field visibility based on job roles as effectively as a Dynamic Form and LWC.