Salesforce CRT-450 Sample Questions

Question # 11

How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?
A.

 

A. Option A
B. Option B
C. Option C
D. Option D


Question # 12

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name. What is the best solution to assign the case to the appropriate support representative? 

A. Use a trigger an the Case object.
B. Use a formula field on the case object.
C. Use a validation rule on the Case object.
D. Use an Assignment Flow element.


Question # 13

What are two considerations for deploying from a sandbox to production? Choose 2 answers 

A. Should deploy during business hours to ensure feedback can be Quickly addressed
B. All triggers must have at least one line of test coverage.
C. At least 75% of Aptx code must be covered by unit tests.
D. Unit tests must have calls to the System.assert method.


Question # 14

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation. What would be the best solution for this requirement? 

A. Submit a REST API Callojt with a JSON payload and validate the f elds on a third pattysystem
B. Use an Approval Process to enforce tne completion of a valid email address using anoutbound message action.
C. Use a before-save Apex trigger on the Lead object to validate the email address anddisplay an error message If it Is invalid
D. Use a custom Lightning web component to make a callout to validate the fields on athird party system.


Question # 15

A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?

 

A. Option A
B. Option B
C. Option C
D. Option D


Question # 16

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers 

A. Renclerer
B. Style
C. Helper
D. Controller
E. Design


Question # 17

Given the following Apex statement:


What occurs when more than one Account is returned by the SOQL query?

A. The query falls and an error Is written to the debug log.
B. The variable, nvAccount, Is automatically cast to the List data type.
C. The first Account returned Is assigned to myAccour.t.
D. An unhandled exception is thrown and the code terminates.


Question # 18

Which code displays the contents of a Visualforce page as a PDF?

A. <apenipage contentType="pdf">
B. <apex:page contentType=“application/pd£f">
C. <apexipage renderAs="pdf">
D. <apex:page renderAs="application/pdf">


Question # 19

Which code in a Visualforce page and/or controller might present a security vulnerability?

A. <apex:outputfield value="(!ctrl.userinput)" rendered="(!isfditable}" />
B. <apex:outputText escape="false" value="{!sCurrentPage.parameters.userInput}™ />
C. <apex:outputField value="{'ctrl.userInput}" />
D. <apex:outputText value="{!SCurrentPage.parameters.useriInput}" />


Question # 20

In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? Choose 2 answers 

A. Log capturing via the Debug Logs Setup page
B. Built-in standard and custom set controllers
C. Self-contained and reusable units of an application
D. Rich component ecosystem


1234Last ›

Download All Questions PDF Check Customers Feedbacks