• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/146

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

146 Cards in this Set

  • Front
  • Back

1. 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

Answer: A,C




Developers can develop applications only in developer edition orgs. But other orgs, such as the Enterprise Edition, also support development and coding functionalities in their Sandboxes.

2. How can a developer avoid exceeding Governor Limits when using an Apex Trigger? Select all that apply.




a. By using a helper class that can be invoked from multiple triggers


b. By using Maps to hold data from query results


c. By using the Database class to handle DML transactions


d. By performing DML transactions on lists of Objects

Answer: B,D




The best way to avoid Governor Limits is to bulkify your code by using sets, lists, and Maps. You must also keep your SOQL queries outside loops.

3. Which of these is an accurate statement about "with sharing" keywords? Select all that apply.




a. Inner classes inherit the sharing setting from the container class


b. Either inner classes or outer classes can be declared as "with sharing", but not both


c. Inner classes do not inherit the sharing setting from the container class


d. Both inner classes and outer classes can be declared as "with sharing"

Answer: C,D




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

4. Which standard field mandatorily needs to be populated when a developer inserts new Contact records programmatically?




a. Name


b. LastName


c. AccountId


d. FirstName

Answer: B




LastName is a mandatory field on the contact object, so it must be populated when a contact is inserted.

5. In the given code, from where does the Boolean inherit its value? _x000D_Boolean b = true;




a. Class


b. Object


c. Enum


d. String

Answer: B

6. Which of these is a characteristic of the Lightning Component framework? Select all that apply.




a. It has an event-driven architecture.


b. It works with the existing Visualforce pages.


c. It uses XML as its data format.


d. It includes responsive components

Answer: A,D




The New Lighting component framework comes with a new responsive design called LDS (Lightning Design System) and has a JavaScript driven architecture.

7. Visualforce components are similar to which type of tag library containing tag namespace prefixes?




a. ASP tag library


b. JSP tag library


c. ASP log file


d. DL JSP log file

Answer: B




Visualforce tags are similar to the JSP tag library that carry the metadata information.

8. A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field.




The Case object and the Case.Status field are on a custom Visualforce page.




What action can the developer perform to get the record types and picklist values in the controller? Select all that apply.




a. Use Schema.PickListEntry returned by Case.Status.getDescribe().getPicklistValues()




b. Use Schema.RecordTypeInfo returned by Case.SObjectType.GetDescribe().getRecordTypeInfos()




c. Use SOQL to query Case records in the org to get all the RecordType values available for Case




d. Use SOQL to query case records in the org to get all values for the Status picklist field

Answer: A,B

9. On a Visualforce page with a custom controller, by using an ID parameter that is passed in the URL, how should a developer retrieve a record? Select all that apply.




a. Use the constructor method for the controller


b. Use the $Action.View method in the Visualforce page


c. Use the tag in the Visualforce page


d. Create a new PageReference object with the Id

Answer: A,D




We can use an Apex method to obtain the ID from the page URL. Usually, we use a constructor to call it because every time the page loads, the constructor is called first.

10. A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?




a. By adding a second standard controller to the page for the parent record


b. By using a roll-up summary field on the child record to include data from the parent record


c. By using SOQL on the Visualforce page to query for data from the parent record


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

Answer: D




You can use related merged fields to obtain the data from the parent record. The relative fields are prepended to __r .

11. A developer needs to provide a Visualforce page that lets users enter product-specific details during a sales cycle. How can this be accomplished? Select all that apply.




a. Download a Managed Package from the AppExchange that provides a custom Visualforce page to modify


b. Copy the standard page and then make a new Visualforce page for Product data entry


c. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify


d. Create a new Visualforce page and an Apex controller to provide Product data entry

Answer: C,D




You can modify the custom Visualforce pages in unmanaged packages; the code in Managed Packages cannot be modified. Alternatively, you can also create a customized Visualforce page with an Apex controller to provide the required input fields.

12. What is the preferred way to reference web content such as images, stylesheets, JavaScript, and other libraries that is used in Visualforce pages?




a. Uploading the content as a Static Resource


b. Accessing the content from a third-party CDN


c. Uploading the content in the Documents tab d. Accessing the content from Chatter Files

Answer: A




It is advisable to upload all the images, Stylesheets, and JavaScript files as Static resources because that enables the files to load faster.

13. The Review__c object has a lookup relationship with the Job_Application__c object. The Job_Application__c object has a master-detail relationship with the Position__c object. The relationship field names are based on the auto-populated defaults. What is the recommended way to display field data from the related Review__c records on a Visualforce page for a single Position__c record?




a. Utilize the Standard Controller for Position__c and expression syntax in the Page to display related Review__c data through the Job_Application__c object


b. Utilize the Standard Controller for Position__c and cross-object Formula Fields on the Job_Application__c object to display Review__c data


c. Utilize the Standard Controller for Position__c and cross-object Formula Fields on the Review__c object to display Review__c data


d. Utilize the Standard Controller for Position__c and a Controller Extension to query for Review__c data

Answer: D



Standard controllers have limited functionalities. To fetch records of grandchildren, SOQL query needs to be used in a controller extension.

14. Which of these statements are true about the "view state" inspector? Select all that apply.




a. Shows components contributing to view state


b. Must be enabled on a user profile


c. Is displayed only when using


d. Is controlled by the Role Hierarchy

Answer: A,B,C




The "view state" inspector displays components contributing to it only when the tag is used. It must be enabled on a user profile.

15. What type of a programming language is Apex? Select all that apply.




a. Object-oriented


b. On-Demand


c. Water-Fall


d. Declarative-Specific

Answer: A,B




Just like Java, Apex is also an object oriented programming language. With its Cloud compatibility, it has now become an on-demand programming language.

16. A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for this object. What happens when a user updates the record?




a. No changes are made to the data.


b. The Workflow Rule is fired more than once.


