Pytania i odpowiedzi

Nowy SF

Zebrane pytania i odpowiedzi do zestawu. fdfds
Ilość pytań: 111 Rozwiązywany: 4083 razy
Pytanie 41
A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model should be used to track the data?
Create a lookup relationship to indicate that a person has an employer
Pytanie 42
Which two statements are acceptable for a developer to use inside procedural loops? Choose 2 answers
contactList.remove(i)
Contact con = new Contact
Pytanie 43
Which tag should a developer include when styling from external CSS is required in a Visualforce page?
apex:stylesheet
Pytanie 44
Which two approaches optimize test maintenance and support future declarative configuration changes? Choose 2 answers
Create a method that loads valid Account records from a static resource, then call this method within test methods.
Create a method that creates valid records, then call this method within test methods.
Pytanie 45
Which two statements are true about Apex code executed in Anonymous Blocks? Choose 2 answers
Successful DML operations are automatically committed.
The code runs with the permissions of the logged in user.
Pytanie 46
From which two locations can a developer determine the overall code coverage for a sandbox? Choose 2 answers
The Tests tab of the Developer Console
The Apex classes setup page
Pytanie 47
The sales team at Universal Containers would like to see a visual indicator appear on both Account and Opportunity page layouts to alert salespeople when an Account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without having to write custom code?
Formula Field
Pytanie 48
A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?
after delete
Pytanie 49
What is considered the primary purpose for creating Apex tests?
To confirm every trigger is executed at least once
Pytanie 50
Which two conditions cause workflow rules to fire? Choose 2 answers
Updating records using the bulk API
Converting leads to person accounts
Pytanie 51
A developer is creating a Visualforce 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 users default record type?
Use Opportunity.SObjectType.getDescribeQ.getRecordTypelnfos() to get a list of record types, and iterate through them until isDefauitRecordTypeMapping() is true.
Pytanie 52
Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers
Create an Account Roll-up Summary field to count open Opportunities
Create an Account Trigger to generate an error on Opportunity insert
Pytanie 53
A Visualforce page uses the Contact standard controller. How can a developer display the Name from the parent Account record on the page?
Use the {!contact.Account.Name} merge field syntax.
Pytanie 54
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
public void doWork(sObject theRecord)
Pytanie 55
Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers
By using ApexPages.currentPage()
By using the PageReference.getURLD method
Pytanie 56
Which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?
FIND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id, name), contact(id, name)
Pytanie 57
Requirements state that a child record be deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema builder to support these requirements?
Master-Detail relationship
Pytanie 58
A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?
Create test data before Test.startTest() in the unit test.
Pytanie 59
Which three resources in a Lightning Component Bundle can contain lavaScript functions? Choose 3 answers
Helper
Renderer
Controller
Pytanie 60
How can a developer set up a debug log on a specific user?
Set up a trace flag for the user, and define a logging level and time period for the trace.

Powiązane tematy

#it