Fiszki

Nowy SF

Test w formie fiszek fdfds
Ilość pytań: 111 Rozwiązywany: 809 razy
What are two benefits of the Lightning Component framework? Choose 2 answers
It provides an event-driven architecture for better decoupling between components.
It simplifies complexity when building pages, but not applications.
It promotes faster development using out-of-the-box components that are suitable for desktop and mobile devices.
It allows faster PDF generation with Lightning components.
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.
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 trigger on the Rating object that updates a field on the Employee object.
Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
Create a master-detail relationship between the Rating and Employee objects.
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.
Create a lookup relationship between the Rating and Employee object.
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 (Long)
Text Area
Text
Text Area (Rich)
Text Area
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.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues().
Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribeu.getRecordTypeInfos().
Use Schema.RecordTypeInfo returned by RecordType.SObjectType.getDescribe().getRecordTypeInfos().
Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe()getPicklistValues()
Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribeu.getRecordTypeInfos().
For which example task should a developer use a trigger rather than a workflow rule?
To set the Name field of an expense report record to Expense and the Date when it is saved
To set the primary Contact on an Account record when it is saved
To send an email to a hiring manager when a candidate accepts a job offer
To notify an external system that a record has been modified
To set the primary Contact on an Account record when it is saved
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
Controller Extension method that uses SOQL to query for a list of Account records
A Controller Extension method that saves a list of Account records
Custom JavaScript that processes a list of Account records
A list of Account records returned from a Controller Extension method
Which declarative process automation feature supports iterating over multiple records?
Workflow rules
Validation rules
Flows
Approval process
Flows
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?
An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field
A Process Builder process that updates a field on the timecard when a timecard entry is created
A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecar
A Visualforce page that calculates the total number of hours for a timecard and displays it on the pag
A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecar
What is a key difference between a Master-Detail Relationship and a Lookup Relationship?
A Lookup Relationship is a required field on an object.
When a record of a master object in a Lookup Relationship is deleted, the detail records are also deleted.
When a record of a master object in a Master-Detail Relationship is deleted, the detail records are kept and not deleted.
A Master-Detail Relationship detail record inherits the sharing and security of its master record.
A Master-Detail Relationship detail record inherits the sharing and security of its master record.
In the code below, which type does String Inherit from? String s = 'Hello World';
Prototype
sObject
Object
Class
Object
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?
2100
2000
0
100
100
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
Use (callout=true) to update an external system.
Use @future methods to handle DML operations.
Use a set to ensure unique values in a query filter
Use a map to reduce the number of SOQL calls
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
Create a method named Save with a return data type of PageReference.
Define the class with a constructor that creates a new instance of the StandardController class.
Create a method that references this.superSave().
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.
Define the class with a constructor that takes an instance of StandardController as a parameter.
How can a developer use a Set to limit the number of records returned by a SOQL query?
Reference the Set in the LIMIT clause of the query.
Pass the Set as an argument In a reference to the Database.query() method.
Pass the query results as an argument in a reference to the Set.contalnsAll() method.
Reference the Set in the WHERE clause of the query
Pass the Set as an argument In a reference to the Database.query() method.
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?
By default, tasks do not display on the Account Activity Timeline.
In Activity Settings, uncheck Roll up activities to a contact's primary account.
Create a Task trigger to set the Account field to NULL.
Use Process Builder to create a process to set the Task Account field to blank.
In Activity Settings, uncheck Roll up activities to a contact's primary account.
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
Scheduled Jobs
Background Jobs
Asynchronous Jobs
Apex Jobs
What is a benefit of using a trigger framework?
Increases trigger governor limits
Reduces trigger execution time
Simplifies addition of context-specific logic
Allows functional code to be tested by a test class
Simplifies addition of context-specific logic
Managed Packages can be created in which type of org?
Developer Sandbox
Unlimited Edition
Partial Copy Sandbox
Developer Edition
Developer Edition
How can a developer warn users of SOQL governor limit violations in a trigger?
Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.
Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.
Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.
Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit
Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit
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 NUM
Roll-up summary field of type SUM
Roll-up summary field of type COUNT
Roll-up summary field of type TOTAL
Roll-up summary field of type SUM
Roll-up summary field of type COUNT

Powiązane tematy

#it

Inne tryby