Salesforce Platform Developer 1 questions

¡Supera tus tareas y exámenes ahora con Quizwiz!

89. What is an accurate statement about with sharing keyword?Choose 2 A. Either inner or outer classes can be declared as with sharing, but no both B. Both inner and outer classes can be declared as with sharing C. Inner classes do not inherit the sharing setting from the container class D. Inner classes inherit the sharing setting from the container class

B. Both inner and outer classes can be declared as with sharing C. Inner classes do not inherit the sharing setting from the container class

97. A developer needs to create records for the object Property__c. The developer creates the following code block: List<Property__c> propertiesToCreate =helperClass.CreateProperties(); Try{ 03 } Catch (Exception exp){ } Which line of code would the developer insert at line 03 to ensure that at least some records are created, even if a few records have errors and fail to be created? A. Insert propertiesToCreate; B. Database.insert(propertiesToCreate,false); C. Databas.insert(propertiesToCreate); D. Datebase.insert(propertiesToCreate,System.ALLOW_PARTIAL);

B. Database.insert(propertiesToCreate,false);

14. How can you make an External Object searchable via SOSL? A. Request a custom index from Salesforce Support B. Enable the "Allow Search" checkbox on the object C. Use the Search.QueryExternal() method D. Enable the "Is Searchable" checkbox on the object

B. Enable the "Allow Search" checkbox on the object

5. What is a consideration for Locker Service Enablement? A. Locker Service is enabled for custom Lightning Components implementing the interface force:enforceLockerService B. Locker Service is enabled for all custom lightning components with API version 40.0 or greater. C. Locker Service is disabled for custom Lightning Components implementing the interface force:ignoreLockerService D. Locker Service is disabled for all custom Lightning Components, regardless of the API version.

B. Locker Service is enabled for all custom lightning components with API version 40.0 or greater.

32. A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce. [What kind of relationship exists?] A. One-to-Many B. Lookup C. Master-Detail D. Parent-Child

B. Lookup

70. Which Apex collection is used to ensure all values are unique? A. An sObject B. Set C. List D. Enum

B. Set

80. What is the return type of a SOSL search? A. A list of sObjects. B. A list of AggregateResults. C. A list of lists of sObjects. D. An sObject.

C. A list of lists of sObjects.

13. Which two objects can be queried with SOQL? (Select ONE) A. DashboardSchedule B. DashboardRefresh C. DashboardComponent D. LightningComponent

C. DashboardComponent

69. To Which primitive data type in Apex is a currency field automatically assigned? A. Currency B. Integer C. Decimal D. Double

C. Decimal

6. A platform developer wants to reference an image included in the sales force lightning design system from visual force page. Which two references should be included in the page markup? A. $Asset B. < apex:slds > C. $SLDS D. < force:slds >

A. $Asset B. < apex:slds >

76. A developer created trigger with following code: list<Account> lstAccounts = new list<Account>(); for(order__c objorder:trigger.new){ account a = [select id from Account where id=:objorder.Account__c]; lstAccounts .add(a); } update lstAccounts; How many order will be load when developer attempts to load 150 records. A. 0 B. 150 C. 100 D. 1

A. 0

78. When running an Apex test, which type of Apex syntax in tested code is counted in the code coverage calculation? A. A variable assignment. B. A blank line. C. A System.debug() statement. D. A comment.

A. A variable assignment.

65. Which data type or collection of data types can SOQL statements populate or evaluate to? Choose 3 A. An Integer B. A single sObject C. A Boolean D. A string E. A list of sObjects

A. An Integer B. A single sObject E. A list of sObjects

Contact c = [Select id, firstname, lastname, email from Contact where lastname='Smith']; What does query return if there is no Contact with the last name 'Smith' A. An error that no rows are found B. A contact with empty C. A contact initialized to null D. An empty List of Contacts

A. An error that no rows are found

