What is the best practice to get the sum of all Order Line item totals on the Order record?

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...

January 26, 2025 No Comments READ MORE +

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?A . bubbles: true, composed: trueB . bubbles: true, composed: falseC . bubbles: false, composed: falseD . bubbles: false, composed: trueView AnswerAnswer: A Explanation: To enable a custom...

January 25, 2025 No Comments READ MORE +

How should this be accomplished?

A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user clicks a button called Next in the child component, the parent component must be alerted so it can navigate to the next page. How should...

January 24, 2025 No Comments READ MORE +

What is the most efficient way to implement this and follow best practices?

A developer wants to improve runtime performance of Apex calls by caching results on the client. What is the most efficient way to implement this and follow best practices? A. Call the setStorable () method on the action in the JavaScript client-side code. B. Set a cookie in the browser...

January 19, 2025 No Comments READ MORE +

What should the UC development team use to automatically run tests as part of their CI process?

Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI). What should the UC development team use to automatically run tests as part...

January 19, 2025 No Comments READ MORE +

Which statement would a developer use when creating test data for products and pricebooks?

Which statement would a developer use when creating test data for products and pricebooks?A . Id pricebookId = Test.getStandardPricebookId();B . Pricebook pb = new Pricebook();C . IsTest(SeeAllData = false);D . List objList = Test.loadData(Account.sObjectType, 'myResource');View AnswerAnswer: A

November 3, 2021 No Comments READ MORE +

Which two environments meet the requirements for testing?

A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for...

November 3, 2021 No Comments READ MORE +

In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object?

A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)A . Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.B . Use mySObject.myObject.fields.getMap() to return...

November 3, 2021 No Comments READ MORE +

Where would the developer write the Account address verification logic?

A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account...

November 2, 2021 No Comments READ MORE +

How should a developer create a new custom exception class?

How should a developer create a new custom exception class?A . public class CustomException extends Exception{}B . CustomException ex = new (CustomException)Exception();C . public class CustomException implements Exception{}D . (Exception)CustomException ex = new Exception();View AnswerAnswer: A

November 2, 2021 No Comments READ MORE +