Hardest Salesforce Developer Certification Test! Trivia Quiz

204 Questions

Settings
Please wait...
Salesforce Developer Quizzes & Trivia

Probably the hottest and most popular cloud-based customer relationship management (CRM) platform ever created. Getting a Salesforce Developer's certification means boosting your career pace and building the best future for yourself. But getting it successfully is no joke, it will require you a sturdy base of knowledge and practice. That's why we have come up with this trivia test for you. It has more than 200 essential questions to juice your knowledge up. All the best!


Questions and Answers
  • 1. 
    How should a developer prevent a recursive trigger?
    • A. 

      Use a static Boolean variable

    • B. 

      Use a "one trigger per object" pattern.

    • C. 

      Use a trigger handler.

    • D. 

      Use a private Boolean variable.

  • 2. 
    What are three ways for a developer to execute tests in an org? Choose 3 arms A. Metadata API
    • A. 

      Developer Console

    • B. 

      Metadata API

    • C. 

      Bulk API

    • D. 

      ToolingAPI

    • E. 

      Setup Menu

  • 3. 
    • A. 

      Check if Trigger.isExecuting ==true

    • B. 

      Check if Trigger.newMap !=null.

    • C. 

      Check if System.executionContext ==’Trigger’.

    • D. 

      Use the executeOnTrigger annotation on the method definition.

  • 4. 
    What are two considerations for deciding to use a roll-up summary field? Choose 2 answer's partner.
    • A. 

      Roll-up summary can be performed on formula fields, but if their formula contains an #Error result, it may affect the summary value.

    • B. 

      Roll-up cannot be performed on formula fields.

    • C. 

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

    • D. 

      Roll-up cannot be performed on formula fields that use cross-object references or on-the-fly calculations such as NOW().

  • 5. 
    Wich collection type provides unique key/value pairings of data?
    • A. 

      List

    • B. 

      Map

    • C. 

      Array

    • D. 

      Set

  • 6. 
    What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?
    • A. 

      Test.getDmlStatements()

    • B. 

      Limits, startTest, stopTest

    • C. 

      @TestVisible

    • D. 

      @TestSetup.

  • 7. 
    What are two features of Heroku Connect? Choose 2 answers Rif   RIf2
    • A. 

      Near Real Time Sync between Heroku Postgres and Salesforce

    • B. 

      Bidirectional syncs, allowing data to be written into Salesforce

    • C. 

      Real Time Sync between Salesforce and Postgres

    • D. 

      Displaying data from an external data store via External Objects.

  • 8. 
    A developer created a Lightning Component named accountList.cmp that displays 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. 

      AccountListRenderer.js

    • B. 

      AccountListHelper.js

    • C. 

      AccountList.renderer

    • D. 

      AccountList.helper .

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

      75% of tests must execute without failure.

    • B. 

      Apex code requires 100% coverage

    • C. 

      100% of tests must execute without failure.

    • D. 

      Apex code requires 75% coverage

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

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

    • B. 

      Create Apex code that logs code anions into a custom object.

    • C. 

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

    • D. 

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

  • 11. 
    • A. 

      . A compile time exception.

    • B. 

      A null reference exception.

    • C. 

       DML exception.

    • D. 

      A limit exception when doing a bulk update.

  • 12. 
    A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?
    • A. 

      Throwing a custom exception in the unit test.

    • B. 

      Assert that a null value is accepted by the method.

    • C. 

      Assert that past dates are accepted by the method.

    • D. 

      Assert that future dates are rejected by the method.

  • 13. 
    • A. 

      Have each class implement an interface that defines method getTextSummary() that returns the summary. (SOLO SE SONO DUE RISPOSTE)

    • B. 

      Have each class define 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. 

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

  • 14. 
    A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword. The page will be used of by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private. Which additional set of stops should the developer take?
    • A. 

      Create one Profile, two Permission Sets, and one Role.

    • B. 

      Create one Profile, one Permission Set, and one Role.

    • C. 

      Create one Profile, one Permission Set, and two Roles.

    • D. 

      Create two Profiles, one Permission Set, and one Role

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

      To interconnect Microsoft SQL servers to Heroku Applications.

    • B. 

      To cache commonly accessed data for faster retrieval.

    • C. 

      To store user generated pictures and Word documents.

    • D. 

      To store and retrieve data using the Structured Query Language.

  • 16. 
    • A. 

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

    • B. 

      Use SobjectType.myObject.fields.getMap() to return a map of fields.

    • C. 

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

    • D. 

      Use getClobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.

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

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

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

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

      Set up a validation rule on the Opportunity.Stage

    • B. 

      Create a workflow rule to create the new case.

    • C. 

      Create a Process Builder to create the new case.

    • D. 

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

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

      For (Integer i=0; i<AccountList. Size();i++){…}

    • B. 

      For (List L : AccountList) {…}

    • C. 

      For(AccountList){…}

    • D. 

      For (Account theAccount : AccountList){…}

  • 22. 
    • A. 

      Has the ability to sleep as a standard and performance Dyno.

    • B. 

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

    • C. 

      Has Ephemeral filesystems and is rebooted every 24 hours.

    • D. 

      Is a lightweight VM used to run code on the Heroku Platform.

  • 23. 
    A developer is creating 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. 

      @PreTest

    • B. 

      @isTest(SeeAllData=true)

    • C. 

      @BeforeTest

    • D. 

      @TestSetup.

  • 24. 
    Which tools allows a developer to send requests to salesforce REST APIs and view the responses?
    • A. 

      Force.com IDE REST Explore tab.

    • B. 

      Developer Console REST tab.

    • C. 

      Workbench REST Explorer.

    • D. 

      REST resource path URL

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

      Use the transient keyword when declaring variables.

    • B. 

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

    • C. 

      Remove or set collections to null after use.

    • D. 

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

  • 26. 
    • A. 

      Is a repository for storing large images.

    • B. 

      Is an option for long-term data storage.

    • C. 

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

    • D. 

      Is provisioned and managed as an add-on.

  • 27. 
    A developer has the controller class below; Public with sharing class myFootController {       Public integer prop {get; private set;} } Which code block will run successfully in an execute anonymous window?
    • A. 

      MyFootContoller m = new myFootController(); System.assert{m.prop ==null);

    • B. 

      MyFootController m = new myFootController(); system.assert{m.prop !=null);

    • C. 

      MyFootController m = new myFootController(); system.assert(m.prop ==0);

    • D. 

      MyFootController m – new myFootController(); system.assert{m.prop ==l);

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

      10

    • B. 

      4

    • C. 

      8

    • D. 

      2

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

      Install an application from the AppExchange to generate documents.

    • B. 

      Create a Visualforce page with custom styling.

    • C. 

      Create a visual flow that implements the company's formatting.

    • D. 

      Create an email template and use it in Process Builder.

  • 30. 
    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 a try-catch construct to cast the sObject into one of the three sObject types.

    • B. 

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

    • C. 

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

    • D. 

      Use the getSObjectType method on each generic sObject to retrieve the sObject token.

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

      Full sandbox.

    • B. 

      Developer Sandbox.

    • C. 

      Developer Edition.

    • D. 

      Partial Sandbox.

  • 32. 
    Which two platform features align to the controller portion of MVC architecture? Choose 2 Answers
    • A. 

      Standard objects.

    • B. 

      Process builder actions./ Apex Rules

    • C. 

      Date Fields.

    • D. 

      Workflow rules.

  • 33. 
    A developer writes the following code: List<Account> acc = [SELECT Id FROM Account LIMIT 10]; Delete acc; Database.emptyRecycleBin(acc); System.debug(Limits.getDmlStatements() + ‘, ’ + Limits.getLimitDMLStatements()); What is the result of the debug statement?
    • A. 

      2, 150

    • B. 

      1, 150

    • C. 

      2, 200

    • D. 

      1, 100.

  • 34. 
    Users report multiple intermittent errors and unexpected results when saving a record. Upon investigation, the developer finds that triggers are executing more than once What is a potential solution to solve this situation?
    • A. 

      Disable all triggers and use workflows.

    • B. 

      Use a one trigger per object approach.

    • C. 

      Use a private class variable to ensure that the trigger only runs once.

    • D. 

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

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

      Setup a Salesforce to Salesforce connection and deploy a Change Set.

    • B. 

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

    • C. 

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

    • D. 

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

    • E. 

      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.

  • 36. 
    A lead record that has a single related Campaign Member object is converted into a new account, contact, and opportunity. Which object will the Campaign Member reference using a lookup field after conversion?
    • A. 

      The Account

    • B. 

      The Opportunity

    • C. 

      The Product2

    • D. 

      The Contact.

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

      The previous version values of the records firing the trigger.

    • B. 

      The current values of the records firing the trigger.

    • C. 

      A map of IDs to the old version of the record.

    • D. 

      The same values of Trigger.new.

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

      SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name

    • B. 

      SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5

    • C. 

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

    • D. 

      SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name.

  • 39. 
    In which two org types can a developer create new Apex classes. Choose 2 answers.
    • A. 

      Developer Edition

    • B. 

      Enterprise Edition

    • C. 

      Unlimited Edition

    • D. 

      Sandbox

  • 40. 
    A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Mater-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
    • A. 

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

    • B. 

      An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.

    • C. 

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

    • D. 

      A Process Builder process that updates a field on the timecard entry is created.

  • 41. 
    • A. 

      Workflow Rules

    • B. 

      Process Builder

    • C. 

      Workflow Rules and Process Builder

    • D. 

      Process Builder with an Autolaunched Flow.

  • 42. 
    A Visualforce page is written with the following controller and extensions: <apex:page standardController="Account" extensions="myExtension> <apex:inputField value=”(!account.name)”/> <p/> <apex:commandButton value=”Save” action=”(!save)”/> </apex:page> The extension class myExtension has a public save() method. Which save method or methods will be used by the Visualforce page?
    • A. 

      The save method from the controller extension

    • B. 

      Both - the standardController first, then myExtension

    • C. 

      The save method from the standardController

    • D. 

      Both - myExtension first, then the standardController.

  • 43. 
    When viewing a 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 roll-up summary field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.

    • B. 

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

    • C. 

      Create a trigger on the Quote object that queries the Quantity field on discounted Quote Une 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 Une Items.

  • 44. 
    Which two are true regarding Apache Kafka on Heroku? Choose 2 answers
    • 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.

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

      CPU limit exception due to the complexity of the query.

    • B. 

      SOQL query row limit exception due to the number of contacts.

    • C. 

      SOQL query limit exception due to the number of queues.

    • D. 

      SOQL query row limit exception due to the number of accounts.

  • 46. 
    What Is the output of the following code? Integer index = 1; Integer counter = 2; do {   System.debug(index); index++; counter++; } while (index == 20 && counter == 21);
    • A. 

      The debug statement will output 1.

    • B. 

      The debug statement will repeat outputs from 1 to 21

    • C. 

      The debug statement will repeat outputs from 1 to 20.

    • D. 

      The debug statement will output 20.

  • 47. 
    A developer has a unit test that Is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex tool. The code then executes without failing. Why did the unit test fail, but not the Execute Anonymous?
    • A. 

      The test method has a syntax error in the code.

    • B. 

      The test method calls an @future method.

    • C. 

      The test method relies on existing data in the database.

    • D. 

      The test method uses a try/catch block.

  • 48. 
    What is printed from the following code? Integer a = 0; Integer b; a = a++; a++; Integer c = a*5; String s = String.valueOf(c)+a; System.debug(s + ';' + a + ';' + b);
    • A. 

      51;1;null

    • B. 

      6;1;0

    • C. 

      6;1;null

    • D. 

      51;1;0.

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

      Custom Button.

    • B. 

      Process Builder.

    • C. 

      Apex Trigger.

    • D. 

      Workflow Rule.

  • 50. 
    What are the three ways for a developer to execute tests in a org? Ref Choose 3 answers
    • A. 

      Developer Console.

    • B. 

      Bulk API.

    • C. 

      Metadata API

    • D. 

      Tooling API.

    • E. 

      Setup Menu.

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

      Enum

    • B. 

      Map<String, String>

    • C. 

      List<String>

    • D. 

      String[].

  • 52. 
    • A. 

      String qryName = ‘%’ + name + ‘%’; String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE :qryNAME’; List<Contact> query Result = Database.query(qryString);

    • B. 

      String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE \’%’ + name ; List<Contact> queryResult = Database.query(qryString);

    • C. 

      . String qryName = ‘%’ + String.enforceSecurityChecks(name) + ‘%’; String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE :qryNAME’; List<Contact> queryResult = Database.query(qryString);

    • D. 

      String qryName = ‘%’ + String.escapeSingleQuotes(name) + ‘%’; String qryString = ‘SELECT Id FROM Contact WHERE Name LIKE\’%’ + qryName + ‘%\’’; List<Contact> queryResult = Database.query(qryString);

  • 53. 
    What are two benefits of using the Lightning Component Framework? Choose 2 answers
    • A. 

      Lightning components render on the client, providing performance benefits.

    • B. 

      The Lightning Component Framework includes libraries for integrating with popular web services.

    • C. 

      Lightning components render on the server, ensuring greater security and access control.

    • D. 

      Lightning components are built using web standards, ensuring cross-browser compatibility.

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

      SOSL Search that includes ALL ROWS

    • B. 

      SOSL Search

    • C. 

      SOQL Query on each object

    • D. 

      SOQL Query that includes ALL ROWS.

  • 55. 
    Which tool can deploy destructive changes to Apex classes in production?
    • A. 

      Change Sets

    • B. 

      Developer Console

    • C. 

      Salesforce Setup

    • D. 

      Workbench.

  • 56. 
    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 Account lookup on the Contact object.

    • C. 

      Standard Lightning component.

    • D. 

      Workflow rule on the Contact object.

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

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

    • B. 

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

    • C. 

      A Lookup Relationship is a required field on an object.

    • D. 

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

  • 58. 
    -Universal Containers (UC) has an integration with its Accounting system that creates tens of thousands of Orders inside of Salesforce in a nightly batch. UC wants to add automaton that can attempt to match Leads and Contacts to these Orders using the Email Address field on the insert. UC is concerned about the performance of the automation with a large data volume. Which tool should UC use to automate this process?
    • A. 

      Workflow Rules

    • B. 

      Process Builder with an Autolaunched Flow

    • C. 

      Apex

    • D. 

      Process Builder

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

      As a List<String> with one element.

    • B. 

      As a string.

    • C. 

      As a string ending with a comma.

    • D. 

      As a Set<string> with one element.

  • 60. 
    When are code coverage calculations updated?
    • A. 

      When a deployment is validated.

    • B. 

      When changes are made to an organization's configuration.

    • C. 

      When unit tests are run on an organization.

    • D. 

      When Apex code is saved.

  • 61. 
    How are debug levels adjusted In the Developer Console?
    • A. 

      Under the Logs tab, click Change in the DebugLevels panel

    • B. 

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

    • C. 

      Under the Edit menu, dick Change DebugLevels.

    • D. 

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

  • 62. 
    What are two considerations for custom Apex Exception classes? Choose 2 answers.
    • A. 

      Custom Exception classes must extend the base Exception class.

    • B. 

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

    • C. 

      Custom Exception class names must end with the word 'Exception'.

    • D. 

      Custom Exceptions cannot be extended by other Exception classes.

  • 63. 
    A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the <apex:SelecList> 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. 

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

    • D. 

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

  • 64. 
    Which three declarative fields are correctly mapped to variable types in Apex. Choose 3 answers.
    • A. 

      Checkbox maps to Boolean

    • B. 

      Date/Time maps to Datetime

    • C. 

      Number maps to Integer

    • D. 

      TextArea maps to List of type String

    • E. 

      Number maps to Decimal.

  • 65. 
    • A. 

      A Lookup Relationship to the Movie object and a Master-Detail Relationship to the Actor object

    • B. 

      A Master-Detail Relationship to the Movie object and Master-Detail Relationship to the Actor object.

    • C. 

      A Master-Detail Relationship to the Movie object and Master-Detail Relationship to the Actor object.

    • D. 

      A Lookup Relationship to the Movie object and a Lookup Relationship to the Actor object.

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

      A static variable Is available outside of the scope of an Apex transaction.

    • B. 

      Allowed only in outer classes.

    • C. 

      Excluded from the view state for a Visualforce page. OPPURE Are NOT transmitted as part of the view state for a Visualforce page. ( Ans )

    • D. 

      Allowed only in inner classes.

    • E. 

      Initialized only when class is loaded.

  • 67. 
    What should a developer use to implement an automate approval process submission for case?
    • A. 

      A workflow rules.

    • B. 

      Scheduled apex.

    • C. 

      Process builder.

    • D. 

      An assignment rules.

  • 68. 
    Given Map accountMap = new map ([select id,name from account]): What are three valid apex loop structures for iterating trough items in the collection? Choose 3 answers
    • A. 

      For(ID accountID : accountMap.KeySet()){..}

    • B. 

      For(Account accountRecord:accountmap.values()){..}

    • C. 

      For(integer i=0;i< accountMap.Size();i++{..}

    • D. 

      For(Id accountID : accountMap){..}

    • E. 

      For(Account accountRecord : accountMap.keyset()){..}

  • 69. 
    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 action attribute must be set to a controller method.

    • D. 

      The controller or extension must have a PageReference method.

  • 70. 
    • A. 

      Create one visualforce page for use by both profiles.

    • B. 

      Use a custom controller has the with sharing keywords.

    • C. 

      Use a new support manager permission sets.

    • D. 

      Create a separate visualforce page for each profile.

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

      Scale your Dynos.

    • D. 

      Insure that you have installed a performance introspection add-on.

  • 72. 
    Which three options allow a developer to use custom styling in a Visualforce page? Choose 3 answers  
    • A. 

      .<apex: stylesheet> tag.

    • B. 

      <apex: style> tag.

    • C. 

      A static resource.

    • D. 

      <apex: stylesheets> tag.

    • E. 

      Inline CSS.

  • 73. 
    A developer created a Visualforce page and a custom controller with methods to handle different buttons and event 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 custom controller.

    • C. 

      Create a test class that provides coverage of the Visualforce page.

    • D. 

      Create a test page that provides coverage of the Visualforce page.

  • 74. 
    A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email Prior_Email__c field any time the Email field is changed: trigger test on Lead (before update) {             for(Lead Id: trigger.new){                         If (Id.Email != trigger.oldMap.get (Id.id).email){                                     Id.Prior_Email__c = trigger.oldMap.get (Id.id).email;                                     Update Id;                         }             } } Which type of exception will this trigger cause?
    • A. 

      A DML exception.

    • B. 

      A null reference exception.

    • C. 

      A compile time exception.

    • D. 

      A limit exception when doing a bulk update.

  • 75. 
    A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?
    • A. 

      Trigger execution order is not guaranteed for the same sObject.

    • B. 

      Trigger execution order is based on creation date and time.

    • C. 

      Unit tests must specify the trigger being tested.

    • D. 

      Developers must dictate the order of trigger execution.

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

      Public class CustomException extends Exception{}.

    • B. 

      Public class CustomException implements Exception{}.

    • C. 

      CustomException ex = new (CustomException)Exception();

    • D. 

      (Exception)CustomException ex = new Exception();

  • 77. 
    Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? Choose 2 answers
    • 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 SOQL for loops to iterate data retrieved from queries that return a high number of rows.

    • D. 

      Use methods from the “Limits” class to monitor governor limits.

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

      Create an e-mail template and use it in Process Builder.

    • B. 

      Create a visual flow that implements the company’s formatting.

    • C. 

      Install an application from the AppExchange to generate documents.

    • D. 

      Create a Visualforce page with custom styling.

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

      Timeline tab under Execution Overview panel.

    • B. 

      Execution Tree tab under Stack Tree panel.

    • C. 

      Performance Tree tab under Stack Tree panel.

    • D. 

      Save Order tab under Execution Overview panel.

  • 80. 
    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 List<String> with each value as an element in the list.

    • B. 

      AS a String with each value separated by a semicolon.

    • C. 

      As a String with each value separated by a comma.

    • D. 

      As a set<String> with each value as an element in the set.

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

      Access data in @TestVisible class variables.

    • B. 

      Execute anonymous code blocks that create data.

    • C. 

      Query for existing records in the database.

    • D. 

      Use a test data factory class to create test data.

  • 82. 
    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 step 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 try/catch within the unit test to catch the exception.

    • C. 

      Use database methods with all or none set to FALSE.

    • D. 

      Use Test.isRunningTest() within the customer controller.

  • 83. 
    What is a capability of the <ltng: require> tag that is used for loading external JavaScript libraries in Lightning Components? Choose 3 answers
    • A. 

      One-time Loading for duplicate scripts.

    • B. 

      Loading externally hosted scripts.

    • C. 

      Loading files from Documents.

    • D. 

      Loading scripts in parallel.

    • E. 

      Specify loading order.

  • 84. 
    How should a developer make sure that a child record on a custom object, with a look up to the Account object, has the same sharing access as its associated account?
    • A. 

      Create a Sharing Rule comparing the custom object owner to the account owner.

    • B. 

      Ensure that the relationship between the objects is Master-Detail.

    • C. 

      Create a Validation rule on the custom object comparing the record owners on both records.

    • D. 

      Include the sharing related list on the custom object page layout.

  • 85. 
    Which three tools can deploy metadata to production? Choose 3 answers.
    • A. 

      Force.com IDE.

    • B. 

      Change Set from Sandbox.

    • C. 

      Change Set from Developer Org.

    • D. 

      Data Loader.

    • E. 

      Metadata API.

  • 86. 
    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’]; What is the result of running this Apex?
    • A. 

      A QueryException is thrown.

    • B. 

      Accounts[0].contacts is invalid Apex.

    • C. 

      Account [0] is Null.

    • D. 

      Accounts [0].contacts is an empty list.

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

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

    • B. 

      Use @Testvisible on methods that create records.

    • C. 

      Use Test.startTest() to reset governor limits.

    • D. 

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

  • 88. 
    When should an Apex Trigger be required instead of 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 multiple records related needs to be created.

    • C. 

      When a record needs to be created.

    • D. 

      When a post to Chatter needs to be created.

  • 89. 
    • A. 

      AVERAGE, SUM, MIN, MAX.

    • B. 

      COUNT, SUM, MIN, MAX.

    • C. 

      SUM, MIN, MAX.

    • D. 

      AVERAGE, COUNT, SUM, MIN, MAX.

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

      Hardcode the ID as constant in an Apex class.

    • B. 

      Use the getRecordTypeInfosByName () method in the DescribeSObjectResult Class.

    • C. 

      Make an outbound web services call to the SOAP API.

    • D. 

      Execute a SOQL query on the RecordType Object.

  • 91. 
    Which statement results in an Apex Compiler error?
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

      Map<Id,Lead> Imap = new Map<Id,Lead> ([Select ID from Lead Limit 8]);

  • 92. 
    What are the two benefits of lightning components framework? Choose 2 answers
    • A. 

      It simplifies complexity when building pages, but not applications.

    • B. 

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

    • C. 

      It provides an event-drive architecture for better decoupling between components.

    • D. 

      It allows faster – PDf generation with lightning component.

  • 93. 
    • A. 

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

    • B. 

      Create a lookup field on the construction job object to the Machinery object.

    • C. 

      Create a master detail lookup on the Machinery object to the construction job object.

    • D. 

      Create a Junction Object with master detail relationship to both the machinery object and the construction job object.

  • 94. 
    While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standardPiceBook since one already exists in the org? How should the Developer overcome this problem?
    • A. 

      Use @isTest(SeeAllData = true) and delete the existing standard Price Book.

    • B. 

      Use Test.loadData() and a static Resource to load standard Price Book.

    • C. 

      Use @Test visible to allow the test method to see the standard price book.

    • D. 

      Use test.getStandardPricebookId() to get the standard Price book ID.

  • 95. 
    What are the two-valid option for iterating through each account in the collection List<Account> name AccountList? Choose 2 answers
    • A. 

      For (List L : AccountList {..}

    • B. 

      For (AccountList){..}

    • C. 

      For(Account  theAccount : AccountList) {..}

    • D. 

      For{integer i=0;i< Accountlist.size(); i++{..}

  • 96. 
    Which two number expressions evaluate correctly? Choose 2 answers
    • A. 

      Decimal d = 3.14159.

    • B. 

      Integer I = 3.14159.

    • C. 

      Long l =3.14159.

    • D. 

      Double d = 3.14159.

  • 97. 
    What is a benefit of using an after-insert trigger over using a before insert trigger?
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

      An after insert  trigger allows a developer to bypass validation rules when updating fields.

  • 98. 
    What are the eight officially supported languages on Heroku platform?
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

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

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

      Heroku Acm.

    • B. 

      Docker.

    • C. 

      App.json.

    • D. 

      Buildpacks ( Ans )

  • 100. 
    Why would a developer consider using a custom controller over a controller extension?
    • A. 

      To increase the SOQL query governor limits.

    • B. 

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

    • C. 

      The enforce user sharing settings and permissions.

    • D. 

      To leveragebuilt –In functionality of a standard controller.

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

      Controller = ‘case’ and extensions= ‘mycontrollerExtention”.

    • C. 

      Extensions = “myControllerExtension”.

    • D. 

      Controller = “myControllerExtension”.

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

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

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

  • 105. 
    While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard Pricebook since one already exist in the org. how should the developer overcome this problem?
    • 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.

  • 106. 
    A developer is asked to set a Picklist field to ‘Monitor’ on any new Leads owned by a subset of Users. How should the developer implement this request?
    • 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.

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

  • 108. 
    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 adds PriceBookEntry Record

    • D. 

      Build an OpportunityLineItem trigger to add OpportunityLineItem Record

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

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

    • B. 

      Use ConnectApi from Scheduled Apex.

    • C. 

      Use the streaming API to post to Chatter.

    • D. 

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

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

      All validation rules must be active before they can be deployed.

    • B. 

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

    • C. 

      All Apex code must be annotated with the with sharing keyword.

    • D. 

      SOQL queries must reference sObActs with their appropriate namespace.

  • 111. 
    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 the (!contact.Account.Name) merge field syntax.

    • B. 

      Use SOQL syntax to find the related Accounts Name field.

    • C. 

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

    • D. 

      Use an additional standard controller for Accounts

  • 112. 
    Which type of controller should a developer use to include a list of related records for a Custom Object record on a Visualforce page without needing additional test coverage?
    • A. 

      Standard Controller

    • B. 

      List Controller

    • C. 

      Controller Extension

    • D. 

      Custom Controller.

  • 113. 
    Universal Containers requires Service Representatives to update all Cases at least one every three days. To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?
    • A. 

      Workflow rule

    • B. 

      Formula field

    • C. 

      Process Builder

    • D. 

      Scheduled Apex Class.

  • 114. 
    What are two uses for External IDs? Choose 2 answers.
    • A. 

      To create relationships between records imported from an external system.

    • B. 

      To identify the sObject type in Salesforce.

    • C. 

      To prevent an Import from creating duplicate records using Upsert

    • D. 

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

  • 115. 
    • A. 

      ENUM

    • B. 

      External ID

    • C. 

      SObject

    • D. 

      String

  • 116. 
    Which three options can be accomplished with formula fields?      
    • 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

  • 117. 
    Select the ones you like
    • A. 

      Option1

    • B. 

      Option2

    • C. 

      Option3

    • D. 

      Option4

  • 118. 
    Which tag should a developer include when styling from external CSS is required a Visualforce Page?
    • A. 

      Apex: includeStyle

    • B. 

      Apex : require

    • C. 

      Apex : includeScript

    • D. 

      Apex : stylesheet

  • 119. 
    which two approaches optimize test maintenance and support future declarative configuration changes? Choose 2 answers.
    • A. 

      Create a method that queries for valid records, then call this method within test methods.

    • B. 

      Create a methods that loads valid Account records from a static resources, then call this method within test methods.

    • C. 

      Create a method that performs a callout for valid records, then call this method within test methods.

    • D. 

      Create a method that creates valid records,then call this method within test methods.

  • 120. 
    When a Task is created for a Contact, how can a developer prevent the task from being included on the Activity Timeline of the Contact's Account record?
    • A. 

      In Activity Settings, uncheck Roll up activities to a contact's primary account.

    • B. 

      By default, tasks do not display on the Account Activity Timiline.

    • C. 

      Use Process Builder to create a process to set the Task Account field to blank.

    • D. 

      Create a Task trigger to set the Account field to NULL

  • 121. 
    • A. 

      Lookup Relathionship from to child to the parent 

    • B. 

      Child relationship

    • C. 

      Master-Detail relationship

    • D. 

      Lookup Relathionship from to parent to the child

  • 122. 
    • A. 

      Create a trigger on the Rating object than updates a field on the Employee object.

    • B. 

      Create a roll-Up summary field on the Employee and use AVG to calculate the average rating score.

    • C. 

      Create a lookup relathionship between the Rating and Employee object.

    • D. 

      Create a master-detail relationship between the Rating and Employee objects.

  • 123. 
    • A. 

      Create a junction object to relate many people to many employers trough master-detail relationship

    • B. 

      Create a junction object to relate many people to many employers trough lookup relationship

    • C. 

      Create a lookup relationship to indicate that a person has an employer

    • D. 

      Create a master detail relationship to indicate that a person has an employer

  • 124. 
    A develope uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record. What must be done in the second test method to use the Account?
    • A. 

      The Account cannot be used in the second test method.

    • B. 

      Use SELECT id from Account where Name = 'Test'

    • C. 

      Call the Test Setup method at the start of the test.

    • D. 

      Restore the Account using an undelete statemant

  • 125. 
    A developer wants to handle the click event for a lightning:button component. The onclick attribute for the component references a JAvaScript function in which resources in the component bundle?
    • A. 

      Controller.js

    • B. 

      Renderer.js

    • C. 

      Helper.js

    • D. 

      Handler.js

  • 126. 
    A developer wants to use all of the functionally provided by the standard controller for an object, but needs to override the Save standard object action in a controller extension. Which two are required in the controller extension class?
    • A. 

      Create a method named Save with a return data type of PageReference.

    • B. 

      Create a method that references  this.superSave()

    • C. 

      Define the class with a constructor that takes an instance of StandardController as a parameter.

    • D. 

      Define the class with a constructor that creates a new instance of the StandardController class.

  • 127. 
    A developer has the following class and trigger code. public class InsuranceRates{       public static final Decimal smokerCharge = 0.01; } trigger ContactTrigger on Contact (before insert) {     InsuranceRates rates = new InsuranceRates ();     Decimal baseCost = XXX; } Which code segment should a developer insert at the XXX to set the baseCost variable to the value of the class variable smokerCharge?
    • A. 

      ContactTrigger.InsuranceRates.smokerCharge

    • B. 

      InsuranceRates.smokerCharge

  • 128. 
    Which two statements are true regarding formula fields?
    • A. 

      When using the & operator to concatenate strings, the result is automatically truncated to fit the destination.

    • B. 

      Fields that are referenced by formula field can not be deleted until the formula is modified or deleted.

    • C. 

      When concatening fields, line breaks can be added to improve readability.

    • D. 

      Formula fields may reference formula field on the same object to a level of one deep.

  • 129. 
    From which two locations can a developer determine the overall code coverage for a sandbox? Choose two answers
    • A. 

      The Apex classes setup page

    • B. 

      The Test Suite Run panel the Developer Console

    • C. 

      The Test Tab of the Developer Console

    • D. 

      The Apex Test Execution page

  • 130. 
    Which two statements are true about Apex code executed in Anonymous Blocks? Choose 2 answers
    • A. 

      Successful DML operations are automatically committed

    • B. 

      All DML operations are automatically rolled back

    • C. 

      The code runs with the permissions of the user specified in the runAs() statement

    • D. 

      The code runs with the permissions of the logged user.

    • E. 

      The code runs in system mode having access to all objects and fields.

  • 131. 
    A change set deployment froma sandobx to production fails due to a failure in a managed package unit test. The  developer spoke with the managed package owner and they determined it is a false positive and can be ignored.  What should the developer do to successfully deploy?
    • A. 

      Select 'Run local tests' to run only the tests that are in the change set.

    • B. 

      Select 'Fast Deploy' to run only the tests that are in the change set.

    • C. 

      Select 'Run local tests' to run all tests that in the org that are not in the managed package.

    • D. 

      Edit the manage package's unit test.

  • 132. 
    How many levels of child records can be returned in a single SOQL query from one parent object?
    • A. 

      1

    • B. 

      3

    • C. 

      5

    • D. 

      7

  • 133. 
    A developer needs to provide a way to mass edit, update, and delete record from a list view. In which two ways can this be accomplished? Choose 2 answers  
    • A. 

      Downoand a managed package from the AppExchange that provides customizable Enhanced List Views and buttons.

    • B. 

      Configure the user interface and enable both inline editing and enhanced lists.

    • C. 

      Download an unmanaged package from the AppExchange that provides customizable mass edit, update, and delete funcionalyy.

    • D. 

      Create a new Visualforce Page and Apec Controller for the list view that provides mass edit, update, and delete functionality.

  • 134. 
    Managed Packages can be created in which type of the org?
    • A. 

      Developer Sandobox

    • B. 

      Unlimited Edition

    • C. 

      Developer Edition

    • D. 

      Partial Copy Sandbox

  • 135. 
    How can a developer warn users of SOQL governor limit violations in a trigger?
    • A. 

      Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.

    • B. 

      Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.

    • C. 

      Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.

    • D. 

      Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.

  • 136. 
    Opportunity opp = [SELECT id, StageName FROM Opportunity LIMIT 1]; Given the code above, how can a developer get the label for the StageName field?
    • A. 

      Call 'Opportunity.StageName.getDescribe().getLabel()'.

    • B. 

      Call 'opp.StageName.getDescribe().getLabel()'

    • C. 

      Call 'opp.StageName.Label'

    • D. 

      Call 'Opportunity.StageName.Label'

  • 137. 
    An Account trigger updates all related Contacts and Cases each time an Account is saved using the following two DML statements: update allContacts; update allCases; What is the result if he Case update exceeds the governor limit for maximum number of DML records?
    • A. 

      The Account save succeeds, Contacts are updated, but Cases are not.

    • B. 

      The Account save fails and no Contacts or Cases are updated

    • C. 

      The Account save is retried using a smaller trigger batch size.

    • D. 

      The Account save succeeds and no Contacts or Cases are updated

  • 138. 
    A developer declared a class as follow. public class wysiwyg{   77properties and methods including DML } Which invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce organization?
    • A. 

      An Apex Trigger that invokes a helper method in this class

    • B. 

      A Visualforce page with an Apex controller that invokes a method in this class

    • C. 

      A user on an external system that has an API call into Salesforce that invokes a method in this class

    • D. 

      A developer using the Developer Console that invokes a method in thi class from the execute anonymous window

  • 139. 
    What is considered the primary purpose for creating Apex Tests?
    • A. 

      To confirm all classes and triggers compile successfully

    • B. 

      To ensure every use case of the application is covered by a test

    • C. 

      To confirm every trigger in executed at least once 

    • D. 

      To guarantee at least 50% of code is covered by unit tests before it is deployed

  • 140. 
    A developer is creating a Visualforce page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record. Hoe can the developer find the tcurrent user's default record type?
    • A. 

      Use the Schema.userInfo.Opportunity.getDefaultRecordType() method.

    • B. 

      Create the opportunity and check the opportunity.recordType before inserting, which will have the record ID of the current user's default record type

    • C. 

      Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method.

    • D. 

      Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate trought them until isdefaultRecordTypeMapping() is true.

  • 141. 
    The Account object has a custom formula field, Level__c, that is defined as a Formula (Number) with two decimal places. Which three are valid assignments? Choose 3 answers
    • A. 

      Object myLevel = acct.Level__c

    • B. 

      Integer myLevel = acct.Level__c

    • C. 

      Long myLevel = acct.Level__c

    • D. 

       Decimal myLevel = acct.Level__c

    • E. 

      Double myLevel = acct.Level__c

  • 142. 
    Which three resources in a Lightning Component Bundle can contain JavaScript functions?
    • A. 

      Controller 

    • B. 

      Style

    • C. 

      Helper

    • D. 

      Rendered

    • E. 

      Design

  • 143. 
    • A. 

      Add @Is Test(seeAllData=true) at the start of the unit test class

    • B. 

      Create test data before test.startTest() in the test unit.

    • C. 

      Use @TestSetup with a void method

    • D. 

      Create a mock using Stub API

  • 144. 
    An Apex transaction inserts 100 Account records and 2000 Contact records before encoutering a DML exception when attempting to insert 500 Opportunity records. The Account record are inserted by calling the database.insert() method with the allOrNone argument set to false. The Contact and Opportunity records are inserted using the standalone insert statement.  How many total records will be committed to the database in this transaction?
    • A. 

      100

    • B. 

      2000

    • C. 

      2100

    • D. 

      0

  • 145. 
    Which statement is true about developing in a multi-tenant environment?
    • A. 

      Governor limits prevent Apex from impacting the performance of multiple tenants on the same instance.

    • B. 

      Apex Sharing controls access to records from multiple tenants on the same instance

    • C. 

      Global Apex classes can be referenced from multiple tenants on the same instance

    • D. 

      Org-level data security controls which users can see data from multiple tenants on the same instance

  • 146. 
    A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
    • A. 

      Public void doWork(Record theRecord)

    • B. 

      Public void doWork(sObject theRecord)

    • C. 

      Public void doWork(Account Contact)

    • D. 

      Public void doWork(Account || Contatc)

  • 147. 
    Which two statements can a developer use to trow a custom exception of type MissingFieldValueException? Choose 2 answers
    • A. 

      Throw Exception (new MissingFieldValueException());

    • B. 

      Throw (MissingFieldValueException, 'Problem occurred');

    • C. 

      Throw new MissingFieldValueException();

    • D. 

      Throw new MissingFieldValueException ('Problem occurred');

  • 148. 
    • A. 

      Use Scema.RecordTypeInfo returned by RecordType.SObjectType.getDescribe().getRecordTypeInfos().

    • B. 

      Use Scema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues().

    • C. 

      Use Scema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues().

    • D. 

      Use Scema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribe().getRecordTypeInfos().

  • 149. 
    What should a developer use to obtain the Id and Name of all Leads, Accounts, and Contacts that have the company name "Universal Containers"?
    • A. 

      FIND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id,name), contact(id,name)

    • B. 

      SELECT lead(id, name), account(id, name), contact(id,name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'

    • C. 

      FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id,name), account (id,name), contact(id,name)

    • D. 

      SELECT Lead.id, Lead.Name, Account.id, Account.Name, Contact.Id, Contact.Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'

  • 150. 
    Which is a valid Apex assignement?
    • A. 

      Integer x = 5.0;

    • B. 

      Float x = 5.0;

    • C. 

      Integer x = 5*1.0;

    • D. 

      Double x = 5;

  • 151. 
    Which two statements are acceptable for a developer to use inside procedural loops? Choose 2 answers
    • A. 

      Contact con = new Contact();

    • B. 

      ContactList.remove(i);

    • C. 

      Delete contactList;

    • D. 

      Account a = [SELECT id, Name FROM account WHERE id = : con.AccountId LIMIT 1];

  • 152. 
    A developer needs to find information about @future methods that were invoked. From which system monitoring feature can the developer see this information?
    • A. 

      Scheduled jobs

    • B. 

      Apex Jobs

    • C. 

      Background Jobs

    • D. 

      Asynchronous Jobs

  • 153. 
    Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers
    • A. 

      Create an Account Roll-up Summary field to count open Opportunities

    • B. 

      Create an Opportunity Validation Rule to generate an error on insert

    • C. 

      Create an Account Trigger to generate an error on Opportunity insert

    • D. 

      Create an Opportunity Workflow Rule to auto-close the Opportunity

  • 154. 
    The sales teamat Universal Containers would like to see a visual indicator appear on both Account and opportunity page layouts to alert salespeople when an Account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without to write custom code?
    • A. 

      Quick Action

    • B. 

      Formula Field

    • C. 

      Roll-up Summary Field

    • D. 

      Workflow Rule

  • 155. 
    In the code below, which type does String inherit from? String s = 'Hello world';
    • A. 

      Prototype

    • B. 

      Object

    • C. 

      SObject

    • D. 

      Class

  • 156. 
    A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? Choose 3 answers
    • A. 

      RenderAs

    • B. 

      StandardController

    • C. 

      Extensions

    • D. 

      ReadOnly

    • E. 

      Action

  • 157. 
    Which two roll-up summary field types are required to find the average of values on detail records in a Master- Detail relatioship? Choose 2 answers
    • A. 

      Roll-up summary field of type COUNT

    • B. 

      Roll-up summary field of type SUM

    • C. 

      Roll-up summary field of type NUM

    • D. 

      Roll-up summary field of type TOTAL

  • 158. 
    How can a developer use a Set<Id> to limit the number of records returned by a SOQL query?
    • A. 

      Reference the Set in the LIMIT clause  of the query

    • B. 

      Pass the query results as an argument in a reference to the Set.containsAll() method.

    • C. 

      Pass the Set as an argument in a reference to the Database.query() method

    • D. 

      Reference the Set in the WHERE clause of the query

  • 159. 
    Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers
    • A. 

      By using an object standard set controller action

    • B. 

      By using ApexPages.currentPage()

    • C. 

      By using the PageReference.getURL() method

    • D. 

      By using an object standard controller action

  • 160. 
    What is a benefit of using a trigger framework? 
    • A. 

      Simplifies addition of context-specific logic

    • B. 

      Increases trigger governor limits

    • C. 

      Allows functional code to be tested by a test class

    • D. 

      Reduces trigger execution time

  • 161. 
    A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dinamically determine the ID of the required Record type by its name? Choose 2 answers
    • A. 

      Hardcode the ID as a constant in a Apex Class

    • B. 

      Use the getRecordTypeInfoByName() method in the DescribeSObjectResult class

    • C. 

      Make an outbound web services call to the SOAP API

    • D. 

      Execute a SOQL query on the RecordType object

  • 162. 
    Which option should a developer use to create 500 Account and make sure that duplicates are not created for existing Account Sites?
    • A. 

      Data Import Wizard

    • B. 

      Salesforce-to-Salesforce

    • C. 

      Sandbox template

    • D. 

      Data Loader

  • 163. 
    Which two conditions cause workflow rules to fire? Choose 2 answers
    • A. 

      Changing the territory assignments of accounts and opportunities 

    • B. 

      Updating records using the bulk API

    • C. 

      Converting leads to person accounts

    • D. 

      An Apex Batch process that changes field values

  • 164. 
    Which declarative process automation feature supports iterating over multiple records?\
    • A. 

      Flows

    • B. 

      Validation Rules

    • C. 

      Approval Process

    • D. 

      Workflow rules

  • 165. 
    Which type of code represents the Model in the MVC architecture on the Force.com platform?
    • A. 

      A Controller Extension method that uses SOQL to query for a list of Account records

    • B. 

      Custom JavaScript that processes a list of Account records. 

    • C. 

      A list of Account records returned from a Controller Extension method

    • D. 

      A Controller Extension method that saves a list of Account records

  • 166. 
    Which two SOQL searches will return records matching search criteria contained in any of the searchable text fields on an object? Choose 2 answers
    • A. 

      [FIND "Acme" RETURNING Account, Opportunity];

    • B. 

      [FIND "Acme" IN TEXT FIELDS RETURNING Account, Opportunity];

    • C. 

      [FIND "Acme" IN ANY FIELDS RETURNING Account, Opportunity];

    • D. 

      [FIND "Acme" IN ALL FIELDS RETURNING Account, Opportunity];

  • 167. 
    • A. 

      To send an email to a hiring manager when a candidate accepts a job offer

    • B. 

      To set the Name field of an expense report record to Expense and the Date when it is saved

    • C. 

      To notify an external system that a record has been modified

    • D. 

      To set the primary Contact on an Account record when it is saved

  • 168. 
    Which two practices should be used for processing records in a trigger? Choose 2 answers
    • A. 

      Use @future methods to handle DML operations.

    • B. 

      Use a Map to reduce the number of SOQL calls

    • C. 

      Use (callout=true) to update an external system

    • D. 

      Use a Set to ensure unique values in a query filter

  • 169. 
    Which two components are available to deploy using the Metadata API? Choose 2 answers
    • A. 

      Lead Conversion Settings

    • B. 

      Web-to-Lead

    • C. 

      Web-to-Case

    • D. 

      Case Settings

  • 170. 
    A developer needs to include a Visualforce page in the detail section of a page layout for the Account object, but does  not see the page as an available option in the Page Layout Editor. Which attribute must the developer include in the <apex: page> tag to ensure the Visualforce page can be embedded in a page layout?
    • A. 

      Action="AccountId"

    • B. 

      StandardController="Account"

    • C. 

      Extensions="AccountController"

    • D. 

      Controller="Account"

  • 171. 
    A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?
    • A. 

      Before delete

    • B. 

      After undelete

    • C. 

      After delete

    • D. 

      Before undelete

  • 172. 
    • A. 

      Text Area (Rich)

    • B. 

      Text Area (Long)

    • C. 

      Text

    • D. 

      Text Area

  • 173. 
    • A. 

      An exception is thrown if theContacts is empty

    • B. 

      The trigger processes more than 200 records in the for loop.

    • C. 

      An exception is thrown if Account_Date__c is null.

    • D. 

      A SOQL query is located inside of the for loop.

  • 174. 
    A developer creates a custom controller and custom Visualforce page by using the code block below. public class MyController {      public String myString {          get {             if (myString == null) {                 myString = 'a';             }             return myString;          }private set;     }     public String getMyString() {         return 'getMyString';     }     public String getStringMethod() {              if (myString == null) {             myString = 'b';         }         return myString;     } } <apex: page controller="MyController">     {! StringMethod}, {!myString}, {!myString}  </apex page> What can the user expect to see when accessing the custom page?
    • A. 

      A, a, a

    • B. 

      A, b, b

    • C. 

      B, a, getMyString

    • D. 

      A, b, getMyString

  • 175. 
    • A. 

      String qryName = '' + name + ''; String gryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryName'; List<Contact> queryResult = Database.query(gryString);

    • B. 

      String qryName = 'R' + String.escape Single Quotes (name) + ''; String gryString = 'SELECT Id FROM Contact WHERE Name LIKE \'' + qryName + '''; List<Contact> queryResult = Database.query(qryString);

    • C. 

      String gryString = 'SELECT Id FROM Contact WHERE Name LIKE \'' + name + '\''; List<Contact> queryResult = Database.query(qryString);

    • D. 

      String gryName = '' + String.enforce SecurityChecks (name) + ''; String gryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryName'; List<Contact> queryResult = Database.query(qryString);

  • 176. 
    • A. 

      Converting leads to person accounts

    • B. 

      An Apex Batch process that changes field values

    • C. 

      Updating records using the bulk API

    • D. 

      Changing the territory assignments of accounts and opportunities

  • 177. 
    Which three data types can be returned from an SOQL statement?
    • A. 

      String

    • B. 

      Single sObject

    • C. 

      Boolean

    • D. 

      Integer

    • E. 

      List of sObjects

  • 178. 
    Which three methods help ensure quality data?Choose 3 answers
    • A. 

      Sending an email alert using a workflow rule.

    • B. 

      Handling an exception in Apex.

    • C. 

      Creating a lookup filter.

    • D. 

      Adding an error to a field in a before trigger.

    • E. 

      Adding a validation rule.

  • 179. 
    How can a developer get all of the available record types for the current user on the Case object?
    • A. 

      Use DescribeFieldResult of the Case.RecordType field.

    • B. 

      Use DescribesObjectResult of the Case object

    • C. 

      Use SOQL to get all Cases

    • D. 

      Use Case.getRecordTypes.

  • 180. 
    • A. 

      5

    • B. 

      50

    • C. 

      500

    • D. 

      5000

  • 181. 
    How can a developer get all of the available record types for the current user on the Case object?
    • A. 

      Use DescribeFieldResult of the Case.RecordType field

    • B. 

      Use DescribesObjectResult of the Case object.

    • C. 

      Use SOQL to get all Cases.

    • D. 

      Use Case.getRecordTypes.

  • 182. 
    • A. 

      Cross-object formulas can expose data the user does not have access to in a record.

    • B. 

      Cross-object formulas can reference fields from objects that are up to 10 relationships away.

    • C. 

      Cross-object formulas can reference fields from master-detail or lookup relationships.

    • D. 

      Cross-object formulas can be referenced in roll-up summary fields

    • E. 

      Cross-object formulas can reference child fields to perform an average.

  • 183. 
    An Apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? Choose 2 answers
    • A. 

      Use Maps to reference related records.

    • B. 

      Use SOOL Aggregate queries to retrieve child records.

    • C. 

      Use Lists for all DML operations.

    • D. 

      Use the Database class to handle DML operations.

  • 184. 
    What are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers
    • A. 

      Type code into the Execute Anonymous tab in the Force.com IDE and click Execute.

    • B. 

      Use the SOAP API to make a call to execute anonymous code.

    • C. 

      Type code into the Developer Console and execute it directly.

    • D. 

      Create and execute a test method that does not specify a runA3 () call.

    • E. 

      Create a Visualforce page that uses a controller class that is declared without sharing.

  • 185. 
    Which two automation tools include a graphical designer?
    • A. 

      Process Builder

    • B. 

      Approvals

    • C. 

      Flow Builder

    • D. 

      Workflows

  • 186. 
    Candidates are reviewed by four separate reviewers and their comments and scores which range from 1 (lowest) to 5  (highest) are stored on a review record that is a detail record for a candidate. What is the best way to indicate that a combined review score of 15 or better is required to recommend that the candidate come in for an interview?
    • A. 

      Use a Workflow Rule to calculate the sum of the review scores and send an email to the hiring manager when the total is 15 or better.

    • B. 

      Use a Validation Rule on a total score field on the candidate record that prevents a recommended field from being true if the total score is less than 15.

    • C. 

      Use Visual Workflow to set a recommended field on the candidate whenever the cumulative review score is 15 or better.

    • D. 

      Use a Rollup Summary field to calculates the sum of the review scores, and store this in a total score field on the candidate.

  • 187. 
    Which feature allows a developer to create test records for use in test classes?
    • A. 

      Static Resources

    • B. 

      WebServiceTests 

    • C. 

      HttpCalloutMocks 

    • D. 

      Documents 

  • 188. 
    A developer needs to import customer subscription records into Salesforce and attach them to existing Account records.Which two actions should the developer take to ensure the subscription records are related to the correct Account records?
    • A. 

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

    • B. 

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

    • C. 

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

    • D. 

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

  • 189. 
    A developer has JavaScript code that needs to be called by controller functions in multiple components by extending a new abstract component. Which resource in the abstract component bundle allows the developer to achieve this?
    • A. 

      Controller.js

    • B. 

      SuperRender.js

    • C. 

      Renderer.js

    • D. 

      Helper.js

  • 190. 
    A developer wrote the following after insert trigger to create a follow-up Task whenever a new Task is created. List<Task> followuptasks = new List<Task>();      for ( Task theTask : Trigger.new) {         Task newTask = new Task (Status = 'New', Priority = 'Normal');          newTask. Subject = 'Follow-up for ' + theTask. Subject;          newTask. ActivityDate = Date.today().adddays (30);          followuptasks.add( newTask );         } insert followupTasks; What happens after the code block executes?
    • A. 

      The trigger enters an infinite loop and eventually fails.

    • B. 

      The trigger fails if the Task Subject is blank.

    • C. 

      A new Task is created for each Task in Trigger.new.

    • D. 

      Multiple Tasks are created for each Task in Trigger.new.

  • 191. 
    In order to override a standard action with a Visualforce page, which attribute must be defined in the <apex:page> tag?
    • A. 

      Controller

    • B. 

      PageReference

    • C. 

      StandardController

    • D. 

      Override

  • 192. 
    What can be used to delete components from production?
    • A. 

      A change set deployment with the delete option checked

    • B. 

      A change set deployment with a destructiveChanges XML file

    • C. 

      An ant migration tool deployment with a destructiveChanges XML file and the components to delete in the package.xml file

    • D. 

      An ant migration tool deployment with a destructiveChanges XML file and an empty package.xml file

  • 193. 
    • A. 

      ApexPages.StandardController controller = new ApexPages.StandardController (Database.getQueryLocator ('SELECT Id FROM ACCOUNT'));

    • B. 

      ApexPages.StandardsetController controller = new ApexPages.StandardSetController (Database.query('SELECT Id FROM Account'));

    • C. 

      ApexPages.StandardsetController controller = new ApexPages.StandardsetController (Database.getQueryLocator ([SELECT Id FROM Account]));

    • D. 

      Apex Pages.StandardsetController controller = new ApexPages.StandardsetController (Database.getQueryLocator ('SELECT Id FROM Account'));

    • E. 

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

  • 194. 
    • A. 

      It uses a junction object and master-detail relationships to allow many User records to be related to many other User records.

    • B. 

      It uses a master-detail relationship to allow one User record to be related to another User record.

    • C. 

      It uses a special lookup relationship to allow one User record to be related to another User record.

    • D. 

      It uses a junction object and lookup relationships to allow many User records to be related to many other User records.

  • 195. 
    A developer created a Visualforce page using a custom controller that calls an Apex helper class. A method in the helper class hits a governor limit. What is the result of the transaction?
    • A. 

      All changes made by the custom controller are saved.

    • B. 

      The helper class creates a savepoint and continues.

    • C. 

      The custom controller calls the helper class method again.

    • D. 

      All changes in the transaction are rolled back.

  • 196. 
    • A. 

      Incorporate Salesforce Lightning Design System CSS stylesheets into the JavaScript applications.

    • B. 

      Configure the User Interface options in the Setup menu to enable Legacy Mode for Visualforce.

    • C. 

      Replace the third-party JavaScript library with native Visualforce tags.

    • D. 

      Set the attribute enable Lightning to "true" in the definition.

  • 197. 
    A developer needs to update an unrelated object when a record gets saved. Which two trigger types should the developer create? Choose 2 answers
    • A. 

      Before update

    • B. 

      After insert

    • C. 

      Before insert

    • D. 

      After update

  • 198. 
    • A. 

      Map<Id, sObject>

    • B. 

      List<List<sObject >>

    • C. 

      Map<sObject, sObject>

    • D. 

      List<List<Account>, List<Opportunity >>

  • 199. 
    Which governor limit applies to all the code in an Apex transaction?
    • A. 

      Elapsed CPU time

    • B. 

      Elapsed SOQL query time

    • C. 

      Number of classes called

    • D. 

      Number of new records created

  • 200. 
    Account acct = (SELECT ID FROM Account LIMIT 1]; Given the code above, how can a developer get the type of object from acct?  
    • A. 

      Call "Account.getsobjectType()".

    • B. 

      Call "acct.getsobjectType()"

    • C. 

      Call "Account.SobjectType"

    • D. 

      Call "acct.sObjectType"

  • 201. 
    A developer wants multiple test classes to use the same set of test data. How should the developer create the test data?
    • A. 

      Create a Test Setup method for each test class

    • B. 

      Reference a test utility class in each test class.

    • C. 

      Use the SeeAllData=true annotation in each test class.

    • D. 

      Define variables for test records in each test class.

  • 202. 
    In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context?
    • A. 

      Before insert

    • B. 

      After update

    • C. 

      Before update

    • D. 

      After insert

  • 203. 
    Which type of code represents the View in the MVC architecture on the Force.com platform?
    • A. 

      Validation rules for a page layout that includes a related list of Cases

    • B. 

      Which type of code represents the View in the MVC architecture on the Force.com platform?

    • C. 

      A Visualforce page that displays information about Case records by iterating over a list of Cases

    • D. 

      An Apex method in an extension that returns a list of Cases

  • 204. 
    • A. 

      Change recordCount from private to public.

    • B. 

      Add the TestVisible annotation to the MyController class.

    • C. 

      Add the TestVisible annotation to record Count.

    • D. 

      Add the SeeAllData annotation to the test class.