Quiz

You'll find all the answers to each chapter summary quiz at the end of this book (in the Appendix). Try to answer the questions first without looking at the answers:

  1. Your manager wants you to build a solution that deletes all open tasks related to an opportunity when the Opportunity stage is set to Closed Won. In what ways could you build out this solution? Select two answers:
    1. Write an Apex trigger that fires when the Opportunity Stage updates to Closed Won, queries all the related Tasks that have an Open status for that opportunity and then deletes them.
    2. Create a Process Builder that performs a delete action on all the related Children of the Task type with Status Open, when the Opportunity Stage is set to Closed Won.
    3. Create a Process Builder that calls a Lightning flow whenever an Opportunity Stage reaches Closed Won. The flow then queries all Tasks related to the opportunity that kicked off the Process Builder with a status of Open, and deletes them.
    4. Create a Process Builder that calls an Apex trigger whenever an Opportunity Stage reaches Closed Won. The trigger then queries all related Tasks with a status of Open for that opportunity and deletes them.
  1. Object B has a master-detail relationship to object A, so A is the parent of B. You want to display the value of the Status field from object A on the record of object B. How could you do this?
    1. You create a formula field on object B and, in the formula, you reference the Status field from its related object A.
    2. You create an Apex trigger on object B to copy over the value of the Status field from its related object A record.
    3. You create a RUS field on object B, pulling in the Status from object A.
    4. You use the Process Builder to fire off on object B to copy over the value of the Status field from its related object A record.
  1. A business user would like you to send a notification whenever a case is put in the Closed status to the case owner's manager, and to post this on Chatter. What's the best tool to use?
    1. WFRs
    2. Apex trigger
    3. The Process Builder
    4. Lightning flow
  1. A cross-object formula field can be one of the following:
    1. Reference fields from parent objects that have a Master-Detail relationship
    2. Reference fields from parent objects related through a lookup relationship only
    3. Reference fields from parent objects related through either a Master-Detail or a lookup relationship
    4. Reference fields from the same record only
  1. Your company is in need of a recruitment application for its HR department including jobs, job postings, applicants, and more. How would you go about this?
    1. You start by drawing the data model, create the objects, test them, validate them, and perform a RUS calculation
    2. You start by searching the AppExchange
    3. You advise HR management that this is not something that should reside in Salesforce
    4. You scratch your head because you have no clue how to start providing a solution for this requirement
  1. What are some implications of a multi-tenant environment when it comes to Salesforce?
    1. Resources are added to the instance whenever needed, so you should not worry about resource consumption
    2. Multi-tenant means that your org gets its own instance with all its resources dedicated to your org
    3. You should avoid using Salesforce at peak time as it is slower than usual, because everybody is using it at that time
    4. There are governor limits imposed by Salesforce on each org to prevent them consuming all of the instance resources
  2. In a multi-tenant environment, which of these statements is true?
    1. Your org shares a Salesforce instance with thousands of other orgs
    2. Your org shares a Salesforce instance with no more than 100 other orgs
    3. Your org has its own Salesforce instance
    4. All Salesforce orgs use the same Salesforce instance
  3. What's special about a formula field?
    1. It is calculated once every 24 hours
    2. It is calculated once every hour
    3. It is calculated only when you write the record into the database
    4. It is calculated every time when you read the record in question
  4. How is a managed package built?
    1. Through your Salesforce org's sandbox
    2. Through the enterprise edition of the Salesforce org
    3. Through the developer edition of the Salesforce org
    4. Through a Salesforce developer edition's sandbox

  1. Your company asks you to create a process that automates holiday requests. There should be two levels of acceptance before the holiday request is granted—first, by the direct manager of the requestor, and then by the HR manager. How would you do this?
    1. Build a flow using the Lightning flow
    2. Build rules by using WFRs to streamline the process
    3. Build a process by using the Process Builder
    4. Build this process by using the approval process