83. How Can a developer avoid exceeding governor limits when using an apex Trigger? Choose 2 A. By using Maps to hold data from query results B. By using a helper class that can be invoked from multiple triggers C. By performing DML transactions on lists of sObjects D. By using the Database class to handle DML transactions

A. By using Maps to hold data from query results C. By performing DML transactions on lists of sObjects

90. How can a developer refer to, or instantiate, a PageReference in Apex? A. By using a PageReference with a partial or full URL. B. By using the Page object and a Visualforce page name. C. By using the ApexPages.Page() method with a Visualforce page name. D. By using the PageReference.Page() method with a partial or full URL.

A. By using a PageReference with a partial or full URL. B. By using the Page object and a Visualforce page name.

7. Which three types of content can shortcut be created for using favorites? A. Chatter group B. Record home pages C. Dashboard D. Custom tabs E. Global actions

A. Chatter group B. Record home pages C. Dashboard

92. Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 A. Create activities at multiple intervals. B. Send an outbound message without Apex code. C. Copy an account address to its contacts. D. Submit a contract for approval.

A. Create activities at multiple intervals. B. Send an outbound message without Apex code.

74. What is the result of following code block ? integer x = 1; integer y = 0; while(x < 10){ y++; } What is the output : A. Error B. 9 C. 0 D. 10

A. Error

12. Which three actions can be taken from the Global Action Menu? A. Launch a custom visual force page B. Launch a custom Canvas App C. Launch a custom lightning Component D. Post a chatter feed E. Execute anonymous blocks of Apex code

A. Launch a custom visual force page B. Launch a custom Canvas App C. Launch a custom lightning Component

47. Where can custom roll up summary fields be created using Standard object relationships? A. On Account using Opportunity records B. On Account using Case records C. On Opportunity using Opportunity Product records D. On Campaign using Campaign Member records. E. On Quote using Order records

A. On Account using Opportunity records C. On Opportunity using Opportunity Product records D. On Campaign using Campaign Member records.

63. Where can debug log filter settings be set? Choose 2 A. The Filters link by the monitored user's name within the web UI. B. The Show More link on the debug log's record. C. On the monitored user's name. D. The Log Filters tab on a class or trigger detail page.

A. The Filters link by the monitored user's name within the web UI. D. The Log Filters tab on a class or trigger detail page.

81. What can be used to insure data quality? (Choose 3) A. Validation Rules B. Page Layouts C. Require Fields D. Workflows E. Triggers

A. Validation Rules B. Page Layouts C. Require Fields

39. A hierarchy custom setting stores specific URL for each profile in sf. Which statement can a developer use to retrieve the correct URL for the current URl for the current user's profile and display this on a vf page? A. {!$Setup.Url_Settings__c.URL__c} B. {!$Setup.Url_Settings__c[$Profile.Id].URL__c} C. {!$Setup.Url_Settings_c.Instance[Profile.Id].URL__c} D. {!$Setup.Url_Settings__c[Profile.Id].URL__c}

A. {!$Setup.Url_Settings__c.URL__c}

68. Which user can edit a record after it has been locked for approval? Choose 2 A. Any user with a higher role in the hierarchy B. An administrator C. Any user who approved the record previously D. An user who is assigned as the current approver

B. An administrator D. An user who is assigned as the current approver

30. What is the correct pattern to follow when programming in Apex on multitenant platform? A. Apex code is created in a separate environment from schema to reduce deployment errors. B. DML is performed on one record at a time to avoid possible data concurrency issues. C. Queries select the fewest fields and records possible to avoid exceeding governor limits. D. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.

C. Queries select the fewest fields and records possible to avoid exceeding governor limits.

52. How would a developer use Schema builder to delete a custom field from the Account object that was required for prototyping but is no longer needed? A. Delete the field from Schema Builder and then all references in the code will be removed. B. Mark the field for deletion in Schema Builder and then delete it from the declarative UI. C. Remove all references from the code and then delete the custom field from Schema Builder D. Remove all the references in the code and then the field will be removed from Schema Builder