c. Both the Apex Trigger and Workflow Rule are fired only once.


d. The Apex Trigger is fired more than once.

Answer: D





17. A developer needs to automatically populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the record. Which type of Trigger would the developer create? Select all that apply.




a. Before insert


b. After update


c. After insert


d. Before update

Answer : A,D





18. A developer uses a before insert trigger on the Lead object to fetch Territoy__c object, where the Territory__c. PostalCode__c matches the Lead.PostalCode.




The code fails when the developer uses the Apex Data Loader to insert 10000 Lead records> The developer has the following code block:




01 for(Lead l : Trigger.new){


02 if(l.PostalCode != null){


03 List terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c =:l.PostalCode;] if(terrList.size() > 0){ l.Territory__c = terrList[0].Id; } } }




Which line of code is causing the code block to fail?


a. 05: The Lead in a "before insert" trigger cannot be updated.


b. 02: A NullPointer exception is thrown if PostalCode is null.


c. 01: Trigger.new is not valid in a "before insert" Trigger.


d. 03: A SOQL query is located inside the "for" loop code.

Answer : D




The code fails because a SOQL query is located inside the "for" loop and SOQL Query Governor Limit has been hit.



19. In what order does Salesforce execute events while saving a record?




a. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit




b. Validation Rules; Before triggers; After triggers Workflow Rules Assignment Rules; Commit




c. Before Triggers; Validation Rules; After triggers; Workflow rules; Assignment Rules; Commit




d. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

Answer: A





20. What is the result when a Visualforce page calls an Apex controller, which in turn calls another Apex class, causing the code to hit a Governor Limit?




a. All changes up to the error are saved.


b. All changes before a save point are saved.


c. All changes are saved in the first Apex class.


d. All changes up to the error are rolled back.

Answer: D




Apex transactions are automatically rolled back if they are not successful.

21. When would a developer use a custom controller instead of a controller extension? Select all that apply.




a. When a Visualforce page needs to replace the functionality of a standard controller


b. When a Visualforce page needs to add new actions to a standard controller


c. When a Visualforce page does not reference a single primary object


d. When a Visualforce page should not enforce permissions or field-level security

Answer: A,C




Use custom controllers when you don't require the standard functionalities of the object or if the page references more than one primary object.

22. What is the value of x after the code segment executes?




String x = 'A';


Integer I = 10;


if (I < 15){


I = 15;


x = 'B';


} else if ( I < 20) {


x = 'C';


} else { x = 'D'; }




a. D


b. A


c. B


d. C

Answer: C




Since the first "if" condition was satisfied, the value of x is "B".



23. In a single record, a user selects multiple values from a multi-select pick list. How are the selected values represented in Apex?




a. As a String with each value separated by a comma


b. As a Set with each value as an element in the set


c. As a List with each value as an element in the list


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

Answer: D




The multiple options selected in the picklist appear as a String with each value separated by a semicolon.

24. Which of these is a good practice for a developer to follow when writing a trigger? Select all that apply.




a. Using @future methods to perform DML operations


b. Using the Map data structure to hold query results by ID


c. Using the Set data structure to ensure distinct records


d. Using synchronous callouts to call external systems

Answer: B,C




One of the best practices for Triggers is to bulkify the code. Set and map data structures are critical for successful coding of bulk triggers.

25. How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?




a. By using the IsInsertable() method


b. By using the IsCreatable() method


c. By using the hasAccess() method


d. By using the canCreate() method

Answer: B




isCreatable is used to check if a user has access to create records for an object.

26. Which of these is an accurate statement about variable scope? Select all that apply.




a. Parallel blocks can use the same variable name.


b. A variable can be defined at any point in a block.


c. Sub-blocks cannot reuse the variable name of a parent block.


d. Sub-blocks can reuse the variable name of a parent block if its value is null.


d. A static variable can restrict the scope to the current block if its value is null.

Answer: A,B,C






A variable can be defined at any point in a block. Parallel blocks can use the same variable name. However, sub-blocks cannot reuse the variable name of a parent block.

27. Which code block returns the ListView of an Account object using the following Debug statement? system.debug(controller.getListViewOptions());




a. ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator(SELECT Id FROM Account LIMIT 10));




b. ApexPages.StandardController controller = new ApexPages.StandardController([SELECT Id FROM Account LIMIT 1]);




c. ApexPages.StandardController controller = new ApexPages.StandardController(Database.getQueryLocator(SELECT Id FROM Account LIMIT 10));



d. ApexPages.StandardSetController controller = new ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]);

Answer: A




One of the methods of the StandardSetController class is getListViewOptions.

28. A developer runs the following anonymous code block:


List acc = [SELECT Id FROM Account LIMIT 10;]; Delete acc;


Database.emptyRecycleBin(acc); system.debug(Limits.getDMLStatements() + ', '+Limits.getLimitsDMLStatements());


What is the result?



a. 2, 150

b. 150, 2


c. 11, 150


d. 150, 11



Answer: A




getDMLStatements method shows you the number of DML calls that have been used so far.




getLimitsDMLStatements shows you the total number calls that can be made.

29. What is an accurate construction for a custom controller named ''MyController''?




a. Public MyController() {account = new Account();}




b. Public MyController(SObject obj) {account = new (Account) obj;}




c. Public MyController(List objects){accounts = (List)objects;}




d. Public MyController(ApexPages.StandardController stdController){account = (Account)stdController.getRecord():}

Answer: A




Custom controllers don't have a parameterized constructor.

30. Which of the following is a valid Apex statement?




a. Private static constant Double rate = 7.75;




b. Account() acctList = new List{new Account()};




c. Integer w, x, y, = 123, x = ÔabcÕ;




d. Map conMap = [SELECT Name FROM Contact];

Answer: B




This is the correct syntax.

31. What must the controller for a Visualforce page utilize to override the standard Opportunity view button?




a. The Opportunity StandardController for pre-built functionality




