[UPDATED Oct-2023] Best Value Available Preparation Guide for CRT-450 Exam [Q96-Q114]

Share

[UPDATED Oct-2023] Best Value Available Preparation Guide for CRT-450 Exam

1 Full CRT-450 Practice Test and 171 Unique Questions, Get it Now!

NEW QUESTION # 96
Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)

  • A. The @testSetup method is automatically executed before each test method in the test class is executed.
  • B. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.
  • C. Records created in the @testSetup method cannot be updates in individual test methods.
  • D. Test data is inserted once for all test methods in a class.

Answer: A

Explanation:
Explanation


NEW QUESTION # 97
What is a capability of cross-object formula fields? Choose 3 answers

  • A. Formula fields can be used in three roll-up summaries per object.
  • B. Formula fields can expose data the user does not have access to in a record.
  • C. Formula fields can reference fields from objects that are up to 10 relationships away.
  • D. Formula fields can reference fields from master-detail or lookup parent relationships.
  • E. Formula fields can reference fields in a collect of records from a child relationship.

Answer: B,C,D


NEW QUESTION # 98
Which two scenarios require an Apex method to be called imperatively from a Lightning web component?
Choose 2 answer

  • A. Calling a method that is external to the main controller for the Lightning web component
  • B. Calling a method with the click of a button
  • C. Calling a method that makes a web service callout
  • D. Calling a method that is not annotated with cacheable-true

Answer: A,D


NEW QUESTION # 99
What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?

  • A. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.
  • B. Queries select the fewest fields and records possible to avoid exceeding governor limits.
  • C. Apex code is created in a separate environment from schema to reduce deployment errors.
  • D. DML is performed on one record at a time to avoid possible data concurrency issues.

Answer: B


NEW QUESTION # 100
A developer must write anApex method that will be called from a lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletion?

  • A. Schena, sobjectType, Account, isDeletetable ()
  • B. accountRec., isDeletable()
  • C. AccountRec, ObjecType, ieDeletable ()
  • D. Account, isDeletable ()

Answer: A


NEW QUESTION # 101
A method is passed a list of generic sObjects as a parameter.
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

  • A. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
  • B. Use the getSObjectName method on the sObject class to get the sObject name.
  • C. Use the first three characters of the sObject ID to determine the sObject type.
  • D. Use a try-catch construct to cast the sObject into one of the three sObject types.

Answer: A


NEW QUESTION # 102
Which data structure is returned to a developer when performing a SOSL search?

  • A. A map of sObject types to a list oflists of sobjects
  • B. A list of lists of sObjects.
  • C. A list of sObjects.
  • D. A map of sObject types to a list of sObjects

Answer: B


NEW QUESTION # 103
A developer has the controller class below.

Which code block will run successfully in an execute anonymous window?

  • A. myFooController m = new myFooController();System.assert(m.prop ==1);
  • B. myFooController m = new myFooController();System.assert(m.prop !=null);
  • C. myFooController m = new myFooController();System.assert(m.prop ==0);
  • D. myFooController m = new myFooController();System.assert(m.prop ==null);

Answer: D


NEW QUESTION # 104
A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed:

Which type of exception will this trigger cause?

  • A. A compile time exception
  • B. A limit exception when doing a bulk update
  • C. A null reference exception
  • D. A DML exception

Answer: D


NEW QUESTION # 105
A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement?

  • A. Create a required Visualforce component.
  • B. Create a formula field.
  • C. Create a required comments field.
  • D. Create a validation rule.

Answer: D


NEW QUESTION # 106
An org has an existing Flow that creates an Opportunity with an Update Records element. A developer update the Flow to also create a Contact and store the created Contact's ID on the Opportunity.
Which update should the developer make in the Flow?

  • A. Add a new Quick Action element(of type Create).
  • B. Add a new Update Records element.
  • C. Add a new Create Records element.
  • D. Add a new Get Records element.

Answer: C


NEW QUESTION # 107
Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage.
How should a develoiper accomplish this?

  • A. Use a validation rule.
  • B. Mark fields as read-only on the page layout.
  • C. Use the Process Automation setting.
  • D. Use flow Builder

Answer: A


NEW QUESTION # 108
When the number of record in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or
.length() method call?

  • A. Do { } While (Condition)
  • B. For (init_stmt, exit_condition; increment_stmt) { }
  • C. While (Condition) { ... }
  • D. For (variable : list_or_set) { }

Answer: D


NEW QUESTION # 109
Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?

  • A. Developer Log
  • B. Asynchronous Data Capture Events
  • C. Event Monitoring Log
  • D. Calendar Events

Answer: C

Explanation:
Explanation


NEW QUESTION # 110
A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?

  • A. Use a try/catch with a custom exception class.
  • B. Perform the DML using the Database.upsert() method
  • C. Include <apex:messages> on the Visualforce page.
  • D. Add custom controller attributes to display the message.

Answer: C

Explanation:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_message.htm


NEW QUESTION # 111
In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value__c on Campaign.

  • A. The values in Campaignmember.Estimated_value__c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record.
  • B. The values in CampaignMember.Estimated_value__c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency.
  • C. The values In CampaignMember.Estimated_value__c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record.
  • D. The values in CampaignMember.Estimated_value__c are summed up and the resulting Total_estimated_value__c field is displayed as a numeric field on the Campaign record.

Answer: A


NEW QUESTION # 112
Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?

  • A. Create a Schedulable Apex class.
  • B. Define a Data Export scheduled job.
  • C. Use the Data Loader command line.
  • D. Schedule a report.

Answer: B

Explanation:
Scheduling a Data Export job is the best way to back up all the data and attachments in a Salesforce org once a month. The Data Export job can be scheduled to run at a certain frequency so that the data can be backed up on a regular basis. This makes it easy to restore the data in case of any emergency.


NEW QUESTION # 113
A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise
95% coverage of the new Apex extension.Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required."What can the developer do to successfully deploy the new Visualforce page and extension?

  • A. Select "Fast Deployment'' to bypass running all the tests.
  • B. Add test methods to existing test classes from previous deployments.
  • C. Create test classes to exercise the Visualforce page markup.
  • D. Select "Disable Parallel Apex Testing" to run all the tests.

Answer: B


NEW QUESTION # 114
......


Salesforce CRT-450 exam comprises of 60 multiple-choice questions and is timed for 105 minutes. Candidates must score at least 65% to pass the exam and earn the Salesforce Certified Platform Developer I certification. CRT-450 exam is available worldwide in English and Japanese languages, and candidates can take the exam in-person at a testing center or online remotely.

 

Get Instant Access to CRT-450 Practice Exam Questions: https://vce4exams.practicevce.com/Salesforce/CRT-450-practice-exam-dumps.html