C. Remove all references from the code and then delete the custom field from Schema Builder

1. How can a validity check be performed on a component? A. cmp.get() == true B. cmp.get("v.isValid") == true C. cmp.get() != null D. cmp.get("v.isValid") != null

C. cmp.get() != null

21. Which two interfaces can be implemented to enable a Lightning component for Custom Actions? (Choose 2 answers) A. aura:enableQuickAction B. lightning:quickActionEnabled C. force:lightningQuickActionWithoutHeader D. force:lightningQuickAction E. force:lightningQuickActionWithHeader

C. force:lightningQuickActionWithoutHeader D. force:lightningQuickAction

71. What is a junction object? A. A custom object with one lookup relationship and one master-detail relationship. B. A custom object with two lookup relationships. C. A custom object with any number of lookup and master-detail relationships. D. A custom object with two master-detail relationships.

D. A custom object with two master-detail relationships.

87. A developer creates a new Visualforce page and Apex extension,and writes test classes that exercise 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning : *Average test coverage across all apex classes and triggers is 74% at least 75% test coverage is required. What can the developer do to successfully deploy the new Visualforce page and extension? A. Select Disable Parallel Apex testing to run all the test B. Select fast Deployment to bypass running all the tests. C. Create test classes to exercise the visualforce page markup D. Add test methods to existing test classes from previous deployments.

D. Add test methods to existing test classes from previous deployments.

28. A developer created an apex Trigger using the Developer Console and now wants to debug code. How can a developer accomplish this in the Developer console? A. Select the Override Log Triggers checkbox for the trigger B. Add the user name to the Log Inspector C. Open the Progress tab in the Developer Console D. Open the Logs tab in the Developer Console

D. Open the Logs tab in the Developer Console

34. Why would a developer use Test.startTest() and Test.stopTest()? A. To avoid Apex code coverage requirements for the code between these lines. B. To start and stop anonymous block execution when executing anonymous Apex code C. To indicate test code so that it does not impact Apex line count governor limits D. To create an additional set of governor limits during the execution of a single test class

D. To create an additional set of governor limits during the execution of a single test class

84. When does a Notification Email get sent? A. After Triggers B. Before Triggers C. After Commit D. Before Commit

A. After Triggers

77. What is the name of the standard relationship from Account down to Contact? A. Contacts B. Contact C. Accounts D. Account

A. Contacts

16. Which three Metadata components can be deployed via Change Sets? A. Lightning Application B. Wave Application C. Global Picklist D. Wave Dashboard E. Lightning Component

A. Lightning Application C. Global Picklist E. Lightning Component

53. Which statement about change set deployment is accurate? (Choose 3) A. They require a deployment connection B. They can be used to deploy custom settings data C. They can be used to transfer Contact records D. They use an all or none deployment model E. They can be used only between related organizations

A. They require a deployment connection D. They use an all or none deployment model E. They can be used only between related organizations

100. Which standard field mandatorily needs to be populated when a developer inserts new Contact records programmatically? A. Name B. LastName C. AccountId D. FirstName

B. LastName

98. How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex? A. By calling the profile settings of the current user B. By calling the isShared() method for the record C. By querying CustomObject__share D. By querying the role hierarchy.

C. By querying CustomObject__share

57. A visualforce page has a standard controller for an object that has a lookup to the parent object. How can a developer display data from parent record on the page? A. By adding a second standard controller to the page for the parent record B. By using SOQL on the Visualforce page to query for data from the parent record C. By using merge field syntax to retrieve data from the parent record D. By using a roll-up formula field on the child record to include data from the parent record

C. By using merge field syntax to retrieve data from the parent record

18. Where can a developer call external javascript in a visualforce page. (Choose 2) A. <apex:indcludeScript> B. <link> C. <apex:define> D. <script>