b. The StandardSetController to support related lists for pagination




c. A constructor that initializes a private Opportunity variable




d. A callback constructor to reference the StandardController

Answer: A




We can override the standard functionality of the standard buttons through Visualforce pages which use the same object's standard controller.

32. A person who does not have "View Encrypted Data" permission will see the field with masked characters. Assuming the field is in the page layout, what happens if he tries to edit the value by clicking on the Edit button?




a. The field will not appear in the edit layout.




b. The user will see only masked characters, but can enter a new value and save it.




c. It will throw an error on changing that field and saving it.




d. He can see the original value and he can save the record.

Answer: B




The user will see only masked characters, but can enter a new value and save it.

33. A Position is a custom object containing details of each position.




A Candidate contains the details of each candidate such as skills.




When users view the Position records, they should also be able to see all those candidates who match the skills required for the post.




A position record need not have details of candidates and a candidate record can also be kept blank. A position can be applied by multiple candidates, while a candidate can also apply for multiple positions. What can be done to achieve this?




a. Create a master-child relationship between them




b. Create a junction object to store both the values




c. Create a lookup relationship of candidate on position




d. Create a Visualforce page

Answer: B




To meet the specified requirement, the Position and Candidate objects need to be linked through a "many to many" relationship. In Salesforce, this is accomplished by creating a junction object.

34. A custom object has an organization-wide default setting of "Private" with Grant Access Using Hierarchies turned off. Which users can select the Sharing button on records for that object?




a. Only the record owner and a user with the System Administrator profile




b. The record owner, a user with the System Administrator profile, and a user shared to the record




c. The record owner, a user shared to the record, any user above the record owner in the role hierarchy, and a user with the System Administrator profile




d. The record owner, a user above the record owner in the role hierarchy, and a user with the System

Answer: B




Since the Grant Access using Hierarchies is un-checked, no user above the owner of the record in role hierarchy will be able to see the record.




Users below the owner of the record in the role hierarchy are not allowed to see it anyway.




OWD is private, hence only owners have the access to see the record.

35. Universal Containers tracks reviews as a custom object in a recruiting application.




The interview score is tracked on each review record and should have a numerical value, so that hiring managers can calculate scores.




The scores should be restricted to integer values 1 through 5 and displayed as a set of radio buttons.




How can a developer meet this requirement?




a. Create the Interview score field as a picklist, displayed as a radio button on page layout




b. Create a formula field that displays the interview score as a set of radio buttons




c. Create the interview score field with a data type of radio button




d. Create a Visualforce page to display the interview score as a set of radio buttons

Answer: D




Radio buttons cannot be created in Salesforce using standard functionality. A Visualforce page is needed to show radio buttons on the page.



36. Universal Containers wants to create a custom order management application that allows users to enter order details such as the Product Name and Product Code.




The application should be able to check if these values are consistent with the valid Product Name and Product Code combinations set up in a custom object.




Which feature would a developer use to accomplish this?




a. A validation rule with the REGEX function


b. A formula field with the VALIDATE function


c. A validation rule with the VLOOKUP function


d. A formula field with the IF function

Answer: C




VLOOKUP can be used to validate data with the records in a custom object.

37. A customer wants to add a custom validation to the "contact save" process.




Before a contact is created, the customer wants to include the validation, which checks if the associated account is active.




This validation should be active for all UI as well as integration requests. Which design accomplishes this goal?




a. A custom Web service




b. A "before insert" Trigger




c. A custom Visualforce controller




d. A client-side S-control

Answer: B




Custom validations are written as part of the logic in a "before insert" Trigger.

38. How would a developer use Schema Builder to delete a custom field from an 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 automatically removed




b. Remove all the references in the code and then the field will be automatically removed from Schema Builder




c. Mark the field for deletion in Schema Builder and then delete it from the declarative UI




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

Answer: D




Schema Builder is a good tool to view and make corrections in your database. But to delete a custom field, you need to first remove all the references of the field.

39. Where can custom roll-up summary fields be created using Standard Object relationships? Select all that apply.




a. On Opportunity using Opportunity Product records




b. On Account using Case records




c. On Campaign using Campaign Member records




d. On Account using Opportunity records

Answer: A,C,D

40. A Developer wants to create a custom object to track Customer Invoices.




How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?




a. The Account should have a Lookup relationship to the Invoice.




b. The Account should have a Master-Detail relationship to the Invoice.




c. The Invoice should have a Master-Detail relationship to the Account.




d. The Invoice should have a Lookup relationship to the Account.

Answer: C




In a master-detail relationship, the child object inherits all the properties of the master object.



41. A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting.




Once an application is submitted for a job posting, that application cannot be modified to be resubmitted for another job position.




The candidate can apply for a different job posting only by submitting a new application.




What can an administrator do to associate an application with each job posting in the schema for the organization?




a. Create a master-detail relationship in the Application custom object to the Job Postings custom object




b. Create a master-detail relationship in the Job Postings custom object to the Applications customer object




c. Create a lookup relationship on both objects to a junction object called Job Posting Applications




d. Create a lookup relationship in the Applications customer object to the Job Postings custom object



Answer: A




A child record once linked to a master record using a master-detail relationship cannot be re-parented unless "re-parenting allowed" checkbox is checked on the field definition level.

42. An org has different Apex Classes that provide Account related functionality. After a new validation rule is added to the Account object, many of the test methods fail. What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? Select all that apply.




a. Create a method that performs a callout for a valid Account record, and call this method from within test methods.




b. Create a method that creates valid Account records, and call this method from within test methods.




c. Create a method that queries for valid Account records, and call this method from within test methods.




d. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.

Answer: B




Account data passed to the test class should be modified according to the modified validation.



43. 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 would a developer use to relate the Account to the Warehouse?




a. Parent-Child


b. Master-Detail


c. One-to-Many


d. Lookup

Answer: D




