Pass the Salesforce Developers CRT-450 Questions and answers with CertsForce

Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions
Questions # 11:

Universal Containers hires a developer to build a custom search page to help users find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.

Which consideration should the developer be aware of when deciding between SOQL and SOSL?

Choose 2 answers

Options:

A.

SOSL is faster for text searches.


B.

SOQL is able to return more records


C.

SOQL Is faster for text searches.


D.

SOSL is able to return more records.


Expert Solution
Questions # 12:

What are two use cases for executing Anonymous Apex code?

Choose 2 answers

Options:

A.

schedule an Apex class to run periodically


B.

To delete 15,000 inactive Accounts in a single transaction after a deployment


C.

To run a batch Apex class to update all Contacts


D.

To add unit test code coverage to an org


Expert Solution
Questions # 13:

A developer needs to have records with specific field values in order to test a new Apex class.

What should the developer do to ensure the data is available to the test?

Options:

A.

Use SOQL to query the org for the required data.


B.

Use Test.loadData() and reference a CSV file in a static resource.


C.

Use Anonymous Apex to create the required data.


D.

Use Test. loadData() and reference a JSON file in Documents.


Expert Solution
Questions # 14:

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 this be accomplished?

Options:

A.

Update a property on the parent.


B.

Call a method in the Apex controller.


C.

Fire a notification.


D.

Create a custom event.


Expert Solution
Questions # 15:

The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the Visualforce page, what should the developer do to correct the problem?

Options:

A.

Add a getter method for the actType attribute.


B.

Change theAccount attribute to public.


C.

Add with sharing to the custom controller.


D.

Convert theAccount.Type to a String.


Expert Solution
Questions # 16:

Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?

Options:

A.

Database. insert (records, true)


B.

insert records


C.

insert (records, false)


D.

Database. insert (records, false)


Expert Solution
Questions # 17:

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?

Options:

A.

html

CopyEdit


B.

html

CopyEdit


C.

html

CopyEdit


D.

html

CopyEdit


Expert Solution
Questions # 18:

A lead developer creates an Apex interface called Laptop.

Consider the following code snippet:

apex

CopyEdit

public class SilverLaptop {

// code implementation

}

How can a developer use the Laptop interface within the SilverLaptop class?

Options:

A.

Extends (class="Laptop") public class SilverLaptop


B.

public class SilverLaptop implements Laptop


C.

public class SilverLaptop extends Laptop


D.

Interface (class="Laptop") public class SilverLaptop


Expert Solution
Questions # 19:

A developer creates a custom exception as shown below:

public class ParityException extends Exception { }

What are two ways the developer can fire the exception in Apex?

Options:

A.

throw new ParityException ();


B.

throw new parityException ('parity does not match');


C.

new ParityException ();


D.

new ParityException('parity does not match');


Expert Solution
Questions # 20:

What are two benefits of using declarative customizations over code?

Choose 2 answer

Options:

A.

Declarative customizations automatically update with each Salesforce release.


B.

Declarative customizations automatically generate test classes.


C.

Declarative customizations cannot generate run time errors


D.

Declarative customizations generally require less maintenance


Expert Solution
Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions