Salesforce CRT 450 Exam Page 4(Dumps)
Question No:-31
|
A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.
Which three attributes need to be defined with values in the tag to accomplish this? (Choose three.)
1. action
2. renderAs
3. standardController
4. readOnly
5. extensions
Answer:-(1),(2) and (3)
Most of the people choose (1),(3) and (5) as there answer
|
|
Question No:-32
|
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?
1. The API name is not changed and there are no other impacts.
2. The API name of the field and the reference in the test class is changed.
3. The API name of the field is changed, and a warning is issued to update the class.
4. The API name of the field and the reference in the test class is updated.
Answer:-3. The API name of the field is changed, and a warning is issued to update the class.
Most of the people choose (1) as there answer
|
|
Question No:-33
|
When is an Apex Trigger required instead of a Process Builder Process?
1. When a record needs to be created
2. When multiple records related to the triggering record need to be updated
3. When a post to Chatter needs to be created
4. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
System.assert(m.prop ==1);
Answer:-4. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
|
|
Question No:-34
|
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the
Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
1. Create and populate a custom field on the parent object marked as Unique.
2. Create a custom field on the child object of type External Relationship.
3. Create and populate a custom field on the parent object marked as an External ID.
4. Create a custom field on the child object of type Foreign Key.
Answer:-4. Create a custom field on the child object of type Foreign Key.
Most of the people choose (3) as there answer
|
|
Question No:-35
|
A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes.
How should the developer design the Apex classes?
1. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
2. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
3. Have each class implement an interface that defines method getTextSummary() that returns the summary.
4. Have each class define method getTextSummary() that returns the summary.
Answer:-3. Have each class implement an interface that defines method getTextSummary() that returns the summary.
|
|
Question No:-36
|
Which approach should a developer use to add pagination to a Visualforce page?
1. A StandardController
2. The Action attribute for a page
3. The extensions attribute for a page
4. A StandardSetController
Answer:-4. A StandardSetController
|
|
Question No:-37
|
A developer is asked to create a PDF quote document formatted using the company's branding guidelines, and automatically save it to the Opportunity record.
Which two ways should a developer create this functionality? (Choose two.)
1. Install an application from the AppExchange to generate documents.
2. Create a Visualforce page with custom styling.
3. Create an email template and use it in Process Builder.
4. Create a visual flow that implements the company's formatting.
|
Question No:-38
|
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
1. REST resource path URL
2. Workbench REST Explorer
3. Developer Console REST tab
4. Force.com IDE REST Explorer tab
Answer:-2. Workbench REST Explorer
|
|
Question No:-39
|
A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?
1. Create a test class that provides coverage of the Visualforce page.
2. Create a test page that provides coverage of the Visualforce page.
3. Create a test page that provides coverage of the custom controller.
4. Create a test class that provides coverage of the custom controller.
Answer:-4. Create a test class that provides coverage of the custom controller.
|
|
Question No:-40
|
What is a benefit of using an after insert trigger over using a before insert trigger?
1. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
2. An after insert trigger allows a developer to insert other objects that reference the new record.
3. An after insert trigger allows a developer to make a callout to an external service.
4. An after insert trigger allows a developer to modify fields in the new record without a query.
Answer:-2. accounts[0].contacts is an empty Apex.
|
|
|