Free TVB-450 Exam Braindumps (page: 16)

Page 15 of 38

A developer is implementing an Apex class for a financial system. Within the class, the variables `creditAmount' and `debtAmount' should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers

  1. Use the static keyword and assign its value in the class constructor.
  2. Use the final keyword and assign its value in the class constructor.
  3. Use the static keyword and assign its value in a static initializer.
  4. Use the final keyword and assign its value when declaring the variable.

Answer(s): B,D



If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

  1. The Apex governor limits might be higher due to the asynchronous nature of the transaction.
  2. The apex governor limits are reset for each iteration of the execute() method.
  3. The Apex governor limits are relaxed while calling the constructor of the Apex class.
  4. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction,

Answer(s): A,B



A developer Is Integrating with a legacy on-premise SQL database.
What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?

  1. Lookup field
  2. External ID field
  3. Formula field
  4. External Object

Answer(s): B



A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem 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 Orderltem records to a new Order record?

  1. Change the master-detail relationship to an external lookup relationship.
  2. Add without sharing to the Apex class declaration.
  3. Create a junction object between Orderltem and Order.
  4. Select the Allow reparenting option on the master-detail relationship.

Answer(s): D






Post your Comments and Discuss Salesforce TVB-450 exam with other Community members:

TVB-450 Exam Discussions & Posts