With a lookup relationship, child records can have distinct owners. With Master-Detail relationship, parent records become the owner of the child record. Since both Account and Warehouse are independent entities, there will be a lookup relationship between them.



44. A developer is creating an application to track engines and their components. An individual component can be used in different types of engines. What data model should be used to track the data and to prevent orphan records?




a. Create a junction object to relate many engines to many parts through a master-detail relationship




b. Create a lookup relationship to represent how each part relates to the parent engine object




c. Create a master-detail relationship to represent the one-to-many model of engines to parts




d.Create a junction object to relate many engines to many parts through a lookup relationship

Answer: A




Since an engine can have multiple parts and a component can be a part of multiple engines, a Junction object needs to be created.



45. Which of these statements is true for encrypted custom fields? Select all that apply.




a. Encrypted fields can be included in Search results.




b. Encrypted fields can be included in report results.




c. Encrypted fields are not available in filters for list views, reports, and Roll-up summary fields.




d. Encrypted fields are not available for validation rules or Apex scripts.

Answer: A,B,C

46. A developer created an Apex Trigger using the Developer Console and now wants to debug the code. How can the developer accomplish this in the Developer Console?




a. Select the Override Log Triggers checkbox for the Trigger




b. Open the Progress tab in the Developer Console




c. Open the Logs tab in the Developer Console




d. Add the user name in the Log Inspector

Answer: A




Select the Override Log Triggers checkbox for the Trigger to get the Debug Logs out.

47. What is the minimum log level needed to see user-generated debug statements?




a. INFO


b. FINE


c. WARN


d. DEBUG

Answer: D




You need to set the Debug Log level to least DEBUG to be able to view user-generated debug statements.

48. Which of the following can be done using the Force.com platform? Select all that apply.




a. Data-warehousing


b. Applications with clicks and not code


c. Applications can be upgraded without loss of customization


d. Code version control system

Answer: C,D






The Force.com platform provides a code version control system. It also allows you to upgrade applications without losing customizations.



49. Which of the following refers to the data model of Salesforce? Select all that apply.




a. Force.com API


b. Force.com metadata API


c. Sandbox


d. Force.com IDE

Answer: B,D




Force.com Metadata API and Force.com IDE provide access through the metadata components.

50. Which one of the following is not possible to view in the Debug Logs?




a. Workflow formula evaluation results


b. Assignment rules


c. Formula field calculations


d. Validation rules


e. Resources used by Apex Script

Answer: A,C,E




Debug Logs record details for Apex, Visualforce pages, Callouts, and other entities but do not capture certain items such as JavaScript and formula fields.

51. By using which tool can the developer change the data model of a Salesforce organization?




a Data loader


b. Administrator setup


c. Cloud based data wizard


d. Other

Answer: B




Administrator Setup allows you to make changes to Salesforce.

52. Dashboard refresh can be monitored using:




a. Apex jobs


b. Scheduled jobs


c. Dashboard jobs


d. Report jobs

Answer: B




Users with the View Setup and Configuration permission can view all the dashboards scheduled to refresh for your organization on the All Scheduled Jobs page. To view the All Scheduled Jobs page, go to Setup, enter Scheduled Jobs in the Quick Find box, and select Scheduled Jobs.



53. Which of the following will you use for browsing objects and fields in the Force.com IDE? Select all that apply.




a. Force.com Projects


b. Schema Explorer


c. Development Work Area


d. Debug View

Answer: A,B




When using the Force.com IDE, we have to create a project, import the database, and build schema in the IDE itself. Schema Explorer can also be used to check the schema of the object.

54. Each setSavepoint() and rollback statement counts against the total number of DML statements.




a. 1


b. 0

Answer: A




These actions add up to the Governor Limits. So you should be careful while using them.

55. What should a developer working in a sandbox use to exercise a new test class before the developer deploys that test class to production? Select all that apply.




a. The Apex Test Execution page in Salesforce Setup


b. The Run Tests page in Salesforce Setup


c. The Test menu in the Developer Console


d. The REST API and ApexTestRun method

Answer: A,C




These are the different ways in which Test Classes can be executed in Salesforce.

56. 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 methods


c. Add the @TestVisible attribute to the Apex methods


d. Add the SeeAllData attribute to the test class

Answer: C




Use @TestVisible annotation to make the private methods or variables visible to test classes.

57. What is the proper process for an Apex Unit Test?




a. Query for test data using SeeAllData=true. Call the method being tested. Verify that the results are correct.



b. Query for test data using SeeAllData=truExecute runAllTests(). Verify that the results are correct.




c. Create data for testing. Execute runAllTest(). Verify that the results are correct.




d.Create data for testing. Call the method being tested. Verify that the results are correct.

Answer: D




This is the correct process for testing any functionality in Apex.



58. Which of the following scenarios is invalid for execution by unit tests?




a. Executing methods for negative test scenarios




b. Loading the standard Pricebook ID using a system method




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




d. Executing methods as different users

Answer: C




Taking the test data from the user input takes up a lot of time.

59. Where would you find identical Force.com IDs?




a. Production and Full Copy Sandbox only


b. Production and Dev Sandbox only


c. Two developer orgs


d. Two Sandbox orgs

Answer: A




As a Full Copy Sandbox is a replica of the production org, they can have identical Salesforce record IDs.

60. What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?




a. Create a process with Process Builder


b. Create a workflow rule with field update


c. Create a lightning component


d. Create a Visualforce page



Answer: A




Process Builder can be used to update child records when parent records are updated.

In the Lightning Component framework, where is client-side controller logic contained?Select one of the following:




a. JavaScript


b. Visualforce


c. Apex


d. HTML

Amswer: A

Which declarative method helps ensure quality data? Choose 3 answersSelect one or more of the following:




a. Exception handling


b. Lookup filters


c. Validation rules


d. Workflow alerts


e. Page layouts

