Which statement would a developer use when creating test data for products and pricebooks?

Which statement would a developer use when creating test data for products and pricebooks?A . Id pricebookId = Test.getStandardPricebookId();B . Pricebook pb = new Pricebook();C . IsTest(SeeAllData = false);D . List objList = Test.loadData(Account.sObjectType, 'myResource');View AnswerAnswer: A

November 3, 2021 No Comments READ MORE +

Which two environments meet the requirements for testing?

A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for...

November 3, 2021 No Comments READ MORE +

In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object?

A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)A . Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.B . Use mySObject.myObject.fields.getMap() to return...

November 3, 2021 No Comments READ MORE +

Where would the developer write the Account address verification logic?

A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account...

November 2, 2021 No Comments READ MORE +

How should a developer create a new custom exception class?

How should a developer create a new custom exception class?A . public class CustomException extends Exception{}B . CustomException ex = new (CustomException)Exception();C . public class CustomException implements Exception{}D . (Exception)CustomException ex = new Exception();View AnswerAnswer: A

November 2, 2021 No Comments READ MORE +

How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?

A developer wants to create a custom object to track Customer Invoices. How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?A . The Account should have a Master-Detail relationship to the Invoice.B . The Invoice should have a...

November 1, 2021 No Comments READ MORE +

What is the proper process for an Apex Unit Test

What is the proper process for an Apex Unit TestA . Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.B . Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.C . Create data...

November 1, 2021 No Comments READ MORE +

Which step should the developer take to resolve the issue and properly test the exception?

A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. Which step should the developer take to resolve the issue and properly test the exception?A . Use try/catch within the unit test...

October 31, 2021 No Comments READ MORE +

How can a developer display data from the parent record on the page?

A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?A . By adding a second standard controller to the page for the parent record.B . By using a...

October 31, 2021 No Comments READ MORE +

Which statement about change set deployments is accurate? (Choose 3)

Which statement about change set deployments is accurate? (Choose 3)A . They use an all or none deployment model.B . They require a deployment connection.C . They ca be used to transfer Contact records.D . They can be used to deploy custom settings data.E . They can be used only...

October 31, 2021 No Comments READ MORE +