A. <apex:indcludeScript> D. <script>

75. Which statement about declarations is correct? A. A developer can extend a class that is declared with Virtual keyword B. A developer can't use class or method using final keyword C. A developer can define constant with final keyword.

A. A developer can extend a class that is declared with Virtual keyword B. A developer can't use class or method using final keyword C. A developer can define constant with final keyword.

51. What is an accurate statement about the variable scope? Choose 3 A. A variable can be defined at any point in a block B. Parallel blocks can use the same variable name C. Sub-blocks cannot reuse a parent block's variable name D. A static variable can restrict the scope to the current block if its values is null E. Sub-blocks can reuse a parent's block variable name if its value is null

A. A variable can be defined at any point in a block B. Parallel blocks can use the same variable name C. Sub-blocks cannot reuse a parent block's variable name

59. On which object can an admin create a roll up summary field? A. Any object that is on the master side of a master-detail relationship. B. Any object that is on the parent side of a lookup relationship. C. Any object that is on the detail side of a master-detail relationship. D. Any object that is on the child side of a lookup relationship.

A. Any object that is on the master side of a master-detail relationship.

15. From where can you select and run Apex Test in the Lightning Experience? A. Apex Test Execution page in Setup B. Testing API Page in Setup C. Apex Test History page in Setup D. Test menu in the Developer Console E. Apex Hammer Execution Status page in Setup

A. Apex Test Execution page in Setup D. Test menu in the Developer Console

85. In Which order does Salesforce execute events upon saving a record? A. Before Triggers, Validation rules, After Triggers, Assignment Rules, Workflow Rules, Commit B. Before Triggers, Validation rules, After Triggers, Workflow Rules, Assignment Rules, Commit C. Validation rules, Before Triggers, After Triggers, Workflow Rules, Assignment Rules, Commit D. Validation rules, Before Triggers, After Triggers, Assignment Rules, Workflow Rules, Commit

A. Before Triggers, Validation rules, After Triggers, Assignment Rules, Workflow Rules, Commit

35. How can a developer determine, from the DescribeSobject, if the current user will be able to create record on an object in Apex? A. By using the isCreatable() method B. By using the hasAccess() method C. By using the canCreatable() method D. By using the isInsertable() method

A. By using the isCreatable() method

43. What is capability of formula fields? Choose 3 A. Determine if a datetime field has passed using the NOW function B. Determine which of three different images to display using IF function C. Display the previous value for a field using the PRIORVALUE function D. Return and display a field value from another object using the VLOOKUP function E. Generate a link using the HYPERLINK function to a specific record in a legacy system

A. Determine if a datetime field has passed using the NOW function B. Determine which of three different images to display using IF function E. Generate a link using the HYPERLINK function to a specific record in a legacy system

19. Where can a developer create a managed package? A. Developer edition B. Enterprise edition production org C. Enterprise edition Sandbox org D. Professional edition

A. Developer edition

99. In which of the following environments can Developers write code? Select all that apply. A. Developer edition production org B. Enterprise edition production org C. Enterprise edition Sandbox org D. Professional edition Sandbox org

A. Developer edition production org C. Enterprise edition Sandbox org

95. What is a capability of cross-object formulas fields? Choose 3 answers A. Formula fields can reference fields from Master-Detail or lookup parent relationships B. Formula fields can reference fields in a collection of records from a child relationship C. Formula fields can be use in three roll-up summaries per object D. Formula fields can reference fields from objects that are up to 10 relationships away E. Formula fields can expose data the user does not have access to in a record

A. Formula fields can reference fields from Master-Detail or lookup parent relationships D. Formula fields can reference fields from objects that are up to 10 relationships away E. Formula fields can expose data the user does not have access to in a record

40. What is a capability of the Force.com IDE? A. Roll back deployments. B. Run Apex tests. C. Download debug logs. D. Edit metadata components.

