This page was exported from IT Certification Exam Braindumps [ http://blog.braindumpsit.com ] Export date:Sun Oct 6 16:16:26 2024 / +0000 GMT ___________________________________________________ Title: CRT-450 Exam Dumps, CRT-450 Practice Test Questions [Q142-Q158] --------------------------------------------------- CRT-450 Exam Dumps, CRT-450 Practice Test Questions PDF (New 2022) Actual Salesforce CRT-450 Exam Questions Overview about SALESFORCE CRT-450 Exam Format: Multiple choice, multiple answerRegistration Fee: 200 USDPassing Score: 65%Length of Examination: 110 minutes Salesforce CRT-450 Exam Syllabus Topics: TopicDetailsTopic 1Working With Visualforce Controllers Working With The Lightning Component Framework TestingTopic 2Working With Apex Triggers Describing The Save Order Of Execution User Interface Working With Visualforce PagesTopic 3Salesforce Fundamentals Database Modeling And Management Modeling Data, Managing DataTopic 4Logic And Process Automation Working With Formulas And Rollup Summary Fields Debug And Deployment ToolsTopic 5Working With Basic Constructs In Apex Working With SOQL, Working With SOSL, Working With DMLTopic 6Describing The Testing Framework And Requirements Creating Test Data And Tests Executing A Test Testing ConsiderationsTopic 7Introduction To AW Computing Introduction To The Platform Developer 1 Certification   Q142. 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 null reference exception  A compile time exception  A DML exception  A limit exception when doing a bulk update Q143. Using DescribeSObjectResult, which Apex method can a developer use to determine if the current user can edit records for an object?  canUpdate()  canEdit()  isUpdateable()  isEditable() Q144. How should a developer create a new custom exception class?  public class CustomException extends Exception{}  CustomException ex = new (CustomException)Exception();  public class CustomException implements Exception{}  (Exception)CustomException ex = new Exception(); Q145. A developer is creating an enhancement to an application that will allow people to be related to their employer.Which data model provides the simplest solution to meet the requirements?  Create a lookup realtionship to indicate that a person has an employer  Create a master-detail relationship to indicate that a person has an employer  Create a junction object to relate many people to many through master-detail relationship  Create a junction object to relate many people to many through lookup relationship Q146. A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles.Which two tools can they use to run a script that deploys to a sandbox?Choose 2 answers  Ant Migration Tool  SFDX CLI  Change Sets  Developer Console Q147. An Account trigger updates all related Contacts and Cases each time an Account is saved using the following two DML statements:update allContacts; update allCases;What is the result if the Case update exceeds the governor limit for maximum number of DML records?  The Account save succeeds, Contacts are updated, but Cases are not.  The Account save fails and no Contacts or Cases are updated  The Account save is retried using a smaller trigger batch size.  The Account save succeeds and no Contacts or Cases are updated Q148. The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is ‘Technology’ while also retrieving the contact’s Job_Application__c records.Based on the object’s relationships, what is the most efficient statement to retrieve the list of contacts?  [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHEREAccount.Industry = ‘Technology’];  [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHEREAccounts.Industry = ‘Technology’];  [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHEREAccounts.Industry = ‘Technology’];  [SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHEREAccount.Industry = ‘Technology’]; Q149. Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers.  Throw Exception (new MissingFieldValueException());  Throw (MissingFieldValueException, ‘Problem occurred’);  Throw new MissingFieldValueException();  Throw new MissingFieldValueException (‘Problem occurred’); Q150. custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: ‘Vegan’,’Kosher’,’No Preference’. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?  Set “Use the first value in the list as the default value” as True.  Set a validation rule to enforce a value is selected.  Mark the field as Required on the field definition.  Mark the field as Required on the object’s page layout. Q151. Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?  Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.  Rewrite all Visualforce pages asLightning components.  Set the attribute enableLightning to treu in the definition.  Enable Available for Lightning Experience, Lightning Comminities, and the mobile app on Visualforce pages used by the custom application. Q152. Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to ”;Waiting on customer” The …. Administrator wants to ensure the solution used is bulk safe.Which two automation tools should a developer recommend to meet these business requirements?Choose 2 answers  Scheduled Flow  Einstein Next Best Action  Record_Triggered Flow  Process Builder Q153. A developer creates a custom exception as shown below:What are two ways the developer can fire the exception in Apex? Choose 2 answers  Throw new ParityException (parity does not match);  New ParityException( );  New ParityException (parity does not match);  Throw new parityException ( ); Q154. A Platform Developer needs to implement a declarative solution that will display the most recent Closed Won date for all Opportunity records associated with an Account.Which field is required to achieve this declaratively?  Roll-up summary field on the Opportunity object  Cross-object formula field on the Opportunity object  Roll-up summary field on the Account object  Cross-object formula field on the Account object Q155. Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers  By using an object standard set controller action  By using ApexPages.currentPage()  By using the PageReference.getURL() method  By using an object standard controller action Q156. What is the proper process for an Apex Unit Test  Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.  Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.  Create data for testing. Execute runAllTests(). Verify that the results are correct.  Create data for testing. Call the method being tested. Verify that the results are correct. Q157. Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? Choose 2 answers  String qryName = % +String.enforceSecurityChecks(name)+ % ;String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;List queryResults = Database.query(qryString);  String qryName = % + name % ;String qryString = SELECT Id FROM Contact WHERE Name LIKE:qryNAme ;List queryResults = Database.query(qryString);  String qryName = % + String.escapeSingleQuotes(name)+ % ;String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;List queryResults = Database.query(qryString);  String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString); Q158. A developer has the controller class below.Which code block will run successfully in an execute anonymous window?  myFooController m = new myFooController();System.assert(m.prop !=null);  myFooController m = new myFooController();System.assert(m.prop ==0);  myFooController m = new myFooController();System.assert(m.prop ==null);  myFooController m = new myFooController();System.assert(m.prop ==1);  Loading … Updated Dec-2022 Pass CRT-450 Exam - Real Practice Test Questions: https://www.braindumpsit.com/CRT-450_real-exam.html --------------------------------------------------- Images: https://blog.braindumpsit.com/wp-content/plugins/watu/loading.gif https://blog.braindumpsit.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-12-07 11:11:04 Post date GMT: 2022-12-07 11:11:04 Post modified date: 2022-12-07 11:11:04 Post modified date GMT: 2022-12-07 11:11:04