0% found this document useful (0 votes)
240 views7 pages

Salesforce: Question & Answers

The document contains 15 multiple choice questions from the Salesforce Certified Platform Developer I certification exam. The questions cover topics such as implementing Apex classes and triggers, building Lightning components, handling events, enforcing data quality with validation rules, and best practices for testing and governor limits.

Uploaded by

Saba Javad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
240 views7 pages

Salesforce: Question & Answers

The document contains 15 multiple choice questions from the Salesforce Certified Platform Developer I certification exam. The questions cover topics such as implementing Apex classes and triggers, building Lightning components, handling events, enforcing data quality with validation rules, and best practices for testing and governor limits.

Uploaded by

Saba Javad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Salesforce

CRT-450
Salesforce Certified Platform Developer I (SU21)
QUESTION & ANSWERS

https://www.genuinedumps.com/CRT-450-exam-questions.html
QUESTION 1

A developer needs to implement a custom SOAP Web Service that is used by an external Web
Application. The developer chooses to Include helper methods that are not used by the Web
Application In the Implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?

A.

B.

C.

D.

Correct Answer: C

QUESTION 2

What can be developed using the Lightning Component framework?


A. Hosted web applications
B. Single-page web apps
C. Dynamic web sites
D. Salesforce integrations

Correct Answer: B

https://www.genuinedumps.com/CRT-450-exam-questions.html
QUESTION 3

How should a developer write unit tests for a private method in an Apex class?
A. Use the SeeAllData annotation.
B. Add a test method in the Apex class.
C. Use the TestVisible annotation.
D. Mark the Apex class as global.

Correct Answer: C

QUESTION 4

A developer has a requirement to create an Order When an Opportunity reaches a 'Closed-Won'


status.
Which tool should be used to implement this requirement?
A. Process Builder
B. Lightning Component
C. Lightning
D. Apex trigger

Correct Answer: A

QUESTION 5

developer created this Apex trigger that calls MyClass .myStaticMethod:


trigger myTrigger on Contact(before insert) ( MyClass.myStaticMethod(trigger.new, trigger.oldMap); }
The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in
81% overall code coverage. What happens when the developer tries to deploy the trigger and two
classes to production, assuming no other code exist?
A. The deployment fails because the Apex trigger has no code coverage.
B. The deployment fails because no assertions were made in the test method.
C. The deployment passes because the Apex code has required (>75%) code coverage.
D. The deployment passes because both classes and the trigger were included in the deployment.

Correct Answer: A

https://www.genuinedumps.com/CRT-450-exam-questions.html
QUESTION 6

A developer must provide a custom user interface when users edit a Contact. Users must be able to
use the interface in Salesforce Classic and Lightning Experience.
What should the developer do to provide the custom user interface?
A. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a
Lightningcomponent in Lightning Experience.
B. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning
page inLightning Experience.
C. Override the Contact's Edit button with a Lightning component in Salesforce Classic and a
Lightningcomponent in Lightning Experience.
D. Override the Contact's Edit button with a Lightning page in Salesforce Classic and a Visualforce
page in Lightning Experience.

Correct Answer: A

QUESTION 7

which statement is true regarding execution order when triggers are associated to the same object
and event?
A. Trigger execution order cannot be guaranteed.
B. executed In the order they are modified.
C. Triggers are executed alphabetically by trigger name.
D. Triggers are executed in the order they are created.

Correct Answer: A

QUESTION 8

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. Process Builder
B. Validation Rule
C. Formula Field
D. workflow Rule

https://www.genuinedumps.com/CRT-450-exam-questions.html
Correct Answer: B

QUESTION 9

What does the Lightning Component framework provide to developers?


A. Extended governor limits for applications
B. Prebuilt component that can be reused.
C. Templates to create custom components.
D. Support for Classic and Lightning UIS.

Correct Answer: B

QUESTION 10

What are three techniques that a developer can use to invoke an anonymous block of code? (Choose
three.)
A. Use the SOAP API to make a call to execute anonymous code.
B. Create a Visualforce page that uses a controller class that is declared without sharing.
C. Run code using the Anonymous Apex feature of the Developer's IDE.
D. Type code into the Developer Console and execute it directly.
E. Create and execute a test method that does not specify a runAs() call.

Correct Answer: A,C,D

QUESTION 11

A developer needs an Apex method that can process Account or Contact records. Which method
signature should the developer use?
A. Public void doWork(Record theRecord)
B. Public void doWork(sObject theRecord)
C. Public void doWork(Account Contact)
D. Public void doWork(Account || Contatc)

Correct Answer: B

https://www.genuinedumps.com/CRT-450-exam-questions.html
QUESTION 12

A developer has to identify a method in en Apex class that performs resource intensive actions in
memory by iterating over the result set of a SOQL statement on the account. The method also
performs a SOQL statement to save the changes to the database.
Which two techniques should the developer implement as a best practice to ensure transaction
control and avoid exceeding governor limits?
Choose 2 answers
A. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.
B. Use Partial DHL statements to ensure only valid data is committed.
C. Use the Database.Savepoint method to enforce database Integrity.
D. Use the System.Limit class to monitor the current CPU governor limit consumption.

Correct Answer: C,D

QUESTION 13

A developer is implementing an Apex class for a financial system. Within the class, the
variables 'creditAmount' and 'debtAmount' should not be able to change once a value is
assigned. In which two ways can the developer declare the variables to ensure their value
can only be assigned one time? Choose 2 answers
A. Use the static keyword and assign its value in the class constructor.
B. Use the final keyword and assign its value in the class constructor.
C. Use the static keyword and assign its value in a static initializer.
D. Use the final keyword and assign its value when declaring the variable.

Correct Answer: B,D

QUESTION 14

Which two characteristics are true for Aura component events?


A. Calling event, stopPropagation ( ) may or may not stop the event propagation based of the current
propagation phase.
B. If a container component needs to handle a component event, add a handleFacets='' attribute to
Its handler.
C. Only parent components that create subcomponents (either in their markup or programmatically)
can handle events.
D. The event propagates to every owner In the containment hierarchy.

https://www.genuinedumps.com/CRT-450-exam-questions.html
Correct Answer: A,D

QUESTION 15

Which two are best practices when it comes to component and application event handling? (Choose
two.)
A. Reuse the event logic in a component bundle, by putting the logic in the helper.
B. Use component events to communicate actions that should be handled at the application level.
C. Handle low-level events in the event handler and re-fire them as higher-level events.
D. Try to use application events as opposed to component events.

Correct Answer: A,C

https://www.genuinedumps.com/CRT-450-exam-questions.html

You might also like