Ultimate Guide to Prepare CRT-450 Certification Exam for Salesforce Developers in 2021 [Q138-Q157]

Share

Ultimate Guide to Prepare CRT-450 Certification Exam for Salesforce Developers in 2021

Use Real CRT-450 Dumps - Salesforce Correct Answers updated on 2021

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

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

Answer: B

 

NEW QUESTION 139
Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers

  • A. Send an outbound message without Apex code.
  • B. Copy an account address to its contacts.
  • C. Create activities at multiple intervals.
  • D. Submit a contract for approval.

Answer: A,B

 

NEW QUESTION 140
Which two practices should be used for processing records in a trigger? (Choose two.)

  • A. Use (callout=true)to update an external system.
  • B. Use a Setto ensure unique values in a query filter.
  • C. Use a Mapto reduce the number of SOQL calls.
  • D. Use @futuremethods to handle DML operations.

Answer: B,C

 

NEW QUESTION 141
Where are two locations a developer can look to find information about the status of asynchronous or future calls? (Choose two.)

  • A. Apex Flex Queue
  • B. Time-Based Workflow Monitor
  • C. Apex Jobs
  • D. Paused Flow Interviews component

Answer: A,C

 

NEW QUESTION 142
A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page.
Which two actions should the developer perform to get the available picklist values and record types in the controller? (Choose two.)

  • A. Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues ().
  • B. Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues ().
  • C. Use Schema.RecordTypeInfo returned by RecordType.SObjectType.getDescribe().getRecordTypeInfos().
  • D. Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribe().getRecordTypeInfos().

Answer: B,D

Explanation:
Explanation

 

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

Answer: C

 

NEW QUESTION 144
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)

  • A. String
  • B. ENUM
  • C. sObject
  • D. External ID

Answer: A,B

 

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

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

Answer: B

 

NEW QUESTION 146
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 lookup relationship to indicate that a person has an employer
  • B. Create a junction object to relate many people to many employers trough lookup relationship
  • 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 master-detail relationship

Answer: A

 

NEW QUESTION 147
A developer needs to confirm that a Contact trigger works correctly without changing the organization's dat a. what should the developer do to test the Contact trigger?

  • A. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
  • B. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.
  • C. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement
  • D. Use the Test menu on the Developer Console to run all test classes for the Contact trigger

Answer: D

 

NEW QUESTION 148
What is the impact of declaring an Apex class using the "without sharing" keywords?

  • A. The class can only be used by users with developer rights.
  • B. Only records owned by the current user can be updated.
  • C. Records created by the class cannot have sharing rules.
  • D. Sharing restrictions for the current user are bypassed.

Answer: D

 

NEW QUESTION 149
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 the Id field to a column in the imported file.
  • C. Match the Name field to a column in the imported file.
  • D. Match an external Id Text field to a column in the imported file.

Answer: B,D

 

NEW QUESTION 150
A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?

  • A. Nothing. The task is automatically displayed on the Account page.
  • B. Nothing. The Task cannot be related to an Account and a Contact.
  • C. Create an Account formula field that displays the Task information.
  • D. Create a Workflow rule to relate the Task to the Contact's Account.

Answer: A

 

NEW QUESTION 151
The sales team at universal container would like to see a visual indicator appear on both account and opportunity page layout to alert salespeople when an account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without having to write custom code?

  • A. Formula field
  • B. Quick action
  • C. Workflow rule
  • D. Roll-up summary field

Answer: A

 

NEW QUESTION 152
What declarative method helps ensure quality data? Choose 3 answers

  • A. Validation rules
  • B. Lookup filters
  • C. Page layouts
  • D. Exception handling
  • E. Workflow alerts

Answer: A,B,C

 

NEW QUESTION 153
A developer writes the following code:

What is the result of the debug statement?

  • A. 1, 150
  • B. 1, 100
  • C. 2, 150
  • D. 2, 200

Answer: C

 

NEW QUESTION 154
A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?

  • A. Assert that a null value is accepted by the method.
  • B. Assert that past dates are accepted by the method.
  • C. Throwing a custom exception in the unit test.
  • D. Assert that future dates are rejected by the method.

Answer: D

 

NEW QUESTION 155
developer created this Apex trigger that calls MyClass .myStaticMethod: trigger myTrigger on Contact(before insert) ( MyClass.myStaticMethod(trigger.new, trigger.oldMap); } The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exist?

  • A. The deployment fails because no assertions were made in the test method.
  • B. The deployment passes because the Apex code has required (>75%) code coverage.
  • C. The deployment passes because both classes and the trigger were included in the deployment.
  • D. The deployment fails because the Apex trigger has no code coverage.

Answer: D

 

NEW QUESTION 156
Universal Containers requires Service Representatives to update all Cases at least one every three days.
To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?

  • A. Formula field
  • B. Scheduled Apex Class
  • C. Workflow rule
  • D. Process Builder

Answer: A

 

NEW QUESTION 157
......

Salesforce Developers -CRT-450 Exam-Practice-Dumps: https://www.pass4training.com/CRT-450-pass-exam-training.html

CRT-450 Premium Files Test pdf - Free Dumps Collection: https://drive.google.com/open?id=1AtCoxSTIveUx2d3TlV3ekknY232t4nPY