B. Run Apex tests. D. Edit metadata components.

26. For how many days will the "Quick Deploy" option appear after a Change Set is successfully validated? A. 10 B. 15 C. 4 D. 30

A. 10

33. What is a valid statement about Apex Classes and interfaces? Choose 2 A. Exception classes must end with the word exception B. The default modifier for a class is private C. A class can have multiple levels of inner class D. The default modifier for an interface is private

A. Exception classes must end with the word exception B. The default modifier for a class is private

56. A developer needs to create a visualforce page that will override the standard Account edit button. The page will be used to validate the accounts address using SOQL query. The page will also allow the user to make the edits to the address. Where would the developer write the Account address verification logic? A. In a Controller Extension B. In a Standard Extension C. In a Custom Controller D. In a Standard Controller

A. In a Controller Extension

54. What is a capability of a standardSetController? (Choose 2) A. It allows pages to perform mass updates of records B. It enforces field-level security when reading large record sets C. It extends the functionality of a standard or custom controller D. It allows pages to perform pagination with large record sets

A. It allows pages to perform mass updates of records D. It allows pages to perform pagination with large record sets

29. When Loading data into an org, what can a developer do to match records to update existing records? (Choose 2) A. Match an external Id Text field to a column in the imported file B. Match the Id field to a column in the imported file C. Match the Name field to a column in the imported file D. Match an auto-generated Number field to a column in the imported file.

A. Match an external Id Text field to a column in the imported file B. Match the Id field to a column in the imported file

24. What is the benefit of the Lightning Component Framework? A. More pre-built components to replicate the Salesforce look and feel B. Better performance for custom Salesforce1 Mobile apps. C. More centralized control via server-side logic. D. Better integration with Force.com sites.

A. More pre-built components to replicate the Salesforce look and feel

67. Which type of information is provided by the Checkpoints tab in the Developer console? Choose 2 A. Namespace B. Debug Statement C. Time D. Exception

A. Namespace C. Time

2. What are the two considerations when overriding standard actions? Choose 2 answers A. Overriding standard actions with a Lightning component applies only to Lightning Experience and Salesforce 1, but not to Salesforce Classic. B. Overriding standard actions with a Visualforce page applies only to Salesforce Classic and Lightning Experience, but not to Salesforce1. C. Overriding standard actions with a Visualforce page applies to Salesforce Classic, Lightning Experience, and Salesforce1. D. Overriding standard actions with a Lightning component applies to Lightning Experience, Salesforce1, and Salesforce Classic.

A. Overriding standard actions with a Lightning component applies only to Lightning Experience and Salesforce 1, but not to Salesforce Classic. C. Overriding standard actions with a Visualforce page applies to Salesforce Classic, Lightning Experience, and Salesforce1.

96. Which declarative method helps ensure quality data? Choose 3 A. Page layouts B. Validation rules C. Lookup filters D. Exception handling E. Workflow alerts

A. Page layouts B. Validation rules C. Lookup filters

9. Custom lighting record page can be assigned to which three items? A. Record Types B. Apps C. Profiles D. Public group E. Roles

A. Record Types B. Apps C. Profiles

8. Which component type will display the details of the parent object from a custom lightning record for contact page? A. Related record component B. Parent component C. Hierarchy component D. Filter list component.

A. Related record component

10. Which features enables creating, updating and deleting records in other sales force orgs? A. Salesforce Connect Cross- Org Adapter. B. Lightning - to - Lightning Connector C. Database.WriteableObject Interface D. Apex triggers for Writeable External objects.

A. Salesforce Connect Cross- Org Adapter.

38. A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? Choose 2 answers. A. Salesforce UI Apex Test Execution B. Workbench Metadata Retrieval C. Developer Console D. ANT Migration Tool

A. Salesforce UI Apex Test Execution C. Developer Console

