Prepare CRT-450 Question Answers - CRT-450 Exam Dumps
Real Salesforce CRT-450 Exam Questions [Updated 2023]
NEW QUESTION # 95
A developer needs to update an unrelated object when a record gets saved.
Which two trigger types should the developer create? (Choose two.)
- A. after insert
- B. before insert
- C. after update
- D. before update
Answer: B,D
NEW QUESTION # 96
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)
- A. Option C
- B. Option B
- C. Option D
- D. Option A
Answer: A
NEW QUESTION # 97
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
- 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 Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
- C. 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.
- 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: A,B
NEW QUESTION # 98
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: public class customCtrlr{ private Account theAccount; public String actType; public customCtrlr() { theAccount = [SELECT Id, Type FROM Account WHERE Id = :apexPages.currentPage().getParameters().get('id')]; actType = theAccount.Type;
} } Visualforce page snippet: The Account Type is {!actType} The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is property referenced on the Visualforce page, what should the developer do to correct the problem?
- A. Add with sharing to the custom controller.
- B. Add a getter method for the actType attribute.
- C. Change theAccount attribute to public.
- D. Convert theAccount.Type to a String.
Answer: B
NEW QUESTION # 99
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
- 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 # 100
How does the Lightning Component framework help developers implement solutions faster?
- A. By providing device-awareness for mobile and desktops
- B. By providing change history and version control
- C. By providing code review standards and processes
- D. By providing an Agile process with default steps
Answer: A
NEW QUESTION # 101
A developer is creating a 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? ns
- A. Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() | |method. ] |
- B. Use the Schema.userlnfo.Opportunity.getDefaultRecordType() method. < Create the opportunity and check the opportunity.recordType before inserting, which will have the record ID of the current Dal user's default record type.
- C. Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types, and iterate through them until [ J isDefaultRecordTypeMapping() is true. Pencil & Paper |
Answer: C
NEW QUESTION # 102
A developer has requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class to run after business hours on an as-needed basis.
Which class definition should be used to successfully implement this requirement?
- A. Global inherited sharing class ProcessAccount Process implements Queueable
- B. Global inherited sharing class ProcessAccountProcessor implements
Database. Batchable<sObject> - C. Gloabal inherited sharing class processAccount Processor implements Database>Bachable<sObject> Schedulable.
- D. Global inherited sharing class ProcessAccountProcess Implements Queueable
Answer: D
NEW QUESTION # 103
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which tool should they use to deploy to the sandbox?
- A. VSCode
- B. Developer Console
- C. Change Sets
- D. Ant Migration Tool
Answer: D
NEW QUESTION # 104
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 with extensions
- C. Use a standard controller
- D. Use a custom controller
- E. Use a standard controller with extensions
Answer: C,D,E
NEW QUESTION # 105
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 <apx:page> tag of the visualforce page to enable this functionality?
- A. Standardcontroller
- B. AcTion
- C. Extensions
- D. Renderas
- E. Readonly
Answer: A,B,C
NEW QUESTION # 106
Which two statements are accurate regarding Apex classes and interfaces?
Choose 2 answers
- A. A top-level class can only have one inner class level.
- B. Classes are final by default.
- C. Interface methods are public by default.
- D. Inner classes are public by default.
Answer: A,C
NEW QUESTION # 107
Which code displays the contents of a Visualforce page as a PDF?
- A. <apex:page renderAs="pdf">
- B. <apex:page contentType="application/pdf">
- C. <apex:page contentType="pdf">
- D. <apex:page rendersAs="application/pdf">
Answer: A
Explanation:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_renderas.htm You can generate a downloadable, printable PDF file of a Visualforce page using the PDF rendering service. Convert a page to PDF by changing the <apex:page> tag.
<apex:page renderAs="pdf">
NEW QUESTION # 108
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION # 109
An Apex method, getAccounts, that returns a List of Accounts given a search Term, is available for Lighting Web components to use. What is the correct definition of a Lighting Web component property that uses the getAccounts method?
- A. @wire(getAccounts, '$searchTerm')
accountList; - B. @wire(getAccounts, {searchTerm: '$searchTerm'})
accountList; - C. @AuraEnabled(getAccounts, '$searchTerm')
accountList; - D. @AuraEnabled(getAccounts, {searchTerm: '$searchTerm'})
accountList;
Answer: B
Explanation:
https://developer.salesforce.com/docs/component-library/documentation/en/48.0/lwc/lwc.data_wire_service_about
NEW QUESTION # 110
Given the code block: Integer x; For(x=0;x<10; x+=2) { If(x==8) break; If(x==10) break; } System.debug(x); Which value will the system debug statement display?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION # 111
A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone NumberA developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email.Which method can the developer use to achieve this?
- A. Schema isReadable() method.
- B. Schema isUpdateable() method.
- C. Schema isCreateable() method.
- D. Schema isAccessible() method.
Answer: D
NEW QUESTION # 112
A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword.
The page will be used of by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private. Which additional set of stops should the developer take?
- A. Create one Profile, one Permission Set, and one Role.
- B. Create one Profile, one Permission Set, and two Roles.
- C. Create one Profile, two Permission Sets, and one Role.
- D. Create two Profiles, one Permission Set, and one Role.
Answer: B
NEW QUESTION # 113
Which type of code represents the Controller in MVC architecture on the Force.com platform? (Choose
2)
- A. Custom Apex and JavaScript coda that is used to manipulate data.
- B. A static resource that contains CSS and images.
- C. JavaScript that is used to make a menu item display itself.
- D. StandardController system methods that are referenced by Visualforce.
Answer: A,D
NEW QUESTION # 114
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
- A. Public void doWork(sObject theRecord)
- B. Public void doWork(Account Contact)
- C. Public void doWork(Record theRecord)
- D. Public void doWork(Account || Contatc)
Answer: A
NEW QUESTION # 115
Given:
- A. for (Integer i=0; I < accountMap.size(); i++) {...}
- B. for (ID accountID : accountMap) {...}
- C. Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]); What are three valid Apex loop structures for iterating through items in the collection? (Choose three.) for (ID accountID : accountMap.keySet()) {...}
- D. for (Account accountRecord : accountMap.values()) {...}
- E. for (Account accountRecord : accountMap.keySet()) {...}
Answer: A,C,D
NEW QUESTION # 116
Why would a developer use Test. startTest( ) and Test.stopTest( )?
- A. To avoid Apex code coverage requirements for the code between these lines
- B. To start and stop anonymous block execution when executing anonymous Apex code
- C. To indicate test code so that it does not Impact Apex line count governor limits.
- D. To create an additional set of governor limits during the execution of a single test class.
Answer: D
NEW QUESTION # 117
A developer wants to invoke on outbound message when a record meets a specific criteria.
Which three features satisfy this use case?
Choose 3 answer
- A. Process builder can be used to check the record criteria and send an outbound messagewithout Apex Code.
- B. Approval Process has the capacity to check the record criteria and send an outbound message without Apex Code
- C. Process builder can be used to check the record criteria and send an outbound message with Apex Code.
- D. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.
- E. workflows can be used to check the record criteria and send an outbound message.
Answer: B,C,E
NEW QUESTION # 118
......
Salesforce CRT-450 certification exam is an excellent opportunity for developers to showcase their skills and knowledge in developing custom applications on the Salesforce platform. Salesforce Certified Platform Developer I certification is recognized globally and is a valuable asset for individuals seeking to advance their careers in the Salesforce ecosystem. With the right preparation and dedication, passing the CRT-450 exam can open up a world of opportunities for Salesforce professionals.
Salesforce CRT-450 exam is designed to test the knowledge and skills of developers in building custom applications using Apex and Visualforce. CRT-450 exam also tests developers on their understanding of the Salesforce data model, security model, and the declarative customization capabilities of the platform. Passing the Salesforce CRT-450 exam is a testament to a developer's ability to build custom applications that meet the needs of their clients.
CRT-450 Exam Dumps Pass with Updated 2023: https://www.actualtestsit.com/Salesforce/CRT-450-exam-prep-dumps.html
Free CRT-450 Exam Dumps to Pass Exam Easily: https://drive.google.com/open?id=1KhcMz_3hkIrQoYUYO9NxapZhHchDbcsA