Exam Questions and Answers for CRT-450 Study Guide Questions and Answers!
Salesforce Certified Platform Developer I Certification Sample Questions and Practice Exam
Salesforce CRT-450 certification exam covers a broad range of topics, including Apex syntax and development, debugging and testing, Visualforce pages and components, security and data access, and so on. CRT-450 exam is designed to assess the developer's ability to design, build, and deploy custom applications that are scalable, maintainable, and secure. CRT-450 exam is administered online and consists of 60 multiple-choice questions to be completed within 105 minutes. Candidates must score at least 65% to pass the exam and earn the certification.
NEW QUESTION # 71
A Platform Developer needs to implement a declarative solution that will display the most recent Closed Won date for all Opportunity records associated with an Account.
Which field is required to achieve this declaratively?
- A. Cross-object formula field on the Account object
- B. Roll-up summary field on the Opportunity object
- C. Roll-up summary field on the Account object
- D. Cross-object formula field on the Opportunity object
Answer: C
NEW QUESTION # 72
Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers.
- A. Throw new MissingFieldValueException();
- B. Throw Exception (new MissingFieldValueException());
- C. Throw new MissingFieldValueException ('Problem occurred');
- D. Throw (MissingFieldValueException, 'Problem occurred');
Answer: A,C
NEW QUESTION # 73
When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)
- A. Match an external Id Text field to a column in the imported file.
- B. Match the Name field to a column in the imported file.
- C. Match an auto-generated Number field to a column in the imported file.
- D. Match the Id field to a column in the imported file.
Answer: A,D
NEW QUESTION # 74
Which two are true regarding a Dyno? Choose 2 answers
- A. Has the ability to sleep as a standard and performance Dyno
- B. Is a light weight VM used to run code on the Heroku Platform
- C. Is a lightweight Linux container used in a collection to run Heroku applications
- D. Has Ephemeral filesystems and is rebooted every 24 hours.
Answer: C,D
NEW QUESTION # 75
A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List<Case> childCases = new List<Case>();for (Case parent : Trigger.new){Case child = new Case (ParentId = parent.Id, Subject = parent.Subject);childCases.add(child);}insert childCases; What happens after the code block executes?
- A. The trigger enters an infinite loop and eventually fails.
- B. The trigger fails if the Subject field on the parent is blank.
- C. Multiple child cases are created for each parent case in Trigger.new.
- D. Child case is created for each parent case in Trigger.new.
Answer: D
NEW QUESTION # 76
A developer is creating a Visualforce page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record. How can the developer find the current user's default record type?
- A. Create the opportunity and check the opportunity.recordType before inserting, which will have the record ID of the current user's default record type
- B. Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method.
- C. Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate trought them until isdefaultRecordTypeMapping() is true.
- D. Use the Schema.userInfo.Opportunity.getDefaultRecordType() method.
Answer: C
NEW QUESTION # 77
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,
- B. GetMyString , , Method2 , getMystring
- C. GetMyString , , ,
- D. , , Method2 , getMyString
Answer: B
NEW QUESTION # 78
A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.
What to do now?
- A. The method must return a String of a serialized JSON Array.
- B. The method must be decorated with (cacheable=true).
- C. The method must return a JSON Object.
- D. The method must be decorated with @AuraEnabled.
Answer: B
NEW QUESTION # 79
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers
- A. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction,
- B. The Apex governor limits are relaxed while calling the costructor of the Apex class.
- C. The apex governor limits are reset for each iteration of the execute() mrthod. (Missed)
- D. The Apex governor limits might be higher due to the asynchronous nature of the transaction. (Missed)
Answer: C,D
NEW QUESTION # 80
Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?
- A. Add a Lookup field on the Account object to the Global Address object.
- B. Add a Master-Detail field on the Account object to the Global Address object
- C. Add a Lookup field on the Global Address object to the Account object
- D. Add a Master-Detail field on the Global Address object to the Account object.
Answer: D
NEW QUESTION # 81
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?
- A. The transaction will succeed and changes will be committed.
- B. The try/catch block will handle any DML exceptions thrown.
- C. The transaction will fail due to exceeding the governor limit.
- D. The try/catch block will handle exceptions thrown by governor limits.
Answer: C
NEW QUESTION # 82
When a Task is created for a Contact, how can a developer prevent the task from being included on the Activity Timeline of the Contact's Account record?
- A. Use Process Builder to create a process to set the Task Account field to blank.
- B. Create a Task trigger to set the Account field to NULL.
- C. In Activity Setting, uncheck Roll up activities to a contact's primary account.
- D. By default, tasks do not display on the Account Activity Timeline.
Answer: C
NEW QUESTION # 83
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? Choose three answers.
- A. Action
- B. StandardController
- C. Controller
- D. Extensions
Answer: A,B,D
NEW QUESTION # 84
Where can the custom roll-up summary fields be created using Standard Object relationships (Choose 3)
- A. On Campaign using Campaign Member records.
- B. On Account using Opportunity records.
- C. On Account using Case records.
- D. On Opportunity using Opportunity Product records.
- E. On Quote using Order records.
Answer: A,B,D
NEW QUESTION # 85
A developer has thecontroller class below.
Which code block will run successfully in an execute anonymous window?
- A. myFooController m = new myFooController();System.assert(m.prop ==1);
- B. myFooController m = new myFooController();System.assert(m.prop !=null);
- C. myFooController m = new myFooController();System.assert(m.prop ==0);
- D. myFooController m = new myFooController();System.assert(m.prop ==null);
Answer: D
NEW QUESTION # 86
In order to override a standard action with a visualforce page, which attribute must be defined in the
<apex:page> tag?
- A. Controller
- B. Pagereference
- C. Override
- D. Standardcontroller
Answer: D
NEW QUESTION # 87
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?
- A. Public class CheckPaymentProcessor extends PaymentProcessor {
public void pay(Decimal amount);
} - B. Public class CheckPaymentProcessor implements PaymentProcessor {
public void pay(Decimal amount) {}
} - C. Public class CheckPaymentProcessor extends PaymentProcessor {
public void pay(Decimal amount) {}
} - D. Public class CheckPaymentProcessor implements PaymentProcessor {
public void pay(Decimal amount);
}
Answer: D
NEW QUESTION # 88
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. Run the tests using the 'Run All Tests' method.
- B. Create a test class and methods to cover the Apex trigger
- C. Remove the falling test methods from the test class.
- D. Increase the test class coverage on the helper class
Answer: C
NEW QUESTION # 89
Which two scenarios require an Apex method to be called imperatively from a Lightning web component?
Choose 2 answer
- A. Calling a method that makes a web service callout
- B. Calling a method that is external to the main controller for the Lightning web component
- C. Calling a method that is not annotated with cacheable-true
- D. Calling a method with the click of a button
Answer: B,C
NEW QUESTION # 90
......
Salesforce CRT-450 certification exam is an essential certification for developers who want to showcase their skills and knowledge in Salesforce development. It is a globally recognized certification that can help developers advance in their careers and increase their earning potential. With proper preparation and study, passing the Salesforce CRT-450 exam can be an achievable goal for anyone with experience in Salesforce development.
CRT-450 certification dumps - Salesforce Developers CRT-450 guides - 100% valid: https://www.preppdf.com/Salesforce/CRT-450-prepaway-exam-dumps.html
100% Pass Your CRT-450 at First Attempt with PrepPDF: https://drive.google.com/open?id=1ZqGgZjqBXDE7_XQ656czO_g7GLRPiWHK