Answer: B,C,E

What is a capability of a StandardSetController?




Choose 2 answersSelect one or more of the following:




a. It allows pages to perform pagination with large record sets


b. It allows pages to perform mass updates of records


c. It enforces field-level security when reading large record sets


d. It extends the functionality of a standard or custom controller

Answer: A,B

Which type of code represents the Controller in the MVC architecture on the Force.com platform? Choose 2 answers"Select one or more of the following:




a. A static resource that contains CSS and images


b. StandardController system methods that are referenced by Visualforce


c. Custom Apex and JavaScript code that is used to manipulate data


d. JavaScript that is used to make a menu item display itself

Answer: B,C

What is a valid source and destination pair that can send or receive change sets? Choose 2 answersSelect one or more of the following:




a. Developer edition to sandbox


b. Developer edition to production


c. Sandbox to sandbox


d. Sandbox to production

Answer: C,D

How would a developer change the field type of a custom field on account object from a string to an integer?Select one of the following:




a. Make the change in the declarative UI, then update the field type to an integer field in-the apex code.




b. Make the change in the developer console, and then the change will automatically be reflected in the apex.




c. Make the change in the declarative UI, and then the change will automatically be reflected in the apex code.




d. Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.

Answer: D

Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?Select one of the following:




a. The Lookup Relationship cannot be marked as required on the page layout for the Custom Object


b. The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object


c. The Custom Object inherits security from the referenced Standard Object


d. The Custom Object will be deleted when the referenced Standard Object is deleted

Answer: B

A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?Select one of the following:




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


b. By using a roll-up formula field on the child record to include data from the parent record


c. By adding a second standard controller to the page for the parent record


d. By using SOQL on the Visualforce page to query for data from the parent record

Answer: A

Where can debug log filter settings be set? Choose 2 answersSelect one or more of the following:




a. The Log Filters tab on a class or trigger detail page


b. On the monitored user's name


c. The Filters link by the monitored user's name within the Web UI


d. The Show More link on the debug log's record

Answer: A,B

A developer has the following query:
contact contactObj=[SELECT Id, Firstname, LastName email FROM contact WHERE Lastname = ‘Smith’]. What does the query return if there is no Contact with the last name 'Smith'?Select one of the following:




a. A Contact initialized to null


b. An empty List of Contacts


c. An error that no rows are found


d. A Contact with empty values

Answer: C

The Sales Management team hires a new intern. The new 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.Select one of the following:




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 trigger on the Account object that queries the Close Date of the most recent Opportunities


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

Answer: D

What determines whether a user can create a new record using a specific record type?Select one of the following:




a. Profile


b. Field level security


c. Sharing


d. Page layout

Answer: A

How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?Select one of the following:




a. By using the isInsertable() method


b. By using the isCreatable() method


c. By using the canCreate() method


d. By using the hasAccess() method

Answer: B

A developer creates a custom controller and custom Visualforce page by using the following. What does the user see when accessing the custom page?




Controller public class MyController {




public String myString;


public String getMyString(){


return 'getMyString'; }



public String getStringMethod1(){


return myString; }




public String getStringMethod2(){


if (myString == null)


myString = 'Method2';


return myString;


}


}




Page:



{!myString} {!StringMethod1} {!StringMethod2} {!myString}





Select one of the following:


a. getMyString Method2 getMyString


b. Method2, getMyString


c. Method2

Answer: A

Universal Container want to store an area code and wants to be able to search for it in searches. Which are possible fields to store the data (choose 2):Select one or more of the following:




a. Email


b. Multi Picklist


c. Text


d. Phone

Answer: C,D

Which action can a developer perform in a before update trigger? Choose 2 answers Select one or more of the following:




a. Update the original object using an update DML operation


b. Change field values using the Trigger.new context variable


c. Delete the original object using a delete DML operation


d. Display a custom error message in the application interface

Answer: B,D

What is an accurate statement about variable scope? Choose 3 answers . Select one or more of the following:




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 value is null


e. Sub-blocks can reuse a parent block's variable name if its value is null

Answer: A,B,C

What is a capability of the Force.com IDE? Choose 2 answers. Select one or more of the following:




a. Run Apex tests


b. Roll back deployments


c. Download debug logs


d. Edit metadata components

Answer: A,D

A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits? Select one of the following:




a. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded




b. By using Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of DML statements is exceeded




c. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded




d. By using ApexMessage.Message() to display an error message after the number of DML statements is exceeded

Answer: A

Where would a developer build a managed package Select one of the following:




a. Partial Copy Sandbox


b. Developer Sandbox


c. Unlimited Edition


d. Developer Edition

Answer: D

A developer runs the following anonymous code block. What is the result?:




List acc = [SELECT Id FROM Account LIMIT 10];


Delete acc;


Database.emptyRecycleBin (acc);


system.debug(Limits.getDMLStatements()+”;”+Limits.getLimitDMLStatements());




Select one of the following:




a. 2;150


b. 150; 2


c. 150;11


d. 11; 150

Answer: A

What is a capability of formula fields? Choose 3 answers. Select one or more of the following:




a. Return and display a field value from another object using the VLOOKUP function




b. Determine which of the three different images to display using the IF function




c. Generate a link using the HYPERLINK function to a specific record in a legacy system




d. Display the previous value for a field using the PRIORVALUE function




e. Determine if a datetime field has passed using the NOW function

Answer: B,C,E

Where can custom roll-up summary fields be created using Standard Object relationships? Choose 3 answers. Select one or more of the following:




a. On Opportunity using Opportunity Product records


b. On Account using Case records


c. On Quote using Order records


d. On Account using Opportunity records


e. On Campaign using Campaign Member records

Answer: A,D,E

What is a valid way of loading external Javascript files into a Visualforce page? Choose 2 answers. Select one or more of the following:




a. Using an tag


b. Using an tag


c. Using a


d. using a tag


Answer: B,C

