Salesforce CRT 450 Exam Page 1 (Dumps)
Question No:-1
|
Which statement results in an Apex compiler error?
1. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
2. Date d1 = Date.Today(), d2 = Date.ValueOf('2018-01-01');
3. Integer a=5, b=6, c, d = 7;
4. List<string> s = List<string>{'a','b','c');
Answer:-4. List<string> s = List<string>{'a','b','c');
|
|
Question No:-2
|
What are two benefits of the Lightning Component framework? (Choose two.)
1. It simplifies complexity when building pages, but not applications.
2. It provides an event-driven architecture for better decoupling between components.
3. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.
4. It allows faster PDF generation with Lightning components.
|
Question No:-3
|
A method is passed a list of generic sObjects as a parameter.
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?
1. Use the first three characters of the sObject ID to determine the sObject type.
2. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
3. Use the getSObjectName method on the sObject class to get the sObject name.
4. Use a try-catch construct to cast the sObject into one of the three sObject types.
Answer:-2. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
|
|
Question No:-4
|
What should a developer use to implement an automatic Approval Process submission for Cases?
1. An Assignment Rule
2. Scheduled Apex
3. Process Builder
4. A Workflow Rule
Answer:-3. Process Builder
|
|
Question No:-5
|
When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items.
What should a developer do to meet this requirement?
1. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.
2. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.
3. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
4. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.
Answer:-3. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
|
|
Question No:-6
|
A Developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger.
Which method allows access to the price book?
1. Use Test.getStandardPricebookId() to get the standard price book ID.
2. Use @IsTest(SeeAllData=true) and delete the existing standard price book.
3. Use Test.loadData() and a Static Resource to load a standard price book.
4. Use @TestVisible to allow the test method to see the standard price book.
Answer:-1. Use Test.getStandardPricebookId() to get the standard price book ID.
|
|
Question No:-7
|
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
1. ENUM
2. sObject
3. External ID
4. String
Answer:-(1) and (4)
Most of the people choose (2) and (4) as there answer
|
|
Question No:-8
|
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?
1. Performance Tree tab under Stack Tree panel
2. Execution Tree tab under Stack Tree panel
3. Timeline tab under Execution Overview panel
4. Save Order tab under Execution Overview panel
Answer:-3. Timeline tab under Execution Overview panel
|
|
Question No:-9
|
Which two platform features align to the Controller portion of MVC architecture? (Choose two.)
1. Process Builder actions
2. Workflow rules
3. Standard objects
4. Date fields
|
Question No:-10
|
A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing.
Which two environments meet the requirements for testing? (Choose two.)
1. Developer Sandbox
2. Full Sandbox
3. Developer Edition
4. Partial Sandbox
5. Developer Pro Sandbox
|
|