A developer is creating a Lightning web component that can be added to a Lightning App Page and displayed when the page Is rendered in desktop and mobile phone format. To ensure a great mobile experience, the developer chooses to use the SLDS grid utility.
Which two Lighting web components should the developer implement to ensure the application Is mobile-ready? Choose 2 answers
A.
B.
C.
D.
A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the opportunity's stage is changed, a workflow rule is fired to increase the value of a filed by one. The developer
wrote an after trigger to create a child record when the field changes from 4 to 5.
A user changes the stage of an Opportunities and manually sets the count field to 4. The count field updates to 5, but the child record is not created.
What is the reason this is happening?
A. After triggers fire before workflow rules.
B. After triggers are not fired after field updates.
C. Trigger .new does not change after a field update.
D. Trigger .old does not contain the updated value of the count field.
A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce.
This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate the orders to the corresponding accounts.
Which two recommendations should make this process more efficient?
Choose 2 answers
A. Ensure the data in the file is sorted by the order ID.
B. Use the upsert wizard in the Data Loader to import the data.
C. Identify unique fields on Order and Account and set them as External IDs.
D. Use the Insert wizard In the Data Loader to Import the data.
A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating.
What should the developer change in the code above for this to happen?
A. Add the @track decorator to the data variable.
B. Create a new variable to store the result and annotate it with @tracx.
C. Call refereshApex () on this.data
D. Create a variable to store the result and call refreshApex ().
Refer to the code below:
When the code runs, it results In a System Limit Exception with the error message: Apex heap size too large. What should be done to fix this error?
A. Use a SOQL for loop to process the data.
B. Convert the Lis: into a 5tc.
C. Use Limits.getLimitHeapSize().
D. Use a try/catch block to catch the error.
A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert a parent record and a child record.
A validation rule blocks child records from being created. The method uses a try/catch block to handle the DML exception.
What should the developer do to ensure the parent always has a child record?
A. Use Database.insert () and set the allorNone parameter to true.
B. Use addError () on the parent record if an error occurs on the child record.
C. Set a database savepoint to rollback if there are errors.
D. Delete the parent record in the catch statement when an error occurs on the child record DML operation.
A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes.
What should the developer do to implement the communication?
A. Publish an event on an event channel.
B. Fire an application event.
C. Publish a message on a message channel.
D. Fire a custom component event.
Consider the following code snippet:
The Apex method is executed in an environment with a large data volume count for Accounts, and the query is performing poorly. Which technique should the developer Implement to ensure the query performs optimally, while preserving the entire result set?
A. Annotate the method with the @Future annotation.
B. Create a formula field to combine the CreatedDate and RecardType value, then filter based on the formula.
C. Use the Database.queryLocator method to retrieve the accounts.
D. Break down the query into two individual queries and Join the two result sets.
A developer wrote a class named AccountHistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a parameter and returns a list of associated AccountHistroy object records.
The following test falls:
What should be done to make this test pass?
A. Use test. Is Running test () in getAccountHostory () to conditionally return fake AccountHistory records.
B. Use @istest (SeeAll Data=true) to see historical data from the org and query for AccountHistory records.
C. Create AccountHistory records manually in the test setup and write a query to get them.
D. The test method should be deleted since this code cannot be tested.
What should a developer use to query all Account fields for the Acme account in their sandbox?
A. SELECT * FROM ACCOUNT WHERE Name = `Acme' LIMIT 1
B. SELECT ALL FROM Account WHERE Name = `Acme' LIMIT 1
C. SELECT FIELDS FROM Account WHERE Name = `Acme' LIMIT 1
D. SELECT FIELDS (ALL) FROM Account WHERE Name = `Acme' LIMIT 1
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.