58. What is a valid source and destination pair that send or receive change sets? A. Sandbox to Sandbox. B. Developer edition to production C. Developer edition to sandbox D. Sandbox to production.

A. Sandbox to Sandbox. D. Sandbox to production.

44. In the lightning component framework, which resource can be used to fire events? A. Third-party Javascript code. B. Visualforce controller actions. C. Javascript controller actions. D. Third-party web service code.

A. Third-party Javascript code. C. Javascript controller actions.

73. Developer need to verify that the account trigger is working fine without changing Org data. What would the developer do to test the Account trigger? (Choose 2) A. Use the test menu on developer console to run all test classes for the account trigger. B. Use Execute Anonymous feature on developer console C. Use New button on Account tab to create new record D. Use force.com IDE

A. Use the test menu on developer console to run all test classes for the account trigger. D. Use force.com IDE

17. Which two features can be used to prevent values from being selected in a picklist? A. Validation Rules B. Workflow Rules C. Restricted Picklists D. Filtered Picklists E. Validated Picklists

A. Validation Rules C. Restricted Picklists

31. The sales management team requires that the Lead Source field of the Lead record be populated when a Lead is converted. What would a developer use to ensure that a user populates the LeadSource field prior to converting to a Lead? A. Validation rule B. Process builder C. Formula Field D. Workflow rule

A. Validation rule

91. A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which statement is unnecessary inside the unit test for the custom controller? A. public ExtendedController(ApexPages.StandardController cntrl) { ) B. ApexPages.currentPage().getParameters() put(input', 'TestValue). C. Test.setCurrentPage(pageRef). D. String nextPage = controller.save().getUrl();

A. public ExtendedController(ApexPages.StandardController cntrl) { )

88. A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account a = new Account(Name='New Account'); insert a; for(Integer i=0; i< 150; i++) { Account a = new Account(Name='New Account' + i); try { insert a; } catch(DmlException e) { System.debug('An unexpected error has occurred: ' + e.getMessage()); } } Account a = new Account(Name='New Account'); insert a; How many accounts are in the org after this code is run? A. 101 B. 100 C. 102 D. 252

B. 100

64. Which action can a developer perform in a before update trigger? Choose 2 A. Update the original object using an update DML operation B. Change field values using the Trigger.new context variable C. Display a custom error message in the application interface D. Delete the original object using a delete DML operation

B. Change field values using the Trigger.new context variable C. Display a custom error message in the application interface

72. A developer executes following code in Console list<Account> flist = new list<Account>(); for(integer i=1;i<=200 ;i++){ flist.add(new Account(name='Test Acc'+i)); } insert flist; list<Account> Llist = new list<Account>(); for(integer i=201;i<=20000 ;i++){ Llist.add(new Account(name='Test Acc'+i)); } insert Llist ; What will be the output : A. Insert all records B. Error will occur C. Insert 200 only D. 0 records inserted

B. Error will occur

11. Which two options are available to display detailed information about the status of and apex batch job? A. Heap size B. Submitted date C. Elapsed time D. Submitted by user

B. Submitted date C. Elapsed time

3. Which standard actions can be overridden with Lightning Components? A. List, Edit, New, Delete B. Tab, View, Edit, New C. View, Edit, New, Delete D. List, View, Edit, New

B. Tab, View, Edit, New

62. When can a developer use a custom Visualforce page in a Force.com application? Choose 2 A. To modify the page layout settings for a custom object B. To create components for dashboards and layouts C. To deploy components between two organizations D. To generate a PDF document with application Data

B. To create components for dashboards and layouts D. To generate a PDF document with application Data

66. What is a good practice for a developer to follow when writing a trigger? A. Using synchronous callouts to call external systems B. Using the Map data structure to hold query results by ID C. Using @future methods to perform DML operations D. Using the Set data structure to ensure distinct records

B. Using the Map data structure to hold query results by ID D. Using the Set data structure to ensure distinct records

