Salesforce: Question & Answers
Salesforce: Question & Answers
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
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
Correct Answer: A
QUESTION 5
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
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.
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.
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.
QUESTION 14
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.
https://www.genuinedumps.com/CRT-450-exam-questions.html