Pytania i odpowiedzi

Nowy SF

Zebrane pytania i odpowiedzi do zestawu. fdfds
Ilość pytań: 111 Rozwiązywany: 809 razy
Pytanie 21
What are two benefits of the Lightning Component framework? Choose 2 answers
It provides an event-driven architecture for better decoupling between components.
It promotes faster development using out-of-the-box components that are suitable for desktop and mobile devices.
Pytanie 22
A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task? Choose 2 answers
Create a lookup relationship between the Rating and Employee object.
Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
Pytanie 23
A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?
Text Area
Pytanie 24
A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types In the controliler? Choose 2 answers
Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe()getPicklistValues()
Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribeu.getRecordTypeInfos().
Pytanie 25
For which example task should a developer use a trigger rather than a workflow rule?
To set the primary Contact on an Account record when it is saved
Pytanie 26
Which type of code represents the Model in the MVC architecture on the Force.com platform?
A list of Account records returned from a Controller Extension method
Pytanie 27
Which declarative process automation feature supports iterating over multiple records?
Flows
Pytanie 28
A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecar
Pytanie 29
What is a key difference between a Master-Detail Relationship and a Lookup Relationship?
A Master-Detail Relationship detail record inherits the sharing and security of its master record.
Pytanie 30
In the code below, which type does String Inherit from? String s = 'Hello World';
Object
Pytanie 31
An Apex transaction inserts 100 Account records and 2,000 Contact records before encountering a DML exception when attempting to insert 500 Opportunity records. The Account records are inserted by calling the database.insert() method with the allOrNone argument set to false. The Contact and Opportunity records are inserted using the standalone insert statement. How many total records will be committed to the database in this transaction?
100
Pytanie 32
Which two practices should be used for processing records in a trigger? Choose 2 answers
Use a set to ensure unique values in a query filter
Use a map to reduce the number of SOQL calls
Pytanie 33
A developer wants to use all of the functionality provided by the standard controller for an object, but needs to override the Save standard action in a controller extension. Which two are required In the controller extension class? Choose 2 answers
Define the class with a constructor that takes an instance of StandardController as a parameter.
Create a method named Save with a return data type of PageReference.
Pytanie 34
How can a developer use a Set to limit the number of records returned by a SOQL query?
Pass the Set as an argument In a reference to the Database.query() method.
Pytanie 35
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?
In Activity Settings, uncheck Roll up activities to a contact's primary account.
Pytanie 36
A developer needs to find information about @future methods that were invoked. From which system monitoring feature can the developer see this information?
Apex Jobs
Pytanie 37
What is a benefit of using a trigger framework?
Simplifies addition of context-specific logic
Pytanie 38
Managed Packages can be created in which type of org?
Developer Edition
Pytanie 39
How can a developer warn users of SOQL governor limit violations in a trigger?
Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit
Pytanie 40
Which two roll-up summary field types are required to find the average of values on detail records in a Master-Detail relationship? Choose 2 answers
Roll-up summary field of type SUM
Roll-up summary field of type COUNT

Powiązane tematy

#it