Get Prepared for Your CRT-450 Exam With Actual 150 Questions [Q72-Q95]

Share

Get Prepared for Your CRT-450 Exam With Actual 150 Questions

Valid CRT-450 Test Answers Full-length Practice Certification Exams

NEW QUESTION 72
A developer must create a DrawListclass that provides capabilities defined in the Sortableand Drawable interfaces.

Which is the correct implementation?

  • A.
  • B.
  • C.
  • D.

Answer: A

Explanation:
Explanation/Reference:

 

NEW QUESTION 73
A developer is creating an enhancement to an application that will allow people to be related to their employer. Which date model should be used to track the data?

  • A. Create a junction object to relate many people to many employers trough master-detail relationship
  • B. Create a lookup relationship to indicate that a person has an employer
  • C. Create a master detail relationship to indicate that a person has an employer
  • D. Create a junction object to relate many people to many employers trough lookup relationship

Answer: B

 

NEW QUESTION 74
How many levels of child records can be returned in a single SOQL query from one parent object?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

NEW QUESTION 75
A developer wants to invoke an outbound message when a record meets a specific criteria.
Which three features satisfy this use case? (Choose three.)

  • A. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.
  • B. Process builder can be used to check the record criteria and send an outbound message without Apex Code.
  • C. Process builder can be used to check the record criteria and send an outbound message with Apex Code.
  • D. Workflows can be used to check the record criteria and send an outbound message.
  • E. Approval Process has the capability to check the record criteria and send an outbound message without Apex Code.

Answer: A,D,E

Explanation:
Explanation/Reference:

 

NEW QUESTION 76
A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?

  • A. Before delete
  • B. After undelete
  • C. After delete
  • D. Before undelete

Answer: B

 

NEW QUESTION 77
On which object can an administrator create a roll-up summary field?

  • A. Any object that is on the child side of a lookup relationship.
  • B. Any object that is on the master side of a master-detail relationship.
  • C. Any object that is on the parent side of a lookup relationship.
  • D. Any object that is on the detail side of a master-detail relationship.

Answer: B

 

NEW QUESTION 78
A developer uses an 'after update' trigger on the Account object to update all the Contacts related to the Account. The trigger code shown below is randomly failing.
List<Contacts> theContacts = new List<Contacts>(); for(Account a : Trigger.new){ for(Contact c : [SELECT Id, Account_Date__c FROM Contact WHERE AccountId = :a.Id]){ c.Account_Date__c = Date.today(); theContacts.add(c);
}
} updates theContacts;
Which line of code is causing the code block to fail?

  • A. The trigger processes more than 200 records in the for loop.
  • B. An exception is thrown if theContacts is empty
  • C. An exception is thrown if Account_Date__c is null.
  • D. A SOQL query is located inside of the for loop.

Answer: D

 

NEW QUESTION 79
How can a developer warn users of SOQL governor limit violations in a trigger?

  • A. Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.
  • B. Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.
  • C. Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.
  • D. Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.

Answer: B

 

NEW QUESTION 80
A developer must create an Apex class, ContactController, that a Lightning component can use to search for Contact records. Users of the Lightning component should only be able to search for Contact records to which they have access.
Which two will restrict the records correctly? (Choose two.)

  • A. public class ContactController
  • B. public with sharing class ContactController
  • C. public without sharing class ContactController
  • D. public inherited sharing class ContactController

Answer: B,D

 

NEW QUESTION 81
Which component is available to deploy using Metadata API? Choose 2 answers

  • A. Account Layout
  • B. Case Layout
  • C. Case Feed Layout
  • D. ConsoleLayout

Answer: A,B

 

NEW QUESTION 82
Which three data types can a SOQL query return? Choose 3 answers

  • A. sObject
  • B. Integer
  • C. Long
  • D. List

Answer: A,B,D

 

