- Salesforce Platform Developer I Certification Guide
- Jan Vandevelde Gunther Roskams
- 801字
- 2021-08-20 10:02:13
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:
- 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:
- 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.
- 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.
- 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.
- 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.
- 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?
- You create a formula field on object B and, in the formula, you reference the Status field from its related object A.
- You create an Apex trigger on object B to copy over the value of the Status field from its related object A record.
- You create a RUS field on object B, pulling in the Status from object A.
- 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.
- 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?
- WFRs
- Apex trigger
- The Process Builder
- Lightning flow
- A cross-object formula field can be one of the following:
- Reference fields from parent objects that have a Master-Detail relationship
- Reference fields from parent objects related through a lookup relationship only
- Reference fields from parent objects related through either a Master-Detail or a lookup relationship
- Reference fields from the same record only
- 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?
- You start by drawing the data model, create the objects, test them, validate them, and perform a RUS calculation
- You start by searching the AppExchange
- You advise HR management that this is not something that should reside in Salesforce
- You scratch your head because you have no clue how to start providing a solution for this requirement
- What are some implications of a multi-tenant environment when it comes to Salesforce?
- Resources are added to the instance whenever needed, so you should not worry about resource consumption
- Multi-tenant means that your org gets its own instance with all its resources dedicated to your org
- You should avoid using Salesforce at peak time as it is slower than usual, because everybody is using it at that time
- There are governor limits imposed by Salesforce on each org to prevent them consuming all of the instance resources
- In a multi-tenant environment, which of these statements is true?
- Your org shares a Salesforce instance with thousands of other orgs
- Your org shares a Salesforce instance with no more than 100 other orgs
- Your org has its own Salesforce instance
- All Salesforce orgs use the same Salesforce instance
- What's special about a formula field?
- It is calculated once every 24 hours
- It is calculated once every hour
- It is calculated only when you write the record into the database
- It is calculated every time when you read the record in question
- How is a managed package built?
- Through your Salesforce org's sandbox
- Through the enterprise edition of the Salesforce org
- Through the developer edition of the Salesforce org
- Through a Salesforce developer edition's sandbox
- 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?
- Build a flow using the Lightning flow
- Build rules by using WFRs to streamline the process
- Build a process by using the Process Builder
- Build this process by using the approval process