Salesforce CRT-450 Study Guide Archives Updated on Apr 20, 2023 [Q30-Q49]

Share

Salesforce CRT-450 Study Guide Archives Updated on Apr 20, 2023

Download CRT-450 Mock Test Study Material


Steps for SALESFORCE CRT-450 Certifications Exam booking

  • Search for SALESFORCE CRT-450 Certifications Exam
  • Visit to SALESFORCE Exam Registration
  • Select Date and Center of examination and confirm with payment value of 200$
  • Signup/Login to SALESFORCE account

 

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

  • A. A callback constructor to reference the StandardController.
  • B. The StandardSetController to support related lists for pagination.
  • C. A constructor that initializes a private Opportunity variable.
  • D. The Opportunity StandardController for pre -built functionality.

Answer: D

 

NEW QUESTION 31
Which two statements are accurate regarding Apex classes and interfaces?
Choose 2 answers

  • A. Classes are final by default.
  • B. Interface methods are public by default.
  • C. Inner classes are public by default.
  • D. A top-level class can only have one inner class level.

Answer: B,D

 

NEW QUESTION 32
A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?

  • A. The test method is calling an @future method.
  • B. The test method does not use System.runAs to execute as a specific user.
  • C. The test method has a syntax error in the code.
  • D. The test method relies on existing data in the sandbox.

Answer: D

 

NEW QUESTION 33
Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers

  • A. Create an Account Roll-up Summary field to count open Opportunities
  • B. Create an Account Trigger to generate an error on Opportunity insert
  • C. Create an Opportunity Workflow Rule to auto-close the Opportunity
  • D. Create an Opportunity Validation Rule to generate an error on insert

Answer: A,D

 

NEW QUESTION 34
A developer wants to override a button using Visualforce on an object.
What is the requirement?

  • A. The object record must be instantiated in a controller or extension.
  • B. The controller or extension must have a PageReference method.
  • C. The action attribute must be set to a controller method.
  • D. The standardController attribute must be set to the object.

Answer: D

Explanation:
Explanation

 

NEW QUESTION 35
A developer creates a custom controller and custom Visualforce page by using the following code block:public class myController {public String myString;public String getMyString() {return
'getmyString';}public String getStringMethod1() {return myString;}public String getStringMethod2() {if (myString == null)myString = 'Method2';return myString;}}{!myString}, {!StringMethod1},
{!StringMethod2}, {!myString}What does the user see
when accessing the custom page?

  • A. , , Method2 , getMyString
  • B. GetMyString , , Method2 , getMystring
  • C. GetMyString , , ,
  • D. , , Method2,

Answer: B

 

NEW QUESTION 36
Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

  • A. Import the static resource and provide a getter for it in JavaScript.
  • B. Import the SVG as a content asset file.
  • C. Reference the getter in the HTML template.
  • D. Reference the import in the HTML template.
  • E. Upload the SVG as a static resource.

Answer: A,C,E

 

NEW QUESTION 37
A developer needs to create records for the object Property__c. The developer creates the following code block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) {
//exception
handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?

  • A. Database.insert(propertiesToCreate);
  • B. Database.insert(propertiesToCreate, false);
  • C. insert propertiesToCreate;
  • D. Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);

Answer: B

 

NEW QUESTION 38
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class?

  • A. Remove the falling test methods from the test class.
  • B. Run the tests using the 'Run All Tests' method.
  • C. Increase the test class coverage on the helper class
  • D. Create a test class and methods to cover the Apex trigger

Answer: A

 

NEW QUESTION 39
Potential home buyers working with a real estate company can make offers on multiple properties that are listed with the real estate company. Offer amounts can be modified; however, the property that has the offer cannot be modified after the offer is placed. What should be done to associate offers with properties in the schema for the organization?

  • A. Create a master-detail relationship in the contact object to both the property and offer custom objects
  • B. Create a lookup relationship in the offer custom object to the property custom object
  • C. Create a lookup relationship in the property custom object to the offer custom object
  • D. Create a master-detail relationship in the offer custom object to the property custom object

Answer: D

 

NEW QUESTION 40
Which two statement can a developer use to throw a custom exception of type MissingFieldValueException?Choose 2 answers

  • A. Throw Exception(new MissingFieldValueException());
  • B. Throw new MissingFieldValueException('Problem occurred');
  • C. Throw new MissingFieldValueException();
  • D. Throw (MissingFieldValueException,'Problem occurred');

Answer: B,C

 

NEW QUESTION 41
How can a developer get all of the available record types for the current user on the Case object?

  • A. Use SOQL to get all Cases.
  • B. Use Case.getRecordTypes().
  • C. Use DescribeFieldResult of the Case.RecordType field.
  • D. Use DescribeSObjectResult of the Case object.

Answer: C

Explanation:
Explanation

 

NEW QUESTION 42
A developer needs to create a Visualforce page that displays Case dat
a. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?

  • A. Use a custom controller that has the with sharing keywords.
  • B. Create one Visualforce Page for use by both profiles.
  • C. Use a new Support Manager permission set.
  • D. Create a separate Visualforce Page for each profile.

Answer: A

 

NEW QUESTION 43
Which statement would a developer use when creating test data for products and pricebooks?

  • A. Pricebook pb = new Pricebook();
  • B. List objList = Test.loadData(Account.sObjectType, 'myResource');
  • C. Id pricebookId = Test.getStandardPricebookId();
  • D. IsTest(SeeAllData = false);

Answer: C

 

NEW QUESTION 44
A developer needs to provide a way to mass edit, update, and delete records from a list view. In which two ways can this be accomplished? Choose 2 answers

  • A. Download a managed package from the AppExchange that provides customizable Enhanced List Views and buttons
  • B. Create a new Visualforce page and Apex Controller for the list view that provides mass edit, update and delete functionality.
  • C. Configure the user interface and enable both inline editing and enhanced lists.
  • D. Download an unmanaged package from the AppExchange that provide customizable mass edit, update, and delete functionality.

Answer: B,D

 

NEW QUESTION 45
An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use.
What is the correct definition of a Lightning Web component property that uses the getAccountsmethod?

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

Answer: C

 

NEW QUESTION 46
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)

  • A. To create components for dashboards and layouts
  • B. To modify the page layout settings for a custom object
  • C. To deploy components between two organizations
  • D. To generate a PDF document with application data

Answer: A,D

 

NEW QUESTION 47
Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?

  • A. Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system.
  • B. Publish the error event using the addError() method and have the external system subscribe to the event using CometD.
  • C. Have the external system subscribe to the BatchApexError event, no publishing is necessary.
  • D. Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD.

Answer: D

 

NEW QUESTION 48
A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

  • A. Create a test class that provides coverage of the custom controller.
  • B. Create a test page that provides coverage of the custom controller.
  • C. Create a test class that provides coverage of the Visualforce page.
  • D. Create a test page that provides coverage of the Visualforce page.

Answer: A

 

NEW QUESTION 49
......

CRT-450 Questions Prepare with Learning Information: https://testking.practicedump.com/CRT-450-exam-questions.html