NEW QUESTION 83
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?

  • A. Public class CheckPaymentProcessor extends PaymentProcessor {
    public void pay(Decimal amount) {}
    }
  • B. Public class CheckPaymentProcessor implements PaymentProcessor {
    public void pay(Decimal amount);
    }
  • C. Public class CheckPaymentProcessor extends PaymentProcessor {
    public void pay(Decimal amount);
    }
  • D. Public class CheckPaymentProcessor implements PaymentProcessor {
    public void pay(Decimal amount) {}
    }

Answer: B

 

NEW QUESTION 84
The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record.
What would a
developer do to meet this requirement?

  • A. Create a Workflow rule on the Opportunity object that updates a field on the parent Account.
  • B. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field.
  • C. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities.
  • D. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field.

Answer: B

 

NEW QUESTION 85
When would a developer use a custom controller instead of a controller extension? Choose 2 answers:

  • A. When a Visualforce page does not reference a single primary object.
  • B. When a Visualforce page should not enforce permissions or field-level security.
  • C. When a Visualforce page needs to add new actions to a standard controller.
  • D. When a Visualforce page needs to replace the functionality of a standard controller.

Answer: A,B

 

NEW QUESTION 86
A developer creates a custom exception as shown below:
What are two ways the developer can fire the exception in Apex? Choose 2 answers

  • A. Throw new parityException ( );
  • B. New ParityException (parity does not match);
  • C. New ParityException( );
  • D. Throw new ParityException (parity does not match);

Answer: A,D

 

NEW QUESTION 87
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.
What is the correct implementation of the ShippingCalculator class?

  • A. Option C
  • B. Option D
  • C. Option A
  • D. Option B

Answer: D

 

NEW QUESTION 88
Which scenario is invalid for execution by unit tests?

  • A. Executing methods as different users.
  • B. Loading the standard Pricebook ID using a system method
  • C. Executing methods for negative test scenarios
  • D. Loading test data in place of user input for Flows.

Answer: D

 

NEW QUESTION 89
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 250; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;}catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount'); How many accounts are in the org after this code is run?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

NEW QUESTION 90
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

NEW QUESTION 91
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

  • A. Account0.Phone=333-8780, Account1.Phone=333-8781
  • B. Account0.Phone=888-1515, Account1.Phone=999-2525
  • C. Account0.Phone=888-1515, Account1.Phone=999-1515
  • D. Account0.Phone=333-8781, Account1.Phone=333-8780

Answer: A

 

NEW QUESTION 92
What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components?
Choose 3 answers

  • A. Loading scripts In parallel
  • B. Loading externally hosted scripts
  • C. Specifying loading order
  • D. Loading files from Documents
  • E. One-time loading for duplicate scripts

Answer: A,C,E

 

NEW QUESTION 93
A developer has the following requirements:
* Calculate the total amount on an Order.
* Calculate the line amount for each Line Item based on quantity selected and price.
* Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements?

  • A. Line Item has a Lookup field to Order and there can be many Line Items per Order.
  • B. Line Item has a Master-Detail field to Order and the Master can be re-parented.
  • C. Order has a Master-Detail field to Line Item and there can be many Line Items per Order.
  • D. Order has a Lookup field to Line Item and there can be many Line Items per Order.

Answer: B

 

NEW QUESTION 94
A developer uses a before insert trigger on the Lead object to fetch the Territory__c object, where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block: Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List<Territory__c> terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode];Line-04: if(terrList.size() > 0) Line-05:
l.Territory__c = terrList[0].Id; Line-06: }Line-07: }Which line of code is causing the code block to fail?

  • A. Line-01: Trigger:new is not valid in a before insert Trigger.
  • B. Line-02: A NullPointer exception is thrown if PostalCode is null.
  • C. Line-05: The Lead in a before insert trigger cannot be updated.
  • D. Line-03: A SOQL query is located inside of the for loop code.

Answer: D

 

NEW QUESTION 95
......

Accurate & Verified 2023 New CRT-450 Answers As Experienced in the Actual Test!: https://www.itexamdownload.com/CRT-450-valid-questions.html

CRT-450 Certification Sample Questions certification Exam: https://drive.google.com/open?id=1Cd954HyRNnzsJCf2i5y38FmtRWBzVKpk