A developer wants to display all of the available record types for a Case object.




The developer also wants to display the picklist values for the Case.Status field.




The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? Choose 2 answers. Select one or more of the following:




a. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues()


b. Use SOQL to query Case records in the org to get all the RecordType values available for Case


c. Use Schema.RecordTypeInfo returned by Case.SObjectType.getDescribe().getRecordTypeInfos()


d. Use SOQL to query Case records in the org to get all values for the Status picklist field

Answer: A,C

A developer needs to create records for the object Property__c. The developer creates the following code block. Which line of code would the developer insert at line 03 to ensure that at least some records are created?




01 List propertiesToCreate = helperClass.createProperties();


02 try {


03


04 } catch (Exception exp) {


05 //Exception handling


06 }




Select one of the following:




a. Database.insert(propertiesToCreate, false);


b. Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);


c. Insert PropertiesToCreate;



Answer: A

On which object can an administrator create a roll-up summary field?


Select one of the following:




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


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


c. Any object that is on the child side of a lookup relationship


d. Any object that is on the parent side of a lookup relationship

Answer: B

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?Select one of the following:




a. Create a formula field


b. Create a required Visualforce component


c. Create a validation rule


d. Create a required comments field

Answer: C

A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?Select one of the following:




a. In a Standard Extension


b. In a Standard Controller


c. In a Custom Controller


d. In a Controller Extension

Answer: D

A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? Choose 2 answers.Select one or more of the following:




a. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify


b. Copy the standard page and then make a new Visualforce page for Product data entry


c. Download a Managed Package from the AppExchange that provides a custom Visualforce page to modify


d. Create a new Visualforce Page and an Apex controller to provide Product data entry

Answer: A,D

Universal containers wants to rollout new product bundles with several pricing options. Pricing options include product-price bundles, account specific pricing and more. Which product satisfies the needs: (choose 1)Select one of the following:




a. Workflow on Opportunity/Opportunity Product


b. Lightning process builder


c. Custom Appexchange-app for product-pricing


d. Formula fields on Opportunity/Opportunity Product

Answer: C

Universal containers has a custom object that has a N:M relationship with opportunityLineItem carrying price and amount information. In order to compute total amounts and total prices per Opportunity using Rollup summary fields, what field type will you use?Select one of the following:




a. Crossobject


b. Junction


c. Master-Detail


d. Lookup

Answer: C

Which statement should a developer avoid using inside procedural loops? Choose 2 answers. Select one or more of the following:




a. update contactList;


b. if(o.accountid == a.id)


c. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime());


d. List = [select id, salutation, firstname, email from Contact where accountId = :a.Id];

Answer: A,D

Which scenario is invalid for execution by unit tests? Select one of the following:




a. Loading the standard Pricebook ID using a system method


b. Executing methods for negative test scenarios


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


d. Executing methods as different users

Answer: A

Describe the ramifications of field updates and potential for recursion for the following scenario: If a field update for Rule1 triggers Rule2, and a field update for Rule2 triggers Rule1.Select one of the following:




a. When the second trigger is saved an Imminent Loop Error message will be displayed and the workflow rule update will not save.




b. The updates create a loop and the org be blocked until the admin resolves the issue




c. Loop is allowed to run 25 times within one hour. If it does not end on its own the process will be stopped by R&D.




d. The updates create a loop and the org limits for workflow time triggers per hour will likely be violated.

Answer: D

In which order does Salesforce execute events upon saving a record?Select one of the following:




a. Validation Rules, Before Triggers, After Triggers, Workflow, Assignment Rules, Commit




b. Before Triggers, Validation Rules, After Triggers, Workflow, Assignment Rules, Commit




c. Validation Rules, Before Triggers, After Triggers, Assignment Rules, Workflow, Commit




d. Before Triggers, Validation Rules, After Triggers, Assignment Rules, Workflow, Commit

Answer: D

Universal containers want an org for development which can be refreshed in every 5 days with all the configuration and some data. What org do you choose? Select one of the following:




a. Partial copy sandbox


b. Full Sandbox


c. Developer Sandbox


d. Developer Pro Sandbox

Answer: A

Universal Container is using assignment rules to distribute cases to regional teams. Which of the following are true? Select one of the following:




a. A workflow field update can be used instead


b. It is possible to have multiple active assignment rules


c. Cases may be assigned to queues (if configured)


d. Cases may be assigned to public groups (if configured)

Answer: C

Which statements are true regarding Roll-Up Summary fields? (select all that apply). Select one or more of the following:




a. Validation errors can display when saving either the detail or master record.




b. Once created, you cannot change the detail object selected or delete any field referenced in your roll-up summary definition.




c. Automatically derived fields, such as current date or current user, are allowed in a roll-up summary field.




d. Because roll-up summary fields are not displayed on edit pages, you can use them in validation rules but not as the error location for you validation.




e. Advanced currency management has no affect on roll-up summary fields.

Answer: A,B,D

In the Lightning Component framework, which resource can be used to fire events? Choose 2 answers.Select one or more of the following:




a. Third-party web service code


b. Visualforce controller actions


c. Third-party Javascript code


d. Javascript controller actions

Answer: C,D

A developer executes following code in Console. What will happen?




list flist = new list();


for(integer i=1;i<=200 ;i++){


flist.add(new Account(name='Test Acc'+i));


}


insert flist;




list Llist = new list();


for(integer i=201;i<=20000 ;i++){


Llist.add(new Account(name='Test Acc'+i));


} insert Llist ;




Select one of the following:




a. Insert 200 only


b. Error will occur


c. Records inserted


d. Insert all records

Answer: B

Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement? Choose 2 answers.Select one or more of the following:




a. After insert


b. Before update


c. After update


d. Before insert

Answer: B,D

When loading data into an organization, what can a developer do to match records to update existing fields?Select one or more of the following:




