Dev I(401) Rt

242 Questions | Total Attempts: 709

SettingsSettingsSettings
Please wait...
Dev I(401) Rt

.


Questions and Answers
  • 1. 
    A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? (There are three correct answers.)
    • A. 

      A custom exception

    • B. 

      .addError()

    • C. 

      Database.handleException()

    • D. 

      A try/catch construct

    • E. 

      ApexPages.addErrorMessage()

  • 2. 
    In the Lightning Component framework, where is client-side controller logic contained?
    • A. 

      Apex

    • B. 

      Visualforce

    • C. 

      HTML

    • D. 

      JavaScript

  • 3. 
    What can you use to limit available picklist options? (Choose 1)
    • A. 

      Page Layouts

    • B. 

      Record Types

    • C. 

      Field Level Security

    • D. 

      Profiles

  • 4. 
    In a single record, a user selects multiple values from a multi-select picklist. 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 String with each value separated by a semicolon

    • D. 

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

  • 5. 
    Which statement would a developer use when creating test data for products and pricebooks?
    • A. 

      Id pricebookId = Test.getStandardPricebookId();

    • B. 

      Pricebook pb = new Pricebook();

    • C. 

      IsTest(SeeAllData = false);

    • D. 

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

  • 6. 
    Where would a developer build a managed package?
    • A. 

      Developer Sandbox

    • B. 

      Unlimited Edition

    • C. 

      Partial Copy Sandbox

    • D. 

      Developer Edition

  • 7. 
    Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)
    • A. 

      Namespace

    • B. 

      Time

    • C. 

      Exception

    • D. 

      Debug Statement

  • 8. 
    A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent?
    • A. 

      After Committing to database

    • B. 

      Before Trigger execution.

    • C. 

      After Trigger execution.

    • D. 

      Before Committing to database.

  • 9. 
    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 1'));

    • 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 1'));

    • D. 

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

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

    • B. 

      Create a Workflow rule on the Opportunity object that updates a field on the parent Account.

    • C. 

      Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field.

    • D. 

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

  • 11. 
    What is a benefit of the lightning component framework?
    • A. 

      Better integration with Force.com sites

    • B. 

      Better performance for custom Salesforce1 Mobile Apps

    • C. 

      More Centralized control via server-side logic

    • D. 

      More pre-built components to replicate the salesforce look and feel

  • 12. 
    What is an accurate constructor for a custom controller named "MyController"?
    • A. 

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

    • B. 

      Public MyController (sObject obj) { account = (Account) obj; }

    • C. 

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

    • D. 

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

  • 13. 
    What is a valid source and destination pair that can send or receive change sets? (Choose 2)
    • A. 

      Developer Edition to Sandbox

    • B. 

      Sandbox to Production

    • C. 

      Sandbox to Sandbox

    • D. 

      Developer Edition to Production

  • 14. 
    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.

  • 15. 
    What is an important consideration when developing in a multi-tenant environment?
    • A. 

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

    • B. 

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

    • C. 

      Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple instances.

    • D. 

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

  • 16. 
    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

  • 17. 
    A developer has the following query: Contact c = [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'?
    • A. 

      A contact initialized to null

    • B. 

      An error that no rows are found.

    • C. 

      An empty List of Contacts.

    • D. 

      A Contact with empty values.

  • 18. 
    What is a capability of the Developer Console?
    • A. 

      Execute Anonymous Apex code, Create/Edit code, view Debug Logs.

    • B. 

      Execute Anonymous Apex code, Run REST API, create/Edit code.

    • C. 

      Execute Anonymous Apex code, Create/Edit code, Deploy code changes.

    • D. 

      Execute Anonymous Apex code, Run REST API, deploy code changes.

  • 19. 
    What is an accurate statement about variable scope? (Choose 3)
    • 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 a parent block's variable name.

    • D. 

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

    • E. 

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

  • 20. 
    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 = true. Execute runAllTests(). Verify that the results are correct.

    • C. 

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

    • D. 

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

  • 21. 
    Where can the custom roll-up summary fields be created using Standard Object relationships (Choose 3)
    • A. 

        On Opportunity using Opportunity Product records.

    • B. 

      On Account using Case records.

    • C. 

      On Quote using Order records.

    • D. 

      On Campaign using Campaign Member records.

    • E. 

      On Account using Opportunity records

  • 22. 
    Which scenario 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.

  • 23. 
    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?
    • A. 

      In a Standard Extension.

    • B. 

      In a Standard Controller.

    • C. 

      In a Custom Controller.

    • D. 

      In a Controller Extension.

  • 24. 
    • 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

  • 25. 
    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

  • 26. 
    Which statement about change set deployments is accurate? (Choose 3)
    • A. 

      They use an all or none deployment model.

    • B. 

      They require a deployment connection.

    • C. 

      They ca be used to transfer Contact records.

    • D. 

      They can be used to deploy custom settings data.

    • E. 

      They can be used only between related organizations.

  • 27. 
    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)
    • A. 

      Download a Managed Package from the AppExhange 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.

  • 28. 
    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 formula 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.

  • 29. 
     A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)
    • A. 

      ANT Migration Tool

    • B. 

      Workbench Metadata Retrieval

    • C. 

      Salesforce UI Apex Test Execution

    • D. 

      Developer Console

  • 30. 
    When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)
    • A. 

      Match an auto-generated Number field to a column in the imported file.

    • B. 

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

    • C. 

      Match the Name field to a column in the imported file.

    • D. 

      Match the Id field to a column in the imported file.

  • 31. 
    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 Master-Detail relationship to the Invoice.

    • B. 

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

    • C. 

      The Account should have a Lookup relationship to the Invoice

    • D. 

      The Invoice should have a Lookup relationship to the Account Previous

  • 32. 
    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. 

      A user who is assigned as the current approver

    • C. 

      Any user who approved the record previously

    • D. 

      An administrator

  • 33. 
    • A. 

      101

    • B. 

      100

    • C. 

      102

    • D. 

      252

  • 34. 
    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 formula field.

    • C. 

      Create a required comments field.

    • D. 

      Create a validation rule.

  • 35. 
    • A. 

      1

    • B. 

      3

    • C. 

      5

    • D. 

      7

  • 36. 
    When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)
    • A. 

      To generate a PDF document with application data

    • B. 

      To create components for dashboards and layouts

    • C. 

      To deploy components between two organizations

    • D. 

      To modify the page layout settings for a custom object

  • 37. 
    A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?
    • A. 

      Apex Triggers

    • B. 

      HTTP Callouts

    • C. 

      Apex Controllers

    • D. 

      Anonymous Blocks

  • 38. 
    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)
    • 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.

  • 39. 
    A developer creates a custom controller and custom Visualforce page by using the following code block: 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;}}{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString} What does the user see when accessing the custom page?
    • A. 

      GetMyString , , Method2 , getMystring

    • B. 

      , , Method2 , getMyString

    • C. 

      , , Method2,

    • D. 

      GetMyString , , ,

  • 40. 
    • A. 

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

    • B. 

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

    • C. 

      Create a lookup relationship between the Candidate and Interview objects.

    • D. 

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

  • 41. 
    What is a capability of a StandardSetController?Choose 2 answers
    • A. 

      It allows pages to perform mass updates of records

    • B. 

      It allows pages to perform pagination with large record sets

    • C. 

      It enforces field-level security when reading large record sets

    • D. 

      It extends the functionality of a standard or custom controller

  • 42. 
    • A. 

      Nothing. The task is automatically displayed on the Account page.

    • B. 

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

    • C. 

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

    • D. 

      Create an Account formula field that displays the Task information.

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

      DEBUG

    • B. 

      FINE

    • C. 

      INFO

    • D. 

      WARN

  • 44. 
    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(' NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged?
    • A. 

      List Exception

    • B. 

      NullPointer Exception

    • C. 

      Generic Exception

    • D. 

      No message is logged

  • 45. 
    What is a good practice for a developer to follow when writing a trigger? (Choose 2)
    • 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.

  • 46. 
    Which statement should a developer avoid using inside procedural loops? (Choose 2)
    • A. 

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

    • B. 

      List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];

    • C. 

      If(o.accountId == a.id)

    • D. 

      Update contactList;

  • 47. 
    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?
    • A. 

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

    • B. 

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

    • C. 

      By using AmexMessage.Messages() to display an error message after the number of DML statements is exceeded.

    • D. 

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

  • 48. 
    How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)
    • 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 a list of sObjects.

  • 49. 
    • A. 

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

    • B. 

      {!$Setup.Url_Settings__C.URL__c}

    • C. 

      {!$Setup.Url_Settings__C.[Profile.Id].URL__c}

    • D. 

      {!$Setup.Url_Settings__C.[$Profile.Id].URL__c}

  • 50. 
    What is a valid way of loading external JavaScript files into a Visualforce page? (Choose 2)
    • A. 

      Using an (apex:includeScript)* tag. \>

    • B. 

      Using an (apex:define)* tag.

    • C. 

      Using a (link)* tag.

    • D. 

      Using a (script)* tag.

  • 51. 
    Which action can a developer perform in a before update trigger? (Choose 2)
    • A. 

      Display a custom error message in the application interface.

    • B. 

      Change field values using the Trigger.new context variable.

    • C. 

      Delete the original object using a delete DML operation.

    • D. 

      Update the original object using an update DML operation

  • 52. 
    Which type of code represents the Controller in MVC architecture on the Force.com platform? (Choose 2)
    • A. 

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

    • B. 

      A static resource that contains CSS and images.

    • C. 

      Custom Apex and JavaScript coda that is used to manipulate data.

    • D. 

      StandardController system methods that are referenced by Visualforce.

  • 53. 
    A developer needs to create records for the object Property__c. The developer creates the following code block: List propertiesToCreate = helperClass.createProperties(); try { // line 3 } catch (Exception exp ) { //exception handling } Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?
    • A. 

      Database.insert(propertiesToCreate, false);

    • B. 

      Insert propertiesToCreate;

    • C. 

      Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);

    • D. 

      Database.insert(propertiesToCreate);

  • 54. 
    Which data type or collection of data types can SOQL statements populate or evaluate to? (Choose 3)
    • A. 

      A single sObject

    • B. 

      An integer

    • C. 

      A string

    • D. 

      A list of sObjects

    • E. 

      A Boolean

  • 55. 
    • 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

  • 56. 
    Which declarative method helps ensure quality data? (Choose 3)
    • A. 

      Validation Rules

    • B. 

      Workflow alerts

    • C. 

      Exception Handling

    • D. 

      Lookup Filters

    • E. 

      Page Layouts

  • 57. 
    How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?
    • A. 

      By querying the role hierarchy.

    • B. 

      By calling the isShared() method for the record.

    • C. 

      By querying CustomObject__Share.

    • D. 

      By calling the profile settings of the current user.

  • 58. 
    • A. 

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

    • B. 

      Create a master-detail relationship in the Application custom object to the Job Postings custom 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 custom object to the Job Postings custom object

  • 59. 
    Which option would a developer use to display the Accounts created in the current week and the number of related Contacts using a debug statement in Apex?
    • A. 

      For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ‘ has ’ + cons.size() + ‘Contacts’; }

    • B. 

      For(Account acc: [SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = CURRENT_WEEK]){ List cons = acc.Contacts; System.debug(acc.Name + ‘ has ‘ + cons.size() + ‘Contacts’); }

    • C. 

      For(Account acc:[SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = CURRENT_WEEK]) { List cons = acc.Account.Contacts; System.debug(acc.Name + ‘ has ‘ + cons.size() + ‘Contacts’); }

    • D. 

      For(Account acc: [SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = THIS_WEEK]){ List cons = acc.Account.Contacts; System.debug(acc.Name + ‘ has ‘ + cons.size() + ‘Contacts’ }

  • 60. 
    What is the result of the following code block ? Integer  x = 1;Integer Y = 0;While(x < 10){Y++;} 
    • A. 

      An error occurs

    • B. 

      Y = 9

    • C. 

      Y = 10

    • D. 

      X = 0

  • 61. 
    A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back.What can a developer do to accomplish this? 
    • A. 

      Create a visual workflow that will capture the candidate’s signature electronically

    • B. 

      Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically.

    • C. 

      Install a managed package that will allow the candidate to sign documents electronically

    • D. 

      Create an assignment rule that will assign the offer letter to the candidate

  • 62. 
    Which Apex collection is used to ensure that all values are unique?
    • A. 

      A Set

    • B. 

      An Enum

    • C. 

      A List

    • D. 

      An sObject

  • 63. 
    Which actions can a developer perform using the Schema Builder?Choose 2 answers
    • A. 

      Create a custom field and automatically add it to an existing page layout.

    • B. 

      Create a view containing only standard and system objects.

    • C. 

      Create a custom object and define a lookup relationship on that object

    • D. 

      Create a view of objects and relationships without fields

  • 64. 
    • A. 

      20000

    • B. 

      0

    • C. 

      200

    • D. 

      1000

  • 65. 
    • A. 

      0

    • B. 

      1

    • C. 

      150

    • D. 

      100

  • 66. 
    What is a benefit of the Lightning Component framework?Choose 3 answers
    • A. 

      It uses client-side Apex controllers for logic.

    • B. 

      It uses a traditional publish-subscribe model.

    • C. 

      It uses an event-driven architecture

    • D. 

      It uses an MVC architectural design pattern.

    • E. 

      It uses server-side JavaScript controller for logic.

  • 67. 
    The initial value for a number field on a record is 1. A user updated the value of the number field to 10. This action invokes a workflow field update, which changes the value of the number field to 11. After the workflow field update, an update trigger fires.What is the value of the number field of the object that is obtained from Trigger.old? 
    • A. 

      Null

    • B. 

      11

    • C. 

      1

    • D. 

      10

  • 68. 
    How can a developer retrieve all Opportunity record type labels to populate a list collection?Choose 2 answers 
    • A. 

      Obtain describe object results for the Opportunity object.

    • B. 

      Write a for loop that extracts values from the Opportunity.RecordType.Name field.

    • C. 

      Use the global variable $RecordType and extract a list from the map.

    • D. 

      Write a SOQL for loop that iterates on the RecordType object.

  • 69. 
    A developer needs to confirm that an Account trigger is working correctly without changing the organization’s data.What would the developer do to test the Account trigger?
    • A. 

      Use the Test menu on the developer Console to run all test classes for the account trigger.

    • B. 

      Use the New button on the Salesforce Accounts Tab to create a new Account record.

    • C. 

      Use the Open Execute Anonymous feature on the Developer Console to run an ‘insert Account’ DML statement.

    • D. 

      Use Deply from the Force.com IDE to deploy an ‘insert Account’ Apex class.

  • 70. 
    What can a Lightning Component contain in its resource bundle?Choose 2 anser
    • A. 

      Custom client side rendering behavior.

    • B. 

      Build scripts for minification

    • C. 

      Properties files with global settings

    • D. 

      CSS styles scoped to the component

  • 71. 
    How would a developer change the field type of a custom field on the Account object from string to an integer?
    • A. 

      Make the changes in the developer console, and then the change will automatically be reflected in the Apex code.

    • B. 

      Mate the change in the declarative UI, then update the field type to an integer field in the Apex code.

    • C. 

      Make the change in the declarative UI, an 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.

  • 72. 
    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.

  • 73. 
    What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
    • A. 

      The StandardSetController to support related lists for pagination.

    • B. 

      The Opportunity StandardController for pre -built functionality.

    • C. 

      A callback constructor to reference the StandardController.

    • D. 

      A constructor that initializes a private Opportunity variable.

  • 74. 
    • A. 

      Line-03: A SOQL query is located inside of the for loop code.

    • B. 

      Line-01: Trigger:new is not valid in a before insert Trigger.

    • C. 

      Line-02: A NullPointer exception is thrown if PostalCode is null.

    • D. 

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

  • 75. 
    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 a field update.

    • C. 

      Create a Lightning Component.

    • D. 

      Create a Visualforce page.

  • 76. 
    Which requirement needs to be implemented by using standard workflow instead of Process Builder?Choose 2 answers 
    • 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.

  • 77. 
    An org has different Apex Classes that provide Account -related functionality.After a new validation rule is added to the 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?Choose 2 answers:
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

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

  • 78. 
    Which component is available to deploy using Metadata API? Choose 2 answers 
    • A. 

      Case Layout

    • B. 

      Account Layout

    • C. 

      Case Feed Layout

    • D. 

      ConsoleLayout

  • 79. 
    In the code below, what type does Boolean inherit from?Boolean b= true;
    • A. 

      Enum

    • B. 

      Object

    • C. 

      String

    • D. 

      Class

  • 80. 
    What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?
    • A. 

      By accessing the content from Chatter Files.

    • B. 

      By uploading the content in the Documents tab.

    • C. 

      By accessing the content from a third -party CON.

    • D. 

      By uploading the content as a Static Resource.

  • 81. 
    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.Which kind of relationship would a developer use to relate the Account to the Warehouse? 
    • A. 

      One -to -Many

    • B. 

      Lookup

    • C. 

      Master -Detail

    • D. 

      Parent -Child

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

      No changes are made to the data.

    • B. 

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

    • C. 

      The Workflow Rule is fired more than once.

    • D. 

      The Apex Trigger is fired more than once.

  • 83. 
    What is true for a partial sandbox that is not true for a full sandbox?Choose 2 answers:
    • A. 

      More frequent refreshes.

    • B. 

      Only Includes necessary metadata

    • C. 

      Use of change sets.

    • D. 

      Limited to 5 GB of data.

  • 84. 
    In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value__c on Campaign.
    • A. 

      The values in Campaignmember.Estimated_value__c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record.

    • B. 

      The values in CampaignMember.Estimated_value__c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency.

    • C. 

      The values in CampaignMember.Estimated_value__c are summed up and the resulting Total_estimated_value__c field is displayed as a numeric field on the Campaign record.

    • D. 

      The values In CampaignMember.Estimated_value__c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record.

  • 85. 
    What is a characteristic of the Lightning Component Framework?Choose 2 answers:
    • A. 

      It has an event-driven architecture.

    • B. 

      It works with existing Visualforce pages.

    • C. 

      It includes responsive components.

    • D. 

      It uses XML as its data format.

  • 86. 
    What is a capability of cross-object formula fields?Choose 3 answers
    • A. 

      Formula fields can reference fields from master-detail or lookup parent relationships.

    • B. 

      Formula fields can expose data the user does not have access to in a record.

    • C. 

      Formula fields can be used in three roll-up summaries per object.

    • D. 

      Formula fields can reference fields in a collect of records from a child relationship.

    • E. 

      Formula fields can reference fields from objects that are up to 10 relationships away.

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

      Select the Override Log Triggers checkbox for the trigger

    • B. 

      Add the user name in the Log Inspector.

    • C. 

      Open the Progress tab in the Developer Console.

    • D. 

      Open the logs tab in the Developer Console.

  • 88. 
    Which data structure is returned to a developer when performing a SOSL search?
    • A. 

      A list of lists of sObjects.

    • B. 

      A map of sObject types to a list of sObjects

    • C. 

      A map of sObject types to a list oflists of sobjects

    • D. 

      A list of sObjects.

  • 89. 
    What is a correct pattern to follow when programming in Apex on a Multi-tenant 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.

  • 90. 
    • A. 

      The REST API and ApexTestRun method

    • B. 

      The Apex Test Execution page in Salesforce Setup.

    • C. 

      The Test menu in the Developer Console.

    • D. 

      The Run Tests page in Salesforce Setup.

  • 91. 
    A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired. What can a developer do to accomplish this task? 
    • A. 

      Create an escalation rule to the hiring manager.

    • B. 

      Create an auto response rule to the candidate.

    • C. 

      Create a Process Builder with an outbound message action.

    • D. 

      Create a workflow rule with an outbound message action.

  • 92. 
    What is the accurate statement about with sharing keyword?choose 2 answers 
    • A. 

      Inner class do not inherit the sharing setting from the container class

    • B. 

      Both inner and outer class can be declared as with sharing

    • C. 

      Either inner class or outer classes can be declared as with sharing but not both

    • D. 

      Inner class inherit the sharing setting from the container class

  • 93. 
    How can a developer refer to, or instantiate a PageReference in Apex?Choose 2 answers 
    • 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.

  • 94. 
    Which standard field needs to be populated when a developer inserts new Contact records programmatically?
    • A. 

      Accountld

    • B. 

      Name

    • C. 

      LastName

    • D. 

      FirstName

  • 95. 
    • A. 

      Create test classes to exercise the Visualforce page markup.

    • B. 

      Select "Disable Parallel Apex Testing" to run all the tests.

    • C. 

      Add test methods to existing test classes from previous deployments.

    • D. 

      Select "Fast Deployment'' to bypass running all the tests.

  • 96. 
    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 Contact record.Which type of trigger would the developer create? Choose 2 answers 
    • A. 

      Before update

    • B. 

      After insert

    • C. 

      Before insert

    • D. 

      After update

  • 97. 
    • A. 

      The ability to select error types to ignore in the developer console.

    • B. 

      The ability to write assertions to test after a @future method.

    • C. 

      The ability to set and modify the CreatedDate field in apex tests.

    • D. 

      The ability to select testing data using csv files stored in the system.

    • E. 

      The ability to set breakpoints to freeze the execution at a given point.

  • 98. 
    What is the easiest way to verify a user before showing them sensitive content?
    • A. 

      Sending the user a SMS message with a passcode.

    • B. 

      Calling the generateVerificationUrl method in apex.

    • C. 

      Sending the user an Email message with a passcode.

    • D. 

      Calling the Session.forcedLoginUrl method in apex.

  • 99. 
    When creating a record with a Quick Action, what is the easiest way to post a feed item?
    • A. 

      By selecting create feed item on the quick action.

    • B. 

      By adding a trigger on the new record.

    • C. 

      By adding a workflow rule on the new record.

    • D. 

      By selecting create case feed on the new record.

  • 100. 
    What actions types should be configured to display a custom success message?
    • A. 

      Update a record.

    • B. 

      Post a feed item.

    • C. 

      Delete a record.

    • D. 

      Close a case.

  • 101. 
    What are the supported content sources for custom buttons and links?(Choose 2 Answers)
    • A. 

      VisualForce Page.

    • B. 

      Static Resource.

    • C. 

      URL

    • D. 

      Chatter File.

    • E. 

      Lightning Page.

  • 102. 
    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.getLimitDMLStatements()); What is the result? 
    • A. 

      11, 150

    • B. 

      150, 2

    • C. 

      150, 11

    • D. 

      3, 150

  • 103. 
    On which object can an administrator 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.

  • 104. 
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

      The Custom Object inherits security from the referenced Standard Objects

  • 105. 
    Where can debug log filter settings be set?Choose 2 answers 
    • 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.

  • 106. 
    • A. 

      Use the constructor method for the controller.

    • B. 

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

    • C. 

      Create a new PageReference object with the Id.

    • D. 

      Use the tag in the Visualforce page.

  • 107. 
    A developer has the following code block:  public class PaymentTax {public static decimal SalesTax = 0.0875;}  trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost * XXXXXXXXXXX;}  To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger? 
    • A. 

      SalesTax

    • B. 

      PayTax.SalesTax

    • C. 

      PaymentTax.SalesTax

    • D. 

      OpportunityLineItemTngger.SalesTax

  • 108. 
    What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, which then results in hitting a governor limit?
    • A. 

      Any changes up to the error are saved.

    • B. 

      Any changes up to the error are rolled back.

    • C. 

      All changes before a savepoint are saved.

    • D. 

      All changes are saved in the first Apex class.

  • 109. 
    When the number of record in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .length() method call?
    • A. 

      For (init_stmt, exit_condition; increment_stmt) { }

    • B. 

      Do { } While (Condition)

    • C. 

      For (variable : list_or_set) { }

    • D. 

      While (Condition) { . }

  • 110. 
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

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

  • 111. 
    An Org has a single account named ’NoContacts’ that has no related contacts. Given the query: List<Account> accounts = [Select ID, (Select ID, Name from contacts) from Account where Name= “NoContacts’];
    • A. 

      Accounts[0] is Null.

    • B. 

      Accounts[0] contacts is invalid Apex.

    • C. 

      Accounts[0] contacts is an empty list.

    • D. 

      A QueryException is thrown

  • 112. 
    What are three ways for a developer to execute tests in an org? choose 3 answers
    • A. 

      Bulk API

    • B. 

      MetaData API

    • C. 

      Tooling API

    • D. 

      Developer console

    • E. 

      Setup menu

  • 113. 
    Which approach should be used to provide test data for a test class?
    • A. 

      Use a test data factory class to create test data

    • B. 

      Query for existing records in the database

    • C. 

      Access data in @TestVisible class variables

    • D. 

      Execute anonymous code blocks that create data.

  • 114. 
    When should an apex Trigger be required instead of a process builder process?
    • A. 

      When an action needs to be taken on a delete or undelete, or before a DML operation is executed

    • B. 

      When a record needs to be created

    • C. 

      When a post to chatter needs to be created

    • D. 

      When multiple records related to the triggering record need to be updated

  • 115. 
    • A. 

      Number maps to integer

    • B. 

      Textarea maps to list of type String

    • C. 

      Checkbox maps to Boolean

    • D. 

      Date/Time maps to Datetime

    • E. 

      Number maps to Decimal

  • 116. 
    Using the schema builder, a developer tries to change the API name of a field that is referenced in an Apex Test Class. What is the end results?
    • A. 

      The API name of the field is changed, and a warning is issued to update the class

    • B. 

      The API name of the field and the reference in the test class is updated

    • C. 

      The API name of the field and the reference in the test class is changed

    • D. 

      The API name is not changed and there are no other impacts.

  • 117. 
    • A. 

      To increase the SOQL query governor’s limits

    • B. 

      To leverage built-in functionality of a standard controller

    • C. 

      To enforce user sharing settings and permissions

    • D. 

      To implement all of the logic for a page and bypass default salesforce functionality

  • 118. 
    Which two platform features allow for the use of unsupported languages? Choose 2 answers.
    • A. 

      App.json

    • B. 

      Docker

    • C. 

      Heroku ACM

    • D. 

      Buildpacks

  • 119. 
    A developer created a visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page. What should the developer do to deploy to production?
    • A. 

      Create a test page that provides coverage of the custom controller

    • B. 

      Create a test class that provides coverage of the visualforce page

    • C. 

      Create a test class that provides coverage of the custom controller

    • D. 

      Create a test page that provides coverage of the visualforce page

  • 120. 
    • A. 

      Create one visualforce page for use by both profiles

    • B. 

      Use a new support manager permission sets

    • C. 

      Create a separate visualforce page for each profile

    • D. 

      Use a custom controller that has the with sharing keywords

  • 121. 
    A developer executes the following query in Apex to retrieve a list of contacts for each account: List accounts = [ Select ID, Name, (Select ID, Name from Contacts) from Account]; Which two exceptions may occur when it executes? Choose 2 answers
    • A. 

      SOQL query limit exception due to the number of queries

    • B. 

      CPU limit exception due to the complexity of the query

    • C. 

      SOQL query limit exception due to the number of contacts

    • D. 

      SOQL query limit exception due to the number of accounts

  • 122. 
    Which three options allow a developer to use stylesheets?
    • A. 

      A static resource

    • B. 

      < Apex:stylesheet > tag

    • C. 

      Apex:stylesheets> tag

    • D. 

      Inline CSS

    • E. 

      < apex:style > tag

  • 123. 
    A platform developer needs to write an apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allows the developer to dynamically determine the ID of the required Record Type by its name? Choose 2 answers
    • A. 

      Hardcode the ID as a constant in an Apex class

    • B. 

      Execute a SOQL query on the RecordType Object

    • C. 

      Use the getRecordTypeInfosByName()method in the DescribeSObjectResult Class.

    • D. 

      Make an outbound web service call to the SOAP API.

  • 124. 
    Which SOQL query successfully returns the Accounts grouped by name?
    • A. 

      Select type, Max(CreatedDate) FROM Account GROUP BY Name

    • B. 

      Select Name, Max(CreatedDate) FROM Account GROUP BY Name

    • C. 

      Select Id,type, Max(CreatedDate) FROM Account GROUP BY Name

    • D. 

      Select type, Name Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5

  • 125. 
    Which approach should a developer use to add pagination to a visualforce page?
    • A. 

      The extension attribute for a page

    • B. 

      A standardController

    • C. 

      The action attribute for a page

    • D. 

      A StandardSetController

  • 126. 
    Developer needs to test an invoicing system integration. After reviewing the numbers of transaction required for the test, the developer estimates that the test data will total about 2GB of data storage. Production data is not required for integration testing. Which two environments meet the requirements for testing? Choose 2 answers
    • A. 

      Full sandbox

    • B. 

      Developer sandbox

    • C. 

      Developer Pro Sandbox

    • D. 

      Developer Edition

    • E. 

      Partial Sandbox

  • 127. 
    How should a developer prevent a recursive trigger?
    • A. 

      Use a private Boolean variable

    • B. 

      Use a “one trigger per object” pattern.

    • C. 

      Use a trigger handler

    • D. 

      Use a static Boolean variable

  • 128. 
    What is a capability of the Tag that is used for loading external javascript libraries in lightning components? Choose 2 answers
    • A. 

      Loading scripts in parallel

    • B. 

      One-time loading from duplicate scripts

    • C. 

      Loading files from documents

    • D. 

      Specifying loading order

    • E. 

      Loading externally hosted scripts

  • 129. 
    What is a requirement for a class to be used as a custom visualforce controller?
    • A. 

      Any top-level Apex class that has a constructor that returns a PageReference

    • B. 

      Any top-level Apex class that implements the controller interface

    • C. 

      Any top-level Apex class that has a default, no-argument constructor

    • D. 

      Any top-level Apex class that extends a PageReference

  • 130. 
    The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different construction jobs, and track the dates and cost associated with each job. More than one piece of machinery can be assigned to one construction job. What should a developer do to meet these requirements?
    • A. 

      Create a lookup field on the machinery object to the construction job object

    • B. 

      Create a junction object with Master-Detail Relationship to both the machinery object and the construction job object.

    • C. 

      Create a lookup field on the construction job object to the machinery object

    • D. 

      Create a Master-Detail lookup field on themachinery object to the construction job object

  • 131. 
    Which three tools can deploy metadata to productions? Choose 3 answers.
    • A. 

      Data Loader

    • B. 

      Change set from sandbox

    • C. 

      Change set from developer org

    • D. 

      Force.com IDE

    • E. 

      Metadata API

  • 132. 
    How should a developer create a new custom exception class?
    • A. 

      Public class CustomException extends Exception{}

    • B. 

      CustomException ex = new (CustomException) Exception();

    • C. 

      (Exception) CustomException ex = new Exception();

    • D. 

      Public class CustomException implements Exception{}

  • 133. 
    Which two number expression evaluate correctly? Choose 2 answers
    • A. 

      Integer I = 3.14159;

    • B. 

      Decimal D = 3.14159;

    • C. 

      Long I = 3.14159;

    • D. 

      Double D =3.14159;

  • 134. 
    What are the eight officially supported languages on the Heroku Platform?
    • A. 

      Lisp, PHP, Node, Ruby, Scala, Haskell, Go, Erlang

    • B. 

      C#, C++, Node, Ruby, Java, PHP, Go,.Net

    • C. 

      Node, Ruby, Java, PHP, Python,. Net, C++

    • D. 

      Node, Ruby, Java, PHP, Python,Go, Scala, Clojure.

  • 135. 
    A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. What steps should the developer take to resolve the issue and properly test the exception?
    • A. 

      Use the finally block within the unit test to populate the exception

    • B. 

      Use database methods with all or none set to False

    • C. 

      Use try/catch within the unit test to catch the exception

    • D. 

      Use Test.isRunningTest() within the custom Controller

  • 136. 
    Which code block will run successfully in an execute anonymous window?
    • A. 

      A) myFooController m = new myFooControler ();\ System.asseert(m.prop==null);

    • B. 

      B) myFooController m = new myFooControler ();\ System.asseert(m.prop==1);

    • C. 

      C) myFooController m = new myFooControler ();\ System.asseert(m.prop==0);

    • D. 

      D) myFooController m = new myFooControler ();\ System.asseert(m.prop=!null);

  • 137. 
    • A. 

      An after insert trigger allows a developer to bypass validation rules when updating fields on the new records

    • B. 

      An after insert trigger allows a developer to make a callout to an external service.

    • C. 

      An after insert trigger allows a developer to insert other objects that reference the new records

    • D. 

      An after insert trigger allows a developer to modify fields in the new record without a query.

  • 138. 
    • A. 

      Use @IsTest(SeeAllData=true) and delete the existing standard Pricebook

    • B. 

      Use @TestVisible to allow the test method to see the standard Pricebook.

    • C. 

      Use Test.getStandardPricebbokId()to get the standard Pricebook ID.

    • D. 

      Use Test.loaddata() and a Static Resource to load a standard Pricebook.

  • 139. 
    What is the correct invocation to push code to the app sushi-prod from the command line?
    • A. 

      Heroku push - - app sushi-prod

    • B. 

      Git push master

    • C. 

      Herokugit push master

    • D. 

      Git push heroku master - - app sushi-prod

  • 140. 
    When an Account’s custom picklist field called Customer Sentiment is changed to a value of “Confused,” a new related Cases should automatically be created. Which two methods should a developer use to create this case? Choose two answers
    • A. 

      Process Builder

    • B. 

      Custom Button

    • C. 

      Apex Trigger

    • D. 

      Workflow Rule

  • 141. 
    How can a developer set up a debug log on a specific user?
    • A. 

      Ask the user for access to their account credentials, log in as the user and debug the issue

    • B. 

      Create apex code that logs code actions into a custom object

    • C. 

      It is not possible to setup debug lots for users other than yourself.

    • D. 

      Set up a trace flag for the user, and define a logging level and time period for the trace.

  • 142. 
    • A. 

      Create a lead Workflow Rule Field Update

    • B. 

      Create an after insert Lead trigger

    • C. 

      Create a Lead formula field

    • D. 

      Create a before insert lead Trigger

  • 143. 
    A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?
    • A. 

      StandardController = “case” and extensions =” myControllerExtension”

    • B. 

      Extensions=”myControllerExtension”

    • C. 

      Controller=”myControllerExtension”

    • D. 

      Controller = “case” and extensions =”myControllerExtension”

  • 144. 
    • A. 

      Map imap = new map ([Select ID from Lead Limit 8]);

    • B. 

      List s = List { ‘a’,’b’,’c’};

    • C. 

      Integer a=5, b=6,c,d=7;

    • D. 

      Date D1 = Date.Today(), d2 = DATE.ValueOf(‘2018-01-01’);

  • 145. 
    How should a developer avoid hitting the governor limits in test methods?
    • A. 

      Use Test.startTest() to reset governor limits

    • B. 

      Use @TestVisible on methods that creates records

    • C. 

      Use @IsTest (SeeAllData=true) to use existing data

    • D. 

      Use Test.loadData() to load data from a static resource.

  • 146. 
    • A. 

      Trigger execution order is not guaranteed for the same sObject

    • B. 

      Trigger execution order is based on creation date and time

    • C. 

      Unit test must specify the trigger being tested

    • D. 

      Developers must dictated the order of the trigger execution

  • 147. 
    What are three characteristics of static methods? Choose 3 answers
    • A. 

      Initialized only when a class is loaded

    • B. 

      A static variable is available outside of the cope of an Apex transaction

    • C. 

      Allowed only in outer classes

    • D. 

      Allowed only in inner classesd) Allowed only in inner classes

    • E. 

      Are Not transmitted as part of the view state for a Visualforce page

  • 148. 
    A developer is asked to create a PDF quote document formatted using the company’s branding guidelines, and automatically save it to the Opportunity record. Which two ways should a developer create this functionality? Choose 2 answers
    • A. 

      Create a visualforce page with custom styling

    • B. 

      Install an application from the AppExchange to generate documents.

    • C. 

      Crate a visual flow that implements the company’s formatting

    • D. 

      Create an email template and use it in Process builder.

  • 149. 
    A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type(Account, Lead, Or Contact, for example) to cast each sObject?
    • A. 

      Use the getSObjectName method on the sObject class to get the sObject name

    • B. 

      Use a try-catch construct to cast the sObject into one of three sObject Types

    • C. 

      Use the getSObjectType method on each generic sObject to retrieve the sObject Token

    • D. 

      Use the first three characters of the sObject ID to determine the sObject Type.

  • 150. 
    Before putting an app into production, which step should be taken?
    • A. 

      Run the production check feature via the web interface

    • B. 

      Switch to a production database

    • C. 

      Insure that you have installed a performance introspection add-on

    • D. 

      Scale your dynos

  • 151. 
    What are two benefits of the lightning component framework? Choose 2 answers
    • A. 

      It allows faster PDF generation with lightning components

    • B. 

      It simplifies complexity when building pages, but not applications

    • C. 

      It provides an event-driven architecture for better decoupling between components

    • D. 

      It promotes faster development using out-of-the-box components that are suitable for desktop and mobile devices.

  • 152. 
    What should a developer use to implement an automatic Approval Process Submission for Cases?
    • A. 

      A workflow rule

    • B. 

      Process builder

    • C. 

      Scheduled Apex

    • D. 

      An Assignment rule

  • 153. 
    Which tool allows a developer to send requests to the salesforce REST APIs ad view the responses?
    • A. 

      Developer Console REST tab

    • B. 

      REST resource Path URL

    • C. 

      Workbench Rest Explorer

    • D. 

      Force.com IDE REST Explorer Tab

  • 154. 
    • A. 

      A roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard

    • B. 

      A process builder process that updates a field on the timecard when a timecard entry is created

    • C. 

      An apex trigger that sues an aggregate query to calculate the hours for a given timecard and stores it in a custom field

    • D. 

      A visualforce page that calculates the total number of hours for a timecard and displays it on the page.

  • 155. 
    • A. 

      Use SOQL for loops instead of assigning large queries results to a single collection and looping through the collection

    • B. 

      Query and store fields from related object in a collection when updating related objects

    • C. 

      Remove or set collection to null after use

    • D. 

      Use the transient keyword when declaring variables.

  • 156. 
    Where can a developer identify the time taken by each process in request using Developer console log inspector.
    • A. 

      Save order tab under Execution Overview panel

    • B. 

      Performance Tree tab under Stack Tree Panel

    • C. 

      Timeline tab under Execution Overview panel

    • D. 

      Execution tree tab under Stack Tree Panel

  • 157. 
    What are two features of Heroku Connect? Choose 2 answers
    • A. 

      Real time sync between salesforce and Postgres

    • B. 

      Bidirectional sync, allowing data to be written into SFDC

    • C. 

      Near Real Time Sync between Heroku Postgres and Salesforce

    • D. 

      Displaying data from an external data store via External Objects

  • 158. 
    • A. 

      Use getGlobalDescribe()get(myObject).getDescribe().fields.getmap () to return a map of fields

    • B. 

      Use schema.describeSObjects(new String[] {myObject}[0].fields.getMap() to return a map of fields

    • C. 

      Use SObjectType.myObejct.fields.getMap() to return a map of fields.

    • D. 

      Use myObejct.sObjectType.getDescribe().fieldSet() to return a set of fields.

  • 159. 
    Which approach should a developer take to automatically add a” Maintenance Plan” to each opportunity that includes an “Annual Subscription” when an opportunity is closed?
    • A. 

      Build an OpportunityLineItem trigger that adds a PriceBookEntry Record

    • B. 

      Build an Opportunity trigger that to add OpportunityLineItem Record

    • C. 

      Build an Opportunity trigger that addsPriceBookEntry Record

    • D. 

      Build an OpportunityLineItem trigger to add OpportunityLineItem Record

  • 160. 
    What is uses of External IDS?
    • A. 

      To prevent an import from creating duplicate records using Upsert

    • B. 

      To identify the sObject type in Salesforce

    • C. 

      To create a record in a development environment with the same salesforce ID as in another environment

    • D. 

      To create relationships between records imported from an external system.

  • 161. 
    What are two valid options for iterating through each Account in the collection List named AccountList? Choose 2 answers.
    • A. 

      For (Integer i=0; i

    • B. 

      For (List L : AccountList) {…}

    • C. 

      For(AccountList){…}

    • D. 

      For (Account theAccount : AccountList){…}

  • 162. 
    • A. 

      Generate a link using the HIPERLINK function to a specific record in a legacy system

    • B. 

      Determine if a datetime field has passed using the NOW function

    • C. 

      Determine which of three different images to display using IF function

    • D. 

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

    • E. 

      Display the previous value for a field using the PRIORVALUE function

  • 163. 
    Which two platform features align to the controller portion of MVC architecture
    • A. 

      Standard Objects

    • B. 

      Workflow Rules

    • C. 

      Apex Rules

    • D. 

      Field updates

  • 164. 
    A Developer wants to override a button using visualforce on an object. What is the requirement?
    • A. 

      The object record must be instantiated in a controller or extension

    • B. 

      The standardController attribute must be set to the object

    • C. 

      The controller or extension must have a PagerReference Method

    • D. 

      The Action attribute must be set to a controller method

  • 165. 
    Which two Apex data types can be used to reference a Salesforce record ID Dynamically? Choose two answers
    • A. 

      ENUM

    • B. 

      External ID

    • C. 

      SObject

    • D. 

      String

  • 166. 
    A developer created a lightning component name accountList.cmp that display a list of Accounts. Client-side logic that is executed when a user hovers over an account in the list should be stored in which bundle member?
    • A. 

      AccountListHelper.js

    • B. 

      AccountListRenderer.js

    • C. 

      AccountList.renderer

    • D. 

      AccountList.helper

  • 167. 
    A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?
    • A. 

      @BeforeTest

    • B. 

      @isTest(SeeAllData=True)

    • C. 

      @TestSetup

    • D. 

      @PreTest

  • 168. 
    .Given the code block: Integer x; For(x=0;x<10; x+=2) { If(x==8) break; If(x==10) break; } Which value will the system debug statement display?
    • A. 

      2

    • B. 

      10

    • C. 

      4

    • D. 

      8

  • 169. 
    • A. 

      The test method has a syntax error in the code.

    • B. 

      The test method relies on existing data in the database

    • C. 

      The test method use a try/catch block

    • D. 

      The test method calls an @future method.

  • 170. 
    What are two testing consideration when deploying code from a sandbox to production? Choose 2 answers
    • A. 

      A) 75% of test must execute without failure

    • B. 

      B) 100% of test must execute without failure

    • C. 

      C) Apex code requires 75% coverage

    • D. 

      D) Apex code requires 100% coverage

  • 171. 
    A developer tasked with creating a schema to track Movies, Actors, and contracts. A single movie can have many contracts and a single actor can have many contracts. Each contract is owned and actively managed by a single user. Which schema should be created to enable user to easily manage the contract they own; without requiring access to the movie or the actor records?
    • A. 

      A master detail relationship to the movie object and a lookup relationship to the actor object

    • B. 

      A lookup relationship to the movie object and a lookup relationship to the actor object

    • C. 

      A lookup relationship to the movie object and a master detail relationship to the actor object

    • D. 

      A master detail relationship to the movie object and a master detail relationship to the actor object

  • 172. 
    When would the use of Heroku Postgres be appropriate?
    • A. 

      To interconnect Microsoft SQL Servers to Heroku Applications

    • B. 

      To store and retrieve data using the Structured Query Language

    • C. 

      To store user generated pictures and word documents

    • D. 

      To cache commonly accessed data for faster retrieval

  • 173. 
    What are two considerations for converting a lookup to a Master-detail relationship? Choose 2 answers
    • A. 

      All the null values in the lookup field will be replaced by default values.

    • B. 

      The organisation wide default changes to controlled by parent

    • C. 

      If there are existing records with a null value in the lookup field, an error will occur.

    • D. 

      The organisation wide defaults changes to pubic read/write

  • 174. 
     What are two correct examples of the model in the salesforce MVC architecture? Choose 2 answers.
    • A. 

      Custom field on the custom wizard_c object

    • B. 

      Standard lightning component

    • C. 

      Workflow rule on the contact object

    • D. 

      Standard account lookup on the contract object

  • 175. 
    How can a custom type be identified as unique when added to a set?
    • A. 

      The class must have a method with the @invocableMethod annotation

    • B. 

      The class must implement the equals and hashcode methods

    • C. 

      Methods in the class must be static

    • D. 

      Methods in the class must be global

  • 176. 
    • A. 

      Create one profile, one permission set, and one role.

    • B. 

      Create two profile, one permission set, and one role.

    • C. 

      Create one profile, one permission set, and two role.

    • D. 

      Create one profile, two permission set, and one role.

  • 177. 
    A developer created a lightning component to display a short text summary for an object and wants to use it with multiple Apex Classes. How should the developer design the Apex Classes?
    • A. 

      Have each class define method getTextSummary() that returns the summary.

    • B. 

      Extend each class from the same base class that has a method getTextSummary() that returns the summary.

    • C. 

      Have each class define method getObject() that returns the sObject that is controlled by the Apex Class.

    • D. 

      Have each class implement an interface that definds method getTextSummary() that returns the summary.

  • 178. 
    In which two org types can a developer create new Apex Classes? Choose 2 answers
    • A. 

      Developer Edition

    • B. 

      Sandbox

    • C. 

      Enterprise Edition

    • D. 

      Unlimited

  • 179. 
    Which two are true regarding a Dyno? Choose 2 answers
    • A. 

      Is a light weight VM used to run code on the Heroku Platform

    • B. 

      Has the ability to sleep as a standard and performance Dyno

    • C. 

      Is a lightweight Linux container used in a collection to run Heroku applications

    • D. 

      Has Ephemeral filesystems and is rebooted every 24 hours.

  • 180. 
    What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution? (PDF Answers is Wrong- Please do not refer PDF)
    • A. 

      Limits, startTest, stopTest

    • B. 

      @TestSetup

    • C. 

      @TestVisible

    • D. 

      @Test.getDMLStatements()

  • 181. 
    • A. 

      Assert that a null value is accepted by the method

    • B. 

      Assert that future dates are rejected by the method

    • C. 

      Throwing a custom exception in the unit test.

    • D. 

      Assert that past dates are accepted by the method

  • 182. 
    • A. 

      Workflow Rules

    • B. 

      Apex

    • C. 

      Process Builder with an Autolaunched Flow

    • D. 

      Process Builder

  • 183. 
    A developer needs to avoid potential system problems that can arise in a multi-tenant architecture. Which requirement helps prevent poorly written applications from being deployed to a production environment?
    • A. 

      All validation rules must be active before they can be deployed

    • B. 

      SOQL queries must reference sObjects with their appropriate namespace

    • C. 

      All Apex Code must be annotated with the with sharing keyword

    • D. 

      Unit tests must cover at least 75% of the application’s Apex code.

  • 184. 
    • A. 

      The save method from the controller extension

    • B. 

      Both – the standardController first, then myExtension

    • C. 

      Both – the myExtension first, the standardController

    • D. 

      The save method from the standardController

  • 185. 
    Which tool can deploy destructive changes to apex classes in production?
    • A. 

      Workbench

    • B. 

      Salesforce setup

    • C. 

      Change Sets

    • D. 

      Developer Console

  • 186. 
    A user selects a value from a multi-select picklist. How is this selected value represented in Apex?
    • A. 

      As a string ending with a comma

    • B. 

      As a string

    • C. 

      As a list with one element

    • D. 

      As a set with one element

  • 187. 
     What are two considerations for deciding to use a roll up summary field?
    • A. 

      Roll-up summary fields do not cause validation rules on the parent object unless that object is edited separately

    • B. 

      Roll-up cannot be performed on formula fields

    • C. 

      Roll-up cannot be performed on formula fields that use cross-object reference or on-the-fly-calculation such as Now().

    • D. 

      Roll up summary can be performed on formulate fields but if their formulate contains an #error results, it may affect the summary.

  • 188. 
    • A. 

      A) String qryName = ‘%’ + String.enforceSecurityChecks(name)+ ‘%’; String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE :qryNAme’; List queryResults = Database.query(qryString);

    • B. 

      B) String qryName = ‘%’ + name‘%’; String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE :qryNAme’; List queryResults = Database.query(qryString);

    • C. 

      C) String qryName = ‘%’ + String.escpaeSingleQuotes(name)+ ‘%’; String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE :qryNAme’; List queryResults = Database.query(qryString);

    • D. 

      D) String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE :qryNAme’; List queryResults = Database.query(qryString);

  • 189. 
    . A sales manager wants to make sure that whenever an opportunity stage is changed to “Closed Won,” a new case will be created for the support team to collect necessary information from the customers. How should a developer accomplish this?
    • A. 

      Create a process builder to create the new cases.

    • B. 

      Set up a validation rule on the opportunity stage

    • C. 

      Create a lookup field to the case object on the opportunity object.

    • D. 

      Create a workflow rule.

  • 190. 
    What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a visualforce controller?
    • A. 

      Map

    • B. 

      List

    • C. 

      Enum

    • D. 

      String[]

  • 191. 
    A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?
    • A. 

      SOQL Query that includes ALL ROWS

    • B. 

      SOQL query on each object

    • C. 

      SOSL Query that includes ALL FIELDS

    • D. 

      SOSL query on each object

  • 192. 
    • A. 

      Use a one trigger per object approach

    • B. 

      Use a static variable to check if the trigger has already run

    • C. 

      Disable all triggers and use workflow rule…..

    • D. 

      Use private ….

  • 193. 
    • A. 

      Custom Controller

    • B. 

      List Controller

    • C. 

      Controller Extension

    • D. 

      Standard Controller

  • 194. 
    Which two are two regarding Apache Kafka on Heroku? Choose 2 answers
    • A. 

      Is a messaging backbone for building distributed applications

    • B. 

      Is an add-on that creates a long term data store

    • C. 

      Is a distributed commit log for communication between services

    • D. 

      Is designed to move small volume of ephemeral data

  • 195. 
    What does the context variable Trigger.old represent in an update operation?
    • A. 

      The same values of Trigger.new

    • B. 

      The current values of the records firing the trigger

    • C. 

      The previous version values of the records firing the trigger

    • D. 

      A map of IDs to the Old version of the records

  • 196. 
     A developer executes following code in Console. What will happen? listflist = new list(); for(integer i=1;i<=200 ;i++){ flist.add(new Account(name='Test Acc'+i)); } insert flist; listLlist = new list(); for(integer i=201;i<=20000 ;i++){ Llist.add(new Account(name='Test Acc'+i)); } insert Llist ;
    • A. 

      Error will occur

    • B. 

      Insert all records

    • C. 

      Insert 200 only

    • D. 

      Records inserted

  • 197. 
    • A. 

      101

    • B. 

      100

    • C. 

      102

    • D. 

      252

  • 198. 
    A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List<Case> childCases = new List<Case>(); for (Case parent : Trigger.new){ Case child = new Case(ParentId = parent.Id, Subject = parent.Subject); childCases.add(child); } insert childCases; What happens after the code block executes?
    • A. 

      Multiple child cases are created for each parent case in Trigger.new..

    • B. 

      child case is created for each parent case in Trigger.new.

    • C. 

      The trigger enters an infinite loop and eventually fails.

    • D. 

      The trigger fails if the Subject field on the parent is blank.

  • 199. 
    A developer needs to create records for the object Property__c .The developer creates the following code block: 01 List<Property__c> propertiesToCreate =helperClass.CreateProperties(); 02 try { 03 04 } catch (Exception exp) { 05 //Exception handling 06 } Which line of code would the developer insert at line 03 to ensure that at least some records are created, even if a record have errors and fails to be created?
    • A. 

      Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);

    • B. 

      Insert propertiesToCreate,

    • C. 

      Database.insert(propertiesToCreate, false);

    • D. 

      Database.insert(propertiesToCreate)

  • 200. 
    When the number of record in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .length() method call?
    • A. 

      For (init_stmt, exit_condition; increment_stmt) { }

    • B. 

      Do { } While (Condition)

    • C. 

      For (variable : list_or_set) { }

    • D. 

      While (Condition) { ... }

  • 201. 
    Which code segment can be used to control when the dowork() method is called?
    • A. 

      For (triggerIsRunning t: triiger.new){dowork();}

    • B. 

      if(trigger.Isrunning)dowork();

    • C. 

      For (trigger.IsInsert t: triiger.new){dowork();}

    • D. 

      if(trigger.IsInsert) dowork();

  • 202. 
    In the Lighting Component framework, which resource can be used to fire events? Choose 2 answers
    • A. 

      Visualforce controller options

    • B. 

      Third-party web service code

    • C. 

      Third -party Javascript code

    • D. 

      Javascript controller actions

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

      Scalability Testing

    • B. 

      Development Testing

    • C. 

      Quality Assurance Testing

    • D. 

      Batch Data Testing

    • E. 

      Integration Testing

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

      A geolocation field.

    • B. 

      An encrypted field.

    • C. 

      An aggregate function.

    • D. 

      An alias notation.

  • 205. 
    To which primitive data type in Apex is a currency field atomically assigned?
    • A. 

      Integer

    • B. 

      Decimal

    • C. 

      Double

    • D. 

      Currency

  • 206. 
    A custom exception "RecordNotFoundException" is defined by the following code of block. public class RecordNotFoundException extends Exception() which statement can a developer use to throw a custom exception? choose 2 answers
    • A. 

      Throw new RecordNotFoundException("problem occured");

    • B. 

      Throw new RecordNotFoundException();

    • C. 

      Throw RecordNotFoundException("problem occured");

    • D. 

      Throw RecordNotFoundException();

  • 207. 
    • A. 

      Unit tests with multiple methods result in all methods failing every time one method fails.

    • B. 

      Increased test coverage requires large test classes with many lines of code in one method.

    • C. 

      Triggers do not require any unit tests in order to deploy them from sandbox to production.

    • D. 

      System Assert statements that do not Increase code coverage contribute important feedback in unit tests

  • 208. 
    Public class customController { public string cString { get; set;} public string getStringMethod1(){ return cString; } public string getStringMethod2(){ if(cString == null) cString = &#39;Method2&#39;; return cString; } } &lt;apex:page controller=&quot;customController&quot;&gt; {!cString}, {!StringMethod1}, {!StringMethod2}, {!cString} &lt;/apex:page&gt; What does the user see when accessing the custom page?
    • A. 

      GetMyString,

    • B. 

      Method2,

    • C. 

      Method2, getMyString

    • D. 

      GetMyString„ Method2, getMyString

  • 209. 
    What is a valid Apex statement?
    • A. 

      Map conMap = (SELECT Name FROM Contact);

    • B. 

      Account[] acctList = new List{new Account()}

    • C. 

      Integer w, x, y = 123, z = 'asdsa';,

    • D. 

      Private static constant Double rate = 775;

  • 210. 
    • A. 

      Public ExtendedController (ApexPages.StandardController cntrl) {}

    • B. 

      ApexPages.currentPage().getParameters().put('input', 'TestValue')

    • C. 

      Test.setCurrentPage(pageRef),

    • D. 

      String nextPage = controller.save().getUrl();

  • 211. 
    • A. 

      By changing Application_c.Status_c into a roll -up summary field.

    • B. 

      By changing Application_c.Status_c into a formula field.

    • C. 

      By using an Apex trigger with a DML operation.

    • D. 

      By configuring a cross-object field update with a workflow.

  • 212. 
    A developer writes a before insert trigger. How can the developer access the incoming records in the trigger body?
    • A. 

      By accessing the Trigger.new context variable.

    • B. 

      By accessing the Trigger.newRecords context variable.

    • C. 

      By accessing the Trigger.newMap context variable.

    • D. 

      By accessing the Tripper.newList context variable.

  • 213. 
    • A. 

      Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.

    • B. 

      Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.

    • C. 

      Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.

    • D. 

      Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.

  • 214. 
    What is a capability of the Force.com IDE?Choose 2 answers
    • A. 

      Roll back deployments.

    • B. 

      Run Apex tests.

    • C. 

      Download debug logs.

    • D. 

      Edit metadata components.

  • 215. 
    What is a valid statement about Apex classes and interfaces? Choose 2 answers:
    • A. 

      The default modifier for a class is private.

    • B. 

      Exception classes must end with the word exception.

    • C. 

      A class can have multiple levels of inner classes.

    • D. 

      The default modifier for an interface is private.

  • 216. 
    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. 

      Remove all the references In the code and then the field will be removed from Schema Builder

    • B. 

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

    • C. 

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

    • D. 

      Delete the field from Schema Builder and then all references in the code will be removed.

  • 217. 
    What is the correct way to describe how Model-View-Controller (MVC) architecture is implemented on the Salesforce platform?
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

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

  • 218. 
    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?
    • A. 

      Workflow on Opportunity/Opportunity Product

    • B. 

      Custom Appexchange-app for product-pricing

    • C. 

      Formula fields on Opportunity/Opportunity Product

    • D. 

      Lightning process builder

  • 219. 
    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?
    • A. 

      Master Detail Relationship

    • B. 

      Indirect Lookup Relationship

    • C. 

      Lookup Relationship

    • D. 

      Hierarchical Relationship

    • E. 

      External Lookup Relationship

  • 220. 
    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?
    • A. 

      Use New button on Account tab to create new record

    • B. 

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

    • C. 

      Use force.com IDE

    • D. 

      Use Execute Anonymous feature on developer console

  • 221. 
    1. What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a Visualforce controller?
    • A. 

      String[]

    • B. 

      List<String>

    • C. 

      Map<String, String> ( Ans )

    • D. 

      Enum

  • 222. 
    • A. 

      The debug statement will repeat outputs from 1 to 21.

    • B. 

      The debug statement will output 20.

    • C. 

      The debug statement will repeat outputs from 1 to 20.

    • D. 

      The debug statement will output 1. ( Ans )

  • 223. 
    1. What area for custom Apex Exception classes?
    Choose 2 answers
    • A. 

      Constructor for custom Exceptions can only accept string values as arguments.

    • B. 

      Custom Exceptions cannot be extended by other Exception classes.

    • C. 

      Custom Exception classes must extend the base Exception class. ( Ans )

    • D. 

      Custom Exception class names must end with the word ‘Exception’. ( Ans )

  • 224. 
    1. Which collection type provides unique key/value pairings of data?
    • A. 

      SET

    • B. 

      Map

    • C. 

      Array

    • D. 

      List

  • 225. 
    What should a developer use to post a message on chatter when a picklist field called Status__c on a custom object Application__c is set to “Approved”?
    • A. 

      Use a Workflow Rule and use the “Post to Chatter” action when the records meets the criteria.

    • B. 

      Use the streaming API to post to Chatter.

    • C. 

      Use ConnectApi from Scheduled Apex

    • D. 

      Use Process Builder to post to Chatter based on meeting the required criteria. ( Ans )

  • 226. 
    • A. 

      Apex

    • B. 

      Process Builder with an Autolaunched Flow ( Ans )

    • C. 

      Workflow Rules

    • D. 

      Process Builder

  • 227. 
    A developer encounters APEX heap limit errors in a trigger. Which two methods should the developer use to avoid this error? Choose 2 answers
    • A. 

      Remove or set collections to null after use.

    • B. 

      Use SOQL for loops instead of assigning large queries results to a single collection and looping ----- collection.

    • C. 

      Use the transient keyword when declaring variables

    • D. 

      Query and store fields from the related object in a collection when updating related objects

  • 228. 
    • A. 

      Is a distributed commit log for communication between services

    • B. 

      Is a messaging backbone for building distributed applications

    • C. 

      Is an add-on that creates a long term data store

    • D. 

      Is designed to move small volumes of ephemeral data

  • 229. 
    How are debug levels adjusted in the Developer Console
    • A. 

      Under the Settings menu > Trace Settings…, click Change DebugLevel

    • B. 

      Under the Debug menu > Change Log Levels…., click Add/Change in the DebugLevel Action column

    • C. 

      Under the Logs tab, click Change in the DebugLevels panel

    • D. 

      Under the Edit menu, click Change DebugLevels

  • 230. 
    A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the <apex:SelectList> component, with a variable called “selection”, to show the valid values for Account.Type. The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is “acct”. The developer wants to ensure that when  a user selects a type on the <apex:selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?
    • A. 

      Add the Rendered = (!Acct.type==selection) attribute to the pageBlockTable component

    • B. 

      Create multiple lists in the controller that represent the relevant accounts for each account type when the page loads, then reference the correct one dynamically on the pageBlockTable

    • C. 

      Create a component for each option and use a variable with hide parameter on the element

    • D. 

      Use the onChange event  to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable

  • 231. 
    • A. 

      51;1;0

    • B. 

      51;1;null

    • C. 

      6;1; null

    • D. 

      6;1;0

  • 232. 
    • A. 

      A compile time exception

    • B. 

      A limit exception when doing a bulk update

    • C. 

      A null reference exception

    • D. 

      A DML exception

  • 233. 
    • A. 

      Check if Trigger.isExecuting == true

    • B. 

      Check if System.executionContext == ‘Trigger’

    • C. 

      Check if Trigger.newMap != null

    • D. 

      Use the executionOnTrigger annotation on the method definitaion

  • 234. 
    Which two describe Heroku Redis? Choose 2 answers
    • A. 

      Is provisioned and managed as an add-on

    • B. 

      Is an in-memory key-value data store, run by Heroku

    • C. 

      Is a repository for storing large images?

    • D. 

      Is an option for long term data storage?

  • 235. 
    When viewing Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?
    • A. 

      Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted

    • B. 

      Create a roll-up summary field on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items

    • C. 

      Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items

    • D. 

      Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items

  • 236. 
    What are two ways a developer should deploy code from a developer org to an unrelated production org? Choose 2 answers
    • A. 

      Login to the production org and set the developer org as an inbound connection in the Deployment Settings screen

    • B. 

      Setup a Salesforce to Salesforce connection and deploy a Change Set

    • C. 

      Save the code to a folder on the developer’s computer, create an incoming Change Set in the production org, and upload the files directly

    • D. 

      Package the code as an unmanaged package and install it in the production org

    • E. 

      Use an IDE to upload the new code directly into the production org using the metadata API

  • 237. 
    A Visualforce page uses the Contact standard controller. How can a developer display the Name from the parent Account record on the page?
    • A. 

      Use additional Apex logic within the controller to query for the Name field

    • B. 

      Use SOQL syntax to find the related Accounts Name field

    • C. 

      Use the {!contact.Account.Name} merge field syntax

    • D. 

      Use an additional standard controller for Accounts

  • 238. 
    What is a key difference between a Master-Detail Relationship and a Lookup Relationship?
    • A. 

      When a record of a master object in a Master-Detail Relationship is deleted, the detail records are kept and not deleted

    • B. 

      A Lookup Relationship is a required field on an object

    • C. 

      A Master-Detail Relationship detail record inherits the sharing and security of its master record

    • D. 

      When a record of a master object in a Lookup Relationship is deleted, the detail records are also deleted

  • 239. 
    What is a capability of the <ltng:require> Tag that is used for loading external javascript libraries in lightning components? Choose 3 answers
    • A. 

      Loading scripts in parallel

    • B. 

      One-time loading from duplicate scripts

    • C. 

      Loading files from documents

    • D. 

      Specifying loading order

    • E. 

      Loading externally hosted scripts

  • 240. 
    • A. 

      Create a lookup field on the machinery object to the construction job object

    • B. 

      Create a junction object with Master-Detail Relationship to both the machinery object and the construction job object

    • C. 

      Create a lookup field on the construction job object to the machinery object

    • D. 

      Create a Master-Detail lookup field on themachinery object tothe construction job object

  • 241. 
    • A. 

      Use variables within Apex classes to store large amounts of data

    • B. 

      Use collections to store all fields from a related object and not just minimally required fields

    • C. 

      Use methods from the “LIMITS” class to monitor governor limits

    • D. 

      Use SOQL for loops to iterate data retrieved from queries that return a high number of rows

  • 242. 
    Do you want to help me improve and add more questions? Please write to me email I added only two quizes but I need some help  email: [email protected]