CRT-450 Exam Questions

Total 392 Questions

Last Updated Exam : 7-Jul-2025

Topic 2 : Exam Pool B

A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?


A. The test method has a syntax error in the code


B. The test method relies on existing data in the database


C. The test method use a try/catch block


D. The test method calls an @future method.





B.
  The test method relies on existing data in the database

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 Master-Detail relationship to the Account


C. The Account should have a Lookup relationship to the Invoice


D. The Invoice should have a Lookup relationship to the Account Previous





B.
  The Invoice should have a Master-Detail relationship to the Account

A developer creates an Apex Trigger with the following code block:List customers = new List();For (Order__c o: trigger.new){Account a = [SELECT Id, Is_Customer__c FROM Account WHERE Id = :o.Customer__c];a.Is_Customer__c = true;customers.add(a);}Database.update(customers, false);The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders.How many Orders are successfully loaded when the developer attempts to load the 150 Orders?


A. 0


B. 1


C. 150


D. 100





A.
  0

When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)


A. Match an auto-generated Number field to a column in the imported file.


B. Match an external Id Text field to a column in the imported file.


C. Match the Name field to a column in the imported file.


D. Match the Id field to a column in the imported file.





B.
  Match an external Id Text field to a column in the imported file.

D.
  Match the Id field to a column in the imported file.

A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)


A. ANT Migration Tool


B. Workbench Metadata Retrieval


C. Salesforce UI Apex Test Execution


D. Developer Console





C.
  Salesforce UI Apex Test Execution

D.
  Developer Console

What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?


A. The StandardSetController to support related lists for pagination.


B. The Opportunity StandardController for pre -built functionality.


C. A callback constructor to reference the StandardController.


D. A constructor that initializes a private Opportunity variable.





B.
  The Opportunity StandardController for pre -built functionality.

A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name 'Smith'?


A. A contact initialized to null.


B. An error that no rows are found.


C. An empty List of Contacts.


D. A Contact with empty values





B.
  An error that no rows are found.

What is a characteristic of the Lightning Component Framework? Choose 2 answers:


A. It has an event-driven architecture.


B. It works with existing Visualforce pages.


C. It includes responsive components.


D. It uses XML as its data format.





A.
  It has an event-driven architecture.

C.
  It includes responsive components.

A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records. What would a developer do to accomplish this task? Choose 2 answers


A. Create a roll -up summary field on the Candidate object that counts Interview records.


B. Create a master -detail relationship between the Candidate and Interview objects.


C. Create a lookup relationship between the Candidate and Interview objects.


D. Create a trigger on the Interview object that updates a field on the Candidate object





C.
  Create a lookup relationship between the Candidate and Interview objects.

D.
  Create a trigger on the Interview object that updates a field on the Candidate object

Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)


A. Namespace


B. Time


C. Exception


D. Debug Statement





A.
  Namespace

B.
  Time


Page 14 out of 40 Pages
Previous