a. Match an auto-generated Number 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 external Id Text field to a column in the imported file

Answer: B,D

Universal Container installs an unmanaged package. Which of the following are true: (choose 2):Select one or more of the following:




a. Unmanaged packages don’t have a version number


b. Unmanaged packages can be upgraded


c. Unmanaged packages have a namespace prefix


d. Components of unmanaged packages can be edited


e. Tests are executed during deployment

Answer: D,E

A company wants a recruiting app that models candidates and interviews; displays the total number of interviews for each candidate record; and defines security on interview records that is independent from the security on candidate records. What would a developer do to accomplish this task. Choose 2 answers.




a. Create a lookup relationship between the Candidate and Interview objects


b. Create a roll-up summary field on the Candidate object that counts Interview records


c. Create a master-detail relationship between the Candidate and Interview objects


d. Create a trigger on the Interview object that updates a field on the Candidate object

Answer: A,D

What is the benefit of Lightning Component: Select one of the following:




a. It uses Client - Side Apex controller for logic


b. It uses MVC architecture


c. It uses Event - driven architecture



Answer: C

Which user can edit a record after it has been locked for approval? Choose 2 answers.




a. A user who is assigned as the current approver


b. Any user with a higher role in the hierarchy


c. Any user who approved the record previously


d. An administrator

Answer: A,D

What is valid in the where clause of a SOQL query? Choose 2 answers.




a. An aggregate function.


b. An alias notation.


c. A geolocation field.


d. An encrypted field.

Answer: B,C

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?Select one of the following:




a. Add the SeeAllData attribute to the test methods


b. Add the TestVisible attribute to the Apex methods


c. Add the SeeAllData attribute to the test class


d. Add the TestVisible attribute to the Apex class

Answer: B

What happens when a workflow is re-evaluated? Pick 3




a. Previous Workflows


b. Cross-object sharing rules


c. Validation


d. Other Workflow types

Answer: A,B,D

What is the value of x after the code segment executes?


String x = 'A';


Integer i = 10;


if (i<15){


i=15;


x='B';


}else if (i<20){


x='C';


}else {x='D';}




Select one of the following:




a. B


b. C


c. D


d. A

Answer: A

What is an accurate constructor for a custom controller named 'MyController'?Select one of the following:




a. public MyController () {


account = new Account()


}




b. public MyController (List objects) {


accounts = (List )objects;


}




c. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }




d. public MyController (SObject obj) { account = (Account) obj }PreviousCheck answerNext

Answer: A

Which code block returns the ListView of an Account object using the following debug statement?Select one of the following:




a. System.debug (controller.getListViewOptions());""";"ApexPages.StandardSetController controller = new ApexPages.StandardSetController (Database.getQueryLocator('select Id from Account Limit 1'));




b. System.debug (controller.getListViewOptions());""";"ApexPages.StandardController controller = new ApexPages.StandardController (Database.getQueryLocator('select Id from Account Limit 1'));




c. System.debug (controller.getListViewOptions());""";"ApexPages.StandardSetController controller = new ApexPages.StandardSetController ([SELECT Id FROM Account LIMIT 1]);




d. System.debug (controller.getListViewOptions());""";"ApexPages.StandardController controller = new ApexPages.StandardController ([SELECT Id FROM Account LIMIT 1]);

Answer: A

Person Accounts... (choose two):




a. Have the same icon as Business accounts


b. Are enabled by default


c. Are enabled via feature license


d. Do use space in both account and contacts table


e. Can only be merged with other person accounts

Answer: D,E

You want to use an External Data Object Table from Heroku carrying Product Category information. The data need to be included in Salesforce and searchable. What do you have to do before you can use the connection (choose two):




a. URL / choose the URL (?)


b. Choose “include as index field”


c. Press “validate and sync”


d. Choose “include in Salesforce searches” option

Answer: C,D

Which data type or collection of data types can SOQL statements populate or evaluate to? Choose 3 answers




a. A Boolean


b. A list of SObjects


c. A string


d. A single SObject


e. An integer

Answer: B,D,E

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?Select one of the following:




a. By using Documents


b. By using Static Resources


c. By using HttpCalloutMocks


d. By using WebServiceTests

Answer: B

What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?Select one of the following:




a. HTTP Callouts


b. Apex triggers


c. Anonymous Blocks


d. Apex controllers

Answer: C

Which type of information is provided by the Checkpoints tab in the Developer Console? Choose 2 answers




a. Namespace


b. Debug Statement


c. Time


d. Exception

Answer: A,C

Universal Container want to store an area code and wants to be able to search for it in applications (apex). Which are possible fields to store the data (choose 2):




a. Number


b. Text


c. Phone


d. Email


e. Multi Picklist

Answer: A,B

A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current Visualforce page?Select one of the following:




a. {!$Setup.Url_Settings__c.Instance[Profile.Id].URL__c}




b. {!$Setup.Url_Settings__c.[Profile.Id].URL__c}




c. {!$Setup.Url_Settings__c.[$Profile.Id].URL__c}




d.{!$Setup.Url_Settings__c.URL__c}

Answer: D

Universal containers has included its orders as an external data object into Salesforce. You want to create a relationship between Accounts and the Orders object (one-to-many relationship) leveraging a key field for account which is on both external object and Account. Which relationship do you create:Select one of the following:




a. Indirect Lookup Relationship


b. Lookup Relationship


c. Master Detail Relationship


d. External Lookup Relationship


e. Hierarchical Relationship

Answer: A

A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?Select one of the following:




a. 5


b. 1


c. 3


d. 7

Answer: B

Which is true about social accounts?Select one of the following:




a. You can use social accounts data even when you are not logged into the social account.




b. You can use social accounts to import data into salesforce




c. You need a personal social account in order to see social account data




d. Connection to social account is established thrugh a company wide “named principal”

Answer: C

When the value of a field in an account record is updated, which method will update the value of a custom field 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

