Strona 2

Nowy SF

Pytanie 9
A developer uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record.
Use SELECT Id from Account where Name = 'Test'.
The Account cannot be used in the second test method.
Restore the Account using an undelete statement.
Call the Test Setup method at the start of the test.
Pytanie 10
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?
Create a test class that provides coverage of the Visualforce page.
Create a test page that provides coverage of the custom controller.
Create a test class that provides coverage of the custom controller.
Create a test page that provides coverage of the Visualforce page.
Pytanie 11
A developer declared a class as follows. public class wysiwyg { // properties and methods including DML } Which Invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce organization?
An Apex trigger that invokes a helper method in this class
A developer using the Developer Console that invokes a method in this class from the execute anonymous window
A user on an external system that has an API call into Salesforce that invokes a method in this class
A Visualforce page with an Apex controller that invokes a method in this class
Pytanie 12
How many levels of child records can be returned in a single SOQL query from one parent object?
5
7
3
1
Pytanie 13
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? Choose 2 answers
Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
Hardcode the ID as a constant in an Apex class.
Execute a SOQL query on the RecordType object
Make an outbound web services call to the SOAP API.
Pytanie 14
Which two statements are true regarding formula fields? Choose 2 answers
Fields that are referenced by a formula field can not be deleted until the formula is modified or deleted.
When concatenating fields, line breaks can be added to improve readability.
When using the & operator to concatenate strings, the result is automatically truncated to fit the destination.
Formula fields may reference formula fields on the same object to a level of one deep.
Pytanie 15
An Account trigger updates all related Contacts and Cases each time an Account is saved using the following two DML statements: update allContacts; update allCases; What is the result if the Case update exceeds the governor limit for maximum number of DML records?
The Account save succeeds and no Contacts or Cases are updated.
The Account save fails and no Contacts or Cases are updated.
The Account save is retried using a smaller trigger batch size.
The Account save succeeds, Contacts are updated, but Cases are not.
Pytanie 16
A developer needs to include a Visualforce page in the detail section of a page layout for the Account object, but does not see the page as an available option in the Page Layout Editor. Which attribute must the developer include in the tag to ensure the Visualforce page can be embeddded in a page layout?
standardController="Accout"
extensions="AccountController"
action="AccountId"
controller="Account"

Powiązane tematy

#it