[2022] CRT-450 PDF Questions - Perfect Prospect To Go With Actualtests4sure Practice Exam [Q150-Q171]

Share

[2022] CRT-450 PDF Questions - Perfect Prospect To Go With Actualtests4sure Practice Exam

Salesforce CRT-450 Pdf Questions - Outstanding Practice To your Exam

NEW QUESTION 150
A developer is asked to create a PDF quote document formatted using the company's branding guidelines, and automatically save it to the Opportunity record.
Which two ways should a developer create this functionality? (Choose two.)

  • A. Create an email template and use it in Process Builder.
  • B. Install an application from the AppExchange to generate documents.
  • C. Create a visual flow that implements the company's formatting.
  • D. Create a Visualforce page with custom styling.

Answer: B,D

Explanation:
Explanation

 

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

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

Answer: D

 

NEW QUESTION 152
Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers

  • A. $Lightning.use (Missed)
  • B. <apex:slds/>
  • C. <apex:includeLightning/>
  • D. $Lightning.createComponent
  • E. $Lightning.useComponent

Answer: A,C,D

 

NEW QUESTION 153
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?

  • A. The try/catch block will handle exceptions thrown by governor limits.
  • B. The try/catch block will handle any DML exceptions thrown.
  • C. The transaction will succeed and changes will be committed.
  • D. The transaction will fail due to exceeding the governor limit.

Answer: D

 

NEW QUESTION 154
A developer created a lightning component name accountList.cmp that display a list of Accounts. Client-side logic that is executed when a user hovers over an account in the list should be stored in which bundle member?

  • A. AccountListHelper.js
  • B. AccountList.renderer
  • C. AccountList.helper
  • D. AccountListRenderer.js

Answer: B

 

NEW QUESTION 155
How can a custom type be identified as unique when added to a Set?

  • A. Methods in the class must be static
  • B. The class must have a method with the @InvocableMethod annotation
  • C. Methods in the class must be global
  • D. The class must implement the Equals and Hashcode methods

Answer: D

 

NEW QUESTION 156
Universal Containers (UC) decided it will not 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 Eventbus.publish()method and have the external system subscribe to the event using CometD.
  • B. Publish the error event using the addError()method and write a trigger to subscribe to the event and notify the external system.
  • C. Have the external system subscribe to the BatchApexErrorevent, no publishing is necessary.
  • D. Publish the error event using the addError()method and have the external system subscribe to the event using CometD.

Answer: A

 

NEW QUESTION 157
The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted.
What should be used to ensure that a user populates the Lead Source field prior to converting a Lead?

  • A. Validation Rule
  • B. Workflow Rule
  • C. Formula Field
  • D. Process Builder

Answer: A

 

NEW QUESTION 158
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: A

 

NEW QUESTION 159
What is a valid source and destination pair that can send or receive change sets? (Choose 2)

  • A. Developer Edition to Production
  • B. Developer Edition to Sandbox
  • C. Sandbox to Sandbox
  • D. Sandbox to Production

Answer: C,D

 

NEW QUESTION 160
An org has an existing Visual Flow that creates an Opportunity with an Update records element. A developer must update the Visual Flow also created a Contact and store the created Contact's ID on the Opportunity.

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

Answer: D

 

NEW QUESTION 161
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the
<apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type.
The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?

  • A. Create multiple lists in the controller that represent the relevant accounts for each account type when the page loads, then reference the correct one dynamically on the pageBlockTable.
  • B. Add the Rendered={!Acct.type==selection} attribute to the pageBlockTable component
  • C. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
  • D. Create a component for each option and use a variable with hide parameter on the element.

Answer: C

 

NEW QUESTION 162
What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?Choose 2 answers

  • A. The Run Tests page in Salesforce Setup.
  • B. The Apex Test Execution page in Salesforce Setup.
  • C. The REST API and ApexTestRun method
  • D. The Test menu in the Developer Console.

Answer: B,D

 

NEW QUESTION 163
A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?

  • A. The test method relies on existing data in the database
  • B. The test method use a try/catch block
  • C. The test method has a syntax error in the code.
  • D. The test method calls an @future method.

Answer: A

 

NEW QUESTION 164
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.) for (Account theAccount :

  • A. for (List L : AccountList) {...}
  • B. for(AccountList) {...}
  • C. for (Integer i=0; i < AccountList.Size(); i++) {...}
  • D. AccountList) {...}

Answer: C,D

 

NEW QUESTION 165
Which is a valid Apex assignment?

  • A. Float x =5.0;
  • B. Integer x =5.0;
  • C. Integer x=5*1.0;
  • D. Double x =5;

Answer: D

 

NEW QUESTION 166
The Review_c object has a lookup relationship up to the Job_Application_c object. The Job_Application_c object has a master-detail relationship up to the Position_c object. The relationship field names are based on the auto-populated defaults.
What is the recommended way to display field data from the related Position_c record on a Visualforce page for a single Review_c record?

  • A. Use the Standard Controller for Job_Application_c and a Controller Extension to query for Position_c data.
  • B. Use the Standard Controller for Review_c and cross-object Formula Fields on the Position_c object to display Position_c data.
  • C. Use the Standard Controller for Review_c and expression syntax in the Page to display related Position_c data through the Job_Application_c object.
  • D. Use the Standard Controller for Job_Application_c and cross-object Formula Fields on the Review_c object to display Position_c data.

Answer: D

 

NEW QUESTION 167
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which tool should they use to deploy to the sandbox?

  • A. Ant Migration Tool
  • B. VSCode
  • C. Change Sets
  • D. Developer Console

Answer: A

 

NEW QUESTION 168
Given the following code snippet, that is part of a custom controller for a Visualforce page:

In which two ways can the try/catchbe enclosed to enforce object-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access to the object? (Choose two.)

  • A. Use if(thisContact.OwnerId == User.Info.getUserId())
  • B. Use if(Schema.sObjectType.Contact.isUpdateable())
  • C. Use if(Schema.sObjectType.Contact.fields.Is_Active__c.isUpdateable())
  • D. Use if(Schema.sObjectType.Contact.isAccessible())

Answer: B,C

 

NEW QUESTION 169
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. , , Method2,
  • C. GetMyString , , Method2 , getMystring
  • D. GetMyString , , ,

Answer: C

 

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

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

Answer: A,D

 

NEW QUESTION 171
......

Online Questions - Outstanding Practice To your CRT-450 Exam: https://www.actualtests4sure.com/CRT-450-test-questions.html

Practice To CRT-450 - Actualtests4sure Remarkable Practice On your Salesforce Certified Platform Developer I Exam: https://drive.google.com/open?id=1db1g_1lj53vJ0mN0gxmyuq6upch7vsvm