Answer: C,D

Which components can be added to a lightning app on custom Object: (choose 3):




a. Custom lightning component


b. Object specific actions on the custom object


c. Standard Lightning component


d. isualforce


e. Global actions

Answer: A,C,E

A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? Choose 3 answers.




a. ApexPages.addErrorMessage()


b. A custom exception


c. A try/catch construct


d. Database.handleException()


e. addError()

Answer: B,C,E

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 a developer need to do to display the Task on the related Account record?Select one of the following:




a. Nothing. The Task cannot be related to an Account and a Contact.


b. Nothing. The Task is automatically displayed on the Account page.


c. Create a workflow rule to relate the Task to the Contact's Account


d. Create an account formula field that displays the the Task information

Answer: B

Which statement would a developer use when creating test data for products and pricebooks?


Select one of the following:




a. List objList = Test.loadData(Account.sObjectType 'myResource');




b. Id pricebookId = Test.getStandardPricebookId();




c. Pricebook pb = new Pricebook ();




d. IsTest(SeeAllData = false)

Answer: B

What is an important consideration when developing in a multi-tenant environment?Select one of the following:




a. Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances




b. Polyglot persistence provides support for a global multilingual user base in multiple orgs on multiple instance




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




d. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance

Answer: C

A developer has the following code:




try {


List nameList;


Account a;


String s = a.Name;


nameList.add (s);


} catch (ListException le) {


System.debug ('List Exception');


} catch (NullPointerException npe){


System.debug('Null Pointer Exception');


} catch (Exception e){


System.debug ('Generic Exception');


}




Select one of the following:




a. Null Pointer Exception


b. Generic Exception


c. List Exception


d. None

Answer: A

Field type conversion. Which of the following are true: (choose 2):




a. Data can be lost when converting from number to currency (assuming that field lengths are identical)




b. Data can be lost when converting from multi picklist to single picklist




c. Data can be lost when converting from autonumber to text




d. Information can be lost when converting from text area (rich) to text area (long)

Answer: B,D

Universal containers has a custom object “service” which has a lookup relationship to Account. Universal containers wants to enhance Salesforce1 with an action that allows account managers to enter a new service to an Account while looking at the account:Select one of the following:




a. Enter an object specific action to Account and put it in the Account Layout




B. Enter an object specific action to Service and put it in the Service Layout




C. Enter an object specific action to Account and put it in the Service Layout




D. Enter an object specific action to Service and put it in the Account Layout

Answer: A

What is a good practice for a developer to follow when writing a trigger? Choose 2 answers




a. Using the Set data structure to ensure distinct records




b. Using @future methods to perform DML operations




c. Using the Map data structure to hold query results by ID




d. Using synchronous callouts to call external systems

Answer: A,C

A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? Choose 2 answers:




a. Workbench Metadata Retrieval


b, Developer Console


c. Salesforce UI Apex Test Execution


d. ANT Migration Tool

Answer: B,C

Which use case requires a partial copy or full sandbox? Choose 3 answers.




a. Development Testing


b. Scalability Testing


c. Integration Testing


d. Batch Data Testing


e. Quality Assurance Testing

Answer: B,C,D

In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?Select one of the following:




a. As a Set with each element as an element in the set


b. As a string with each value separated with a comma


c. As a List with each element as an element in the list


d. As a string with each value separated with a semicolon

Answer: D

Developer need to verify that the account trigger is working fine without changing Org data. What should the developer do to test the Account trigger?Select one of the following:




a. Use the test menu on developer console to run all test classes for the account trigger.




b. Use New button on Account tab to create new record




c. Use force.com IDE




d. Use Execute Anonymous feature on developer console

Answer: A

Which Apex collection is used to ensure all values are unique?Select one of the following:




a. An Sobject


b. Enum


c. List


d. Set

Answer: D

What is the proper process for an Apex unit test?Select one of the following:




a. Create data for testing. Execute runAllTests(). Verify that the results are correct.




b. Query for test data using SeeAllData=true. Execute runAllTests(). Verify that the results are correct.




c. Create data for testing. Call the method being tested. Verify that the results are correct.




d. Query for test data using SeeAllData=true. Call the method being tested. Verify that the results are correct.

Answer: C

How can a developer avoid exceeding governor limits when using an Apex trigger? Choose 2 answers:




a. By using Maps to hold data from query results


b. By using the Database class to handle DML transactions


c. By using a helper class that can be invoked from multiple triggers


d. By performing DML transactions on lists of SObjects

Answer: A,D

What is the correct way to describe how Model-View-Controller (MVC) architecture is implemented on the Salesforce platform?Select one of the following:




a. Model: Standard and Custom Objects; View: Visualforce Pages; Controller: s-Controls




b. Model: Standard and Custom Objects; View: Visualforce Pages; Controller: Apex Code




c. Model: Schema Builder; View: List Views; Controller: Setup Console




d. Model: Apex Code; View: List Views; Controller: Setup Console

Answer: B

When can a developer use a custom Visualforce page in a Force.com application? Choose 2 answers:




a. To deploy components between two organizations


b. To create components for dashboards and layouts


c.To modify the page layout settings for a custom object


d. To generate a PDF document with application data

Answer: B,D

What is a benefit of a Lightining Component framework?Select one of the following:




a. Better performance for custom Salesforce1 Mobile apps


b. More centralized control via server-side logic


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


d. Better integration with Force.com sites

Answer: A

What can a lightning component contain in its resource bundle? Choose two answers:




a. CSS styles scoped to the component.


b. Build scripts for minification.


c. Custom Client-side rendering behavior.


d. Properties files with global settings.

Answer: A,C

Which statement about change set deployments is accurate? Choose 3 answers:




a. They require a deployment connection


b. They can be used to transfer Contact records


c. They can be used to deploy custom settings data


d. They use an all or none deployment model


e. They can be used only between related organizations

Answer: A,D,E