20. Which Base Lightning Component will display a number of buttons together in the same navigation bar? A. ui:buttons B. lightning:buttonGroup C. lightning:layout D. ui:navigation

B. lightning:buttonGroup

50. When the value of a field in an account record is updated, which method will update the value of a custom field in all related opportunities? Choose 2 answers. A. A cross-object formula field on the Account object. B. A Workflow Rule on the Account object. C. A process Builder on the Account object. D. An Apex trigger on the Account object.

C. A process Builder on the Account object. D. An Apex trigger on the Account object.

41. In a single record , a user selects multiple values from a multi select picklist. How are the values represented in Apex. A. As a List with each value as an element in the list B. As a Set with each value as an element in the set C. As a String with each value separated by a semicolon D. As a String with each value separated by a comma

C. As a String with each value separated by a semicolon

79. Which method is defined in the StandardController class? Choose 2 A. Undelete B. Merge C. Cancel D. Save

C. Cancel D. Save

86. The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record. What would a developer do to meet this requirement? A. Create a Workflow Rule on the Opportunity object that updates a field on the parent Account. B. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field. C. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field D. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities.

C. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field

93. What is a capability of the Developer Console? A. Execute Anonymous Apex Code, Run REST API, Deploy code changes B. Execute Anonymous Apex Code, Create/Edit Code, Deploy code changes C. Execute Anonymous Apex Code, Create/Edit Code, View Debug Logs D. Execute Anonymous Apex Code, Run REST API, Create/EDIT Code

C. Execute Anonymous Apex Code, Create/Edit Code, View Debug Logs

23. What are two ways to use the Lightning Design System in Lightning Apps? A. Copy and paste CSS classes from Lightning Design System to the CSS resource in the Application Bundle B. Include an attribute with a name of "SLDS" of type "Boolean" that has a default value of true C. Extend "force:slds" in the < aura:application > tag D. Reference a Static Resource using "ltng:require"

C. Extend "force:slds" in the < aura:application > tag D. Reference a Static Resource using "ltng:require"

45. What is an important consideration when developing in multitenant environment? A. Unique domain names take the place of namespace for code developed for multiple orgs on multiple instances. B. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance. C. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance D. Polyglot persistence provides support for a global, multilingual user base in multiple orgs in multiple instances

C. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance

48. Which scenario is invalid for executing by unit tests? A. Executing methods for negative test scenarios. B. Executing methods as different users. C. Loading test data in place of user input for Flows. D. Load the standard Pricebook ID using a system method.

C. Loading test data in place of user input for Flows.

82. A custom exception named "RecordNotFoundException" is defined by the following code block: public class RecordNotFoundException extends Exception { } Which statement can a developer use to throw the custom exception? Choose 2 A. Throw RecordNotFoundException(); B. Throw RecordNotFoundException('Problem ocurred') C. Throw new RecordNotFoundException('Problem occurred') D. Throw new RecordNotFoundException();

C. Throw new RecordNotFoundException('Problem occurred') D. Throw new RecordNotFoundException();

37. Which statement should a developer avoid using inside Procedural loops? (Choose 2) A. If(o.accountid = a.id) B. System.debug('Amount of CPU time (in ms) used so far:' + Limits.getCpuTime()); C. Update contactList D. List contacts = [select id, salutation, firstname, lastname, email from Contact where accountId = :a.Id]

C. Update contactList D. List contacts = [select id, salutation, firstname, lastname, email from Contact where accountId = :a.Id]

49. A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class? A. Add the @TestVisible attribute to the Apex class B. Add the SeeAllData attribute to the test class C. Add the SeeAllData atrribute to the test methods D. Add the @TestVisible attribute to the Apex methods

D. Add the @TestVisible attribute to the Apex methods

42. A Developer has a block of code that omits any statements that indicate whether the code block should execute with sharing or without sharing. What will automatically obey the org wide default and sharing settings for the user who executes the code in salesforce organization? A. Apex Triggers B. HTTP Callouts C. Apex Controllers D. Anonymous Blocks

