A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface Which approach can be used to accomplish this?
Answer : B
A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an
OrderlItem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.
What should a developer do to allow their code to move some existing OrderItem records to a new Order record?
Answer : D
Allow Reparenting in Master-Detail Relationships:
In a master-detail relationship, the child record (in this case, OrderItem) is tightly bound to the parent record (Order).
By default, child records cannot be reassigned to a different parent record in master-detail relationships. However, enabling the 'Allow Reparenting' option on the master-detail field allows the child record (OrderItem) to be reparented to a different master record (Order).
This is the correct solution as it ensures that OrderItem records can be reassigned to a new Order without changing the structure of the relationship.
Why not the other options?
A . Add without sharing to the Apex class declaration:
Adding without sharing modifies sharing rules but does not affect the ability to reparent child records. This is unrelated to the issue described.
B . Change the master-detail relationship to an external lookup relationship:
Changing the relationship type is not necessary. Additionally, doing so could introduce unintended side effects, as master-detail relationships have features like roll-up summaries that are lost with a lookup relationship.
C . Create a junction object between OrderItem and Order:
Introducing a junction object is not required. This adds unnecessary complexity and deviates from the intended use of master-detail relationships.
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, Bodyfat, and its method, calculateBodyFat (). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace.
Which approach should a developer take to ensure calculateBodyFat () is accessible outside the package namespace?
Answer : A
A developer considers the following snippet of code:
Based an this code, what is the value of x?
Answer : D
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)
B)
C)
D)
Answer : C
What are two ways for a developer to execute tests in an org?
Choose 2 answers
Answer : A, D
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?
Answer : D