Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Salesforce CRT-450 Questions Answers

Page: 9 / 18
Total 235 questions

Salesforce Certified Platform Developer I (SP23) Questions and Answers

Question 33

What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.

Which approach should the developer use to be sure that the Apex class is working according tospecification?

Options:

A.

Create a test class to execute the business logic and run the test in the Developer Console.

B.

Include a savepoint and Database,rollback.

C.

Include a try/catch block to the Apex class.

D.

Run the code in an Execute Anonymous block n the Deceloper Consider.

Question 34

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?

Options:

A.

Public class CreditcardPayment extends Payment {

public override void makePayment(Decimal amount) { /*implementation*/ }

}

B.

Public class CreditCardPayment implements Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

C.

Public class CreditCardPayment extends Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

D.

Public class CreditCardPayment implements Payment {

public override void makePayment(Decimal amount) { /*Implementation*/ }

}

Question 35

A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.

What is the first step towards troubleshooting the issue?

Options:

A.

Check the asynchronous job monitoring page to view the job status and logs.

B.

Check the debug logs for the batch job.

C.

Decrease the batch size to reduce the load on the system.

D.

Disable the batch job and recreate it with a smaller number of records.

Question 36

Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation.

What are two characteristics of declarative development over programmatic customization? Choose 2 answers

Options:

A.

Declarative code logic does not require maintenance or review.

B.

Declarative development has higher design limits and query limits.

C.

Declarative development can be done using the setup menu.

D.

Declarative development does not require Apex test classes.

Page: 9 / 18
Total 235 questions