Salesforce Developers CRT-450 Dumps | Updated Oct 01, 2021 - DumpsValid
Master 2021 Latest The Questions Salesforce Developers and Pass CRT-450 Real Exam!
NEW QUESTION 51
A developer has the controller class below.
Which code block will run successfully in an execute anonymous window?
- A. myFooController m = new myFooController();System.assert(m.prop ==null);
- B. myFooController m = new myFooController();System.assert(m.prop ==1);
- C. myFooController m = new myFooController();System.assert(m.prop ==0);
- D. myFooController m = new myFooController();System.assert(m.prop !=null);
Answer: A
NEW QUESTION 52
Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers
- A. Send an outbound message without Apex code.
- B. Copy an account address to its contacts.
- C. Create activities at multiple intervals.
- D. Submit a contract for approval.
Answer: A,B
NEW QUESTION 53
What is a benefit of the Lightning Component framework?Choose 3 answers
- A. It uses an MVC architectural design pattern.
- B. It uses server-side JavaScript controller for logic.
- C. It uses an event-driven architecture
- D. It uses client-side Apex controllers for logic.
- E. It uses a traditional publish-subscribe model.
Answer: A,C,E
NEW QUESTION 54
A developer is debugging the following code to determine why Accounts are not being created.
Account a = new Account(Name = 'A');
Database.insert(a, false);
How should the code be altered to help debug the issue?
- A. Collect the insert method return value in a SaveResult record.
- B. Add a try/catch around the insert method.
- C. Add a System.debug() statement before the insert method.
- D. Set the second insert method parameter to TRUE.
Answer: A
NEW QUESTION 55
What can a Lightning Component contain in its resource bundle? Choose 2 answer
- A. Custom client side rendering behavior.
- B. Properties files with global settings
- C. CSS styles scoped to the component
- D. Build scripts for minification
Answer: A,C
NEW QUESTION 56
A developer is asked to create a custom visualforce page that will be used as a dashboard component.
Which three are valid controller options for this page? Choose 3 answers
- A. Do not specify a controller
- B. Use a custom controller
- C. Use a custom controller with extensions
- D. Use a standard controller
- E. Use a standard controller with extensions
Answer: B,D,E
NEW QUESTION 57
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
- A. Developer Console REST tab
- B. REST resource path URL
- C. Force.com IDE REST Explorer tab
- D. Workbench REST Explorer
Answer: D
NEW QUESTION 58
Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on a user-initiated action on the Opportunity detail page. Example values are as follows:
* Name
* Amount
* Account
Which two methods should the developer implement to fulfill the business requirement? (Choose two.)
- A. Create an after update trigger on the Opportunity object that calls a helper method using @Future (Callout=true)to perform the HTTP REST callout.
- B. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
- C. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
- D. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
Answer: B,C
NEW QUESTION 59
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
- A. Accountld
- B. Name
- C. FirstName
- D. LastName
Answer: D
NEW QUESTION 60
Which type of code represents the view in the MVC architecture on the Force.com platform?
- A. A visualforce page that dysplays information about case records by iterating over a list of cases
- B. An apex method that executes SOQL to retrieve a list of cases
- C. Validation rules for a page layout that includes a related list of cases
- D. An apex method in an extension that returns a list of cases
Answer: A
NEW QUESTION 61
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?
- A. Account0.Phone=333-8781, Account1.Phone=333-8780
- B. Account0.Phone=333-8780, Account1.Phone=333-8781
- C. Account0.Phone=888-1515, Account1.Phone=999-1515
- D. Account0.Phone=888-1515, Account1.Phone=999-2525
Answer: B
NEW QUESTION 62
A developer must create a CreditCardPaymentclass that provides an implementation of an existing Paymentclass.
Which is the correct implementation?
- A.

- B.

- C.

- D.

Answer: B
NEW QUESTION 63
A developer writes the following code:
What is the result of the debug statement?
- A. 1, 150
- B. 1, 100
- C. 2, 150
- D. 2, 200
Answer: C
NEW QUESTION 64
What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)
- A. Loading externally hosted scripts.
- B. Specifying loading order.
- C. One-time loading for duplicate scripts.
- D. Loading files from Documents.
- E. Loading scripts in parallel.
Answer: B,C,E
NEW QUESTION 65
Which three data types can be returned from an SOQL statement?
- A. String
- B. Integer
- C. List of objects
- D. Single object
- E. Boolean
Answer: B,C,D
NEW QUESTION 66
A developer must write an Apex method that will be called from a Lightning component. The method may delete an account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can succesfully perform deletions?
- A. Schema.sObjectType.Account.isDeletable()
- B. AccountRec.isdeletable()
- C. Account.isDelketable()
- D. AccountRec.sObjectType.isDeleteable()
Answer: A
NEW QUESTION 67
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 Test menu in the Developer Console.
- B. The Run Tests page in Salesforce Setup.
- C. The REST API and ApexTestRun method
- D. The Apex Test Execution page in Salesforce Setup.
Answer: A,D
NEW QUESTION 68
How should a developer prevent a recursive trigger?
- A. Use a private Boolean variable.
- B. Use a "one trigger per object" pattern.
- C. Use a trigger handler.
- D. Use a static Boolean variable.
Answer: A
NEW QUESTION 69
Which data structure is returned to a developer when performing a SOSL search?
- A. A map of sObject types to a list of sObjects
- B. A list of lists of sObjects.
- C. A map of sObject types to a list oflists of sobjects
- D. A list of sObjects.
Answer: B
NEW QUESTION 70
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 a component for each option and use a variable with hide parameter on the element.
- B. 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.
- C. Add the Rendered={!Acct.type==selection} attribute to the pageBlockTable component
- D. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
Answer: D
NEW QUESTION 71
For which example task should a developer use a trigger rather than a workflow rule?
- A. To notify an external system that a record has been modified
- B. To set the Name field of an expense report record to Expense and the Date when it is saved
- C. To set the primary Contact on an Account record when it is saved
- D. To send an email to a hiring manager when a candidate accepts a job offer
Answer: C
NEW QUESTION 72
In Lightning component framework, which resource can be used to fire events? Choose 2 answers.
- A. Javascript controller actions
- B. Visualforce controller actions
- C. Third-party web service code
- D. Third-party Javascript code
Answer: A,D
NEW QUESTION 73
custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?
- A. Mark the field as Required on the object's page layout.
- B. Mark the field as Required on the field definition.
- C. Set a validation rule to enforce a value is selected.
- D. Set "Use the first value in the list as the default value" as True.
Answer: B
NEW QUESTION 74
Which feature allows a developer to create test records for use in test classes?
- A. Documents
- B. Static resources
- C. Webservicetests
- D. Httpcalloutmocks
Answer: C
NEW QUESTION 75
......
A fully updated 2021 CRT-450 Exam Dumps exam guide from training expert DumpsValid: https://www.dumpsvalid.com/CRT-450-still-valid-exam.html
Practice To CRT-450 - DumpsValid Remarkable Practice On your Salesforce Certified Platform Developer I Exam: https://drive.google.com/open?id=1aio54LJAnS8Y4DJ8GI9CJCa_qvBlUaTh