D. Anonymous Blocks

94. A developer needs to ensure there is sufficient test coverage for an Apex method that interacts with Accounts. The developer needs to create test data. What is the preferred way to load this test data into Salesforce? A. By using HttpCalloutMocks B. By using Documents C. By using WebServiceTests D. By using Static Resources

D. By using Static Resources

27. Which new option in Winter '17 improves sandbox creation by reducing the data in a Full sandbox? A. Data Compression B. Template Optimizer C. Login History D. Content Version History

D. Content Version History

60. A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement? A. Create a required Visualforce component B. Create a required comments field C. Create a formula field D. Create a validation rule

D. Create a validation rule

36. Which statement would a developer use when creating test data for products and pricebooks? A. List objList= Test.loadData(Acccount.sObjectType, ',myResource'); B. IsTest(SeeAllData=false) C. Pricebook pb = new pricebook(); D. Id pricebookId = Test.getStandardPricebookId();

D. Id pricebookId = Test.getStandardPricebookId();

55. A developer wants to list all of the Tasks for each Account on the Account detail page. When a Task is created for a contact, what does the developer need to do to display the Task on? A. Create a Workflow Rule to relate the Task to the Contact's Account B. Nothing. The Task cannot be related to an Account and a Contact C. Create an Account formula field that displays the Task information D. Nothing. The Task is automatically displayed on the Account Page.

D. Nothing. The Task is automatically displayed on the Account Page.

25. In Process Builder, how can you make a process reusable and invoke it from other processes or action groups in the same process? A. Check the Invocable Process checkbox option B. Reference the process from an Apex method annotated with @InvocableMethod C. No configuration is required because all processes become invocable in Winter '17 D. Select "It's invoked by another process" from the "The process starts when" picklist

D. Select "It's invoked by another process" from the "The process starts when" picklist

22. Name two required steps for enabling debug logging for unauthenticated Guest Users accessing public Sites. Choose 2 answers A. Set the "Assigned Users" in the Site "Public Access Settings" to include the built-in Debug User B. Install the Sites Page Inspector plugin for Chrome C. Check the "Enable Guest Access Logging" checkbox option in Site Details D. Set a browser cookie with a name value of "debug_logs" and a domain value of ".force.com" E. Setup a new Trace Flag with a Traced Entity Type of 'User' that looks up to the Guest User for a Site

D. Set a browser cookie with a name value of "debug_logs" and a domain value of ".force.com" E. Setup a new Trace Flag with a Traced Entity Type of 'User' that looks up to the Guest User for a Site

4. How do the CSS enhancement to the Lightning Design System improve the developer experience? A. Class names are abbreviated to reduce code length. B. Class names are available in upper and lower case. C. Uppercase is used to distinguish from custom class names. D. Single underscores (dashes) are used in class names to enable commenting Salesforce Lightning.

D. Single underscores (dashes) are used in class names to enable commenting Salesforce Lightning.

61. Which statement about the lookup relationship between a custom object and a standard object is correct? A. The Custom Object will be deleted when the referenced Standard Object is deleted B. The lookup Relationship cannot be marked as required on the page layout for the Custom Object C. The custom Object inherits security from the referenced Standard Object D. The Lookup relationship on the Custom Object can prevent the deletion of the Standard Object

D. The Lookup relationship on the Custom Object can prevent the deletion of the Standard Object


Conjuntos de estudio relacionados

Module 3 - Information Security Basics - AWR-173-W

View Set

Intro to stats: Module 4, Examining Distributions Checkpoint 1

View Set

Learning and Memory Actual Questions from Test

View Set

User-Experience Research Methods

View Set

Chapter 5 workbook-Infection Prevention and Control

View Set

Unit 2: Wars of Catholic Spain-The Netherlands and England

View Set