- (Exam Topic 3)
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?
Correct Answer:
C
- (Exam Topic 1)
A developer wants to write a generic Apex method that will compare the Salesforce Name filed between any two object records, for example to compare the Name field of an Account and an Opportunity; or the name of an Account and a Contact.
How should the developer do this?
Correct Answer:
C
- (Exam Topic 3)
A developer is building a Lightning web component to get data from an Apex method called getData that takes a parameter, name. The data should be retrieved when the user clicks the Load Data button.
Exhibit.
What must be added to get the data?
Correct Answer:
C
- (Exam Topic 1)
What is a recommended practice with regard to the Apex CPU limit? (Choose two.)
Correct Answer:
BC
- (Exam Topic 1)
Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?
Correct Answer:
D