Salesforce Platform Developer 1 [PDF]

  • 0 0 0
  • Gefällt Ihnen dieses papier und der download? Sie können Ihre eigene PDF-Datei in wenigen Minuten kostenlos online veröffentlichen! Anmelden
Datei wird geladen, bitte warten...
Zitiervorschau



Salesforce Platform Developer 1 - Certification Practice Test 1

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

You did not answer. 1. Select an answer A. Custom exception .addError() B. AsyncException C. A try/catch construct D. .addError() E. CalloutException

2. 3. 4. 5. 6. 7.

8.

Which data type or collection of data types can SOQL statements populate or evaluate to? (Choose 3) What are two ways to use a custom Visualforce page? (Choose 2) Name two characteristics of a StandardSetController? (Choose 2) When you create an Apex helper class to handle complex trigger logic, how can the helper class warn users when DML Name three declarative methods that help ensure quality data (Choose 3) What kind of relationship between a Standard and a Custom Object can prevent the deletion of a Standard Object? Identify two requirements that need to be implemented by using the standard workflow instead of Process Builder? Incorrect.

Select an answer A. Send an outbound message without Apex code x B. Utilize a 3-step approval process for contracts C. Copy an Account address over to its related contacts D. Use the Schema getGlobalDescribe method What are two resources that can be included in a Lightning Component bundle? 9. (Choose 2) Which two features help a developer know if all tests currently pass in Salesforce 10. environment? (Choose 2) 11. A developer is creating an application to track cameras and their parts. Your client requires that the Lead Source field of the Lead record be populated when a 12. Lead is converted. 13. Describe three facts about change set deployments. (Choose 3)

Status Choose 3 A. Deploy custom settings data B. Used only between related organizations C. Require a deployment connection D. Transfer Contact records E. Use an all or none deployment model

14.

Name two ways to avoid exceeding governor limits when using an Apex Trigger. (Choose 2) What will automatically obey the organization-wide defaults and sharing settings for the user who executes code when a

Question: 15 of 40

What will automatically obey the organization-wide defaults and sharing settings for the user who executes code when a block of code has no indication of whether it should execute with or without sharing?

15. Incorrect.

Select an answer A. SOSL Query B. Apex Controllers C. Triggers D. HTTP Callouts

16. The Sales Management team hires a new intern. What is a best practice to follow when programming in Apex on a multi-tenant 17. platform? Hint: Think about governor What are two sets of code that represent the Controller in MVC architecture on the 18. Force.com platform? (Choose 2) 19. Which user can edit a record after it has been locked for approval? (Choose 2) A developer needs to automatically populate the ReportsTo field in a Contact record 20. based on the values of the related 21. Which two components are available to deploy using the Metadata API? (Choose 2) When using an ID parameter that is passed on the URL on a Visualforce page with a 22. custom controller, what is the best

Status Give three use cases that would require a partial copy or full sandbox. (Choose 3)

Question: 23 of 40

Give three use cases that would require a partial copy or full sandbox. (Choose 3)

Incorrect.

23. Select an answer A. Scalability Testing B. User Acceptance Testing C. Batch Data Testing D. Beta Testing E. Integration Testing

24. The Humane Society uses a custom object to track its adoption process. 25. Describe three capabilities of the Developer Console (Choose 3) What elements inform a valid Apex statement? (Choose 2) What elements inform a valid Apex statement? (Choose 2)

Incorrect. 26.

27.

Select an answer A. Account[] acctList = new List {new Account()}; B. Map useMap = [SELECT Name FROM User] C. Private static constant Triple rate = 8.85; D. List My_List = new List(); E. Integer a,b,c=123, D='xyz'; Candidates can apply to adopt a puppy by submitting a single application per pet posting.

Question: 27 of 40

Candidates can apply to adopt a puppy by submitting a single application per pet posting. Once it has been submitted, that application cannot be modified to be submitted to a different pet posting. How can you associate an application with each pet posting in the

Status schema for the organization? You did not answer.

Select an answer A.

Create a master-detail relationship from the Applications object to the Job Postings object

B.

Create a master-detail relationship in the Application Custom object to the Pet Postings custom object

C.

Create a relationship between Applications, Job Postings, and a junction object called Job Posting Applications.

D. Create a lookup relationship on the Application object to the Job Postings object.

What is the purpose of Test.startTest() and Test.stopTest()?

Question: 28 of 40

What is the purpose of Test.startTest() and Test.stopTest()? Incorrect.

28. Select an answer A. To create an additional set of governor limits B. To start and stop testing of Apex Code C. To indicate test code so that it does not impact Apex line count governor limits D. To avoid Apex code coverage requirements

Answer is A 29. What are three things you need to know about variable scope? (Choose 3) A developer wants to ensure that private methods can be accessed by the test class when 30. creating an Apex Class with 31. What is the minimum log level needed to see user-generated debug statements? What are three capabilities of formula fields? (Choose 3)

Question: 32 of 40 32. What are three capabilities of formula fields? (Choose 3)

Status Incorrect.

Select an answer A. Use the IF function to determine which of three different images to display B. Use the HYPERLINK function to generate a link C. Use the NOW function to determine if a datetime field has passed D. Use the PRIORVALUE function to display the previous value for a field E. Use the VLOOKUP function to return and display a field value from another object

Name two valid ways of loading external Javascript files into a VisualForce page? (Choose 2)

Question: 33 of 40

Name two valid ways of loading external Javascript files into a VisualForce page? (Choose 2)

33. Incorrect.

Select an answer A. Using css. define tag B. Using a tag C. Apex:includeScript D. Using HTML Script

An interviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. 35. Describe a scenario where a(n) unit test would be invalid? Name two resources that can incite events in the Lightning Component Framework (Choose 2) 34.

Question: 36 of 40 36. Name two resources that can incite events in the Lightning Component Framework (Choose 2)

Status Incorrect.

Select an answer A. Visualforce controller actions B. Controller extensions C. Third party web service code D. Javascript controller actions E. Third-party Javascript code

How can a developer determine from the describeSObjectResult if the current user will be able to create a record on an 38. Describe two actions a developer can perform in a before update trigger (Choose 2) A developer wants to delete a custom field from the Account object that was required 39. for prototyping, but is no longer 40. What are two capabilities of Force.com IDE? (Choose 2) 37.

Time Taken: 59:52

Answered Questions: 38 of 40 the test 1 Question: 1 of 40 A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? (Choose 3) Select an answer A. Custom exception .addError() B. AsyncException C. A try/catch construct D. .addError() E. CalloutException Question: 2 of 40

Which data type or collection of data types can SOQL statements populate or evaluate to? (Choose 3) Select an answerA. IntegerB. IDC. Single sObjectD. List of sObjectsE. Double Question: 3 of 40 What are two ways to use a custom Visualforce page? (Choose 2) Select an answerA. To deploy components from sandbox to productionB. To generate a PDF documentC. To automate Chatter postsD. To create components for dashboards and layoutsE. To modify the page layout settings for a custom object Question: 4 of 40 Name two characteristics of a StandardSetController? (Choose 2) Select an answerA. Pages can perform mass updatesB. When reading large record sets it enforces field-levelC. Pages can perform paginationD. The functionality is extended of a standard or custom controller malli na same questions chesam kada are these new? retest part 1 as the answers jumbled now. Q2) A, C, D ok Q3) B. To generate a PDF document, D. To create components for dashboards and layouts Q4)A, C Question: 5 of 40 When you create an Apex helper class to handle complex trigger logic, how can the helper class warn users when DML governor limits are exceeded? Select an answerA. Continue the transaction and send an alert to the user after the number of DML statements is exceeded by using Messaging.SendEmail()B. Redirect the user to a custom Visualforce page before the number of DML statements is exceeded by using PageReference.setRedirect()C. Limits.getDMLRows() ; display an error message before the number of DML statements exceededD. Display an error message after the number of DML statements is exceeded by using ApexMessage.Message() Question: 6 of 40 Name three declarative methods that help ensure quality data (Choose 3) Select an answer A. Parent-child object relationships B. Validation rules C. Lookup filters D. Page layouts

E. Workflow alerts F. Rollup Summary Fields Question: 7 of 40 What kind of relationship between a Standard and a Custom Object can prevent the deletion of a Standard Object? Select an answerA. Lookup RelationshipB. Custom Objects inherit security from referenced Standard ObjectsC. You aren't able to mark the lookup Relationship as required on the page layout for the Custom ObjectD. When the referenced Standard Object is deleted, the Custom Object will be deleted as well. Question: 8 of 40 Identify two requirements that need to be implemented by using the standard workflow instead of Process Builder? (Choose 2) Select an answerA. Send an outbound message without Apex code xB. Utilize a 3-step approval process for contractsC. Copy an Account address over to its related contactsD. Use the Schema getGlobalDescribe method Question: 9 of 40 What are two resources that can be included in a Lightning Component bundle? (Choose 2) Select an answerA. Apex triggersB. Adobe componentsC. JavascriptD. Documentation Q5) By using Limits.getDMLRows() and then displaying an error message before the number of DML statements exceeded. ont-fam����Ú= Question: 10 of 40 Which two features help a developer know if all tests currently pass in Salesforce environment? (Choose 2) Select an answerA. Workbench Metadata RetrievalB. Developer ConsoleC. Change SetsD. Force.com Migration ToolE. Salesforce UI Apex Test Execution Question: 5 of 40 When you create an Apex helper class to handle complex trigger logic, how can the helper class warn users when DML governor limits are exceeded? Select an answerA. Continue the transaction and send an alert to the user after the number of DML statements is exceeded by using Messaging.SendEmail()B. Redirect the user to a custom Visualforce page before the number of DML statements is exceeded by using PageReference.setRedirect()C. Limits.getDMLRows() ; display an error message before the number of DML statements exceededD. Display an error message after the number of DML statements is exceeded by using ApexMessage.Message() Q6) Name three declarative methods that help ensure quality data (Choose 3) C. validation rules D. Lookup filters

E. Page layouts

il>��?_�= ok till 6 its fine. Q7) A ok Q8)A, B Question: 11 of 40 A developer is creating an application to track cameras and their parts. An individual part can be used on different types of cameras. What data model should be used to track the data and to prevent orphan records? Select an answerA. Use a junction object and relate multiple engines to multiple parts via lookup relationshipB. Use a lookup relationship to show how each individual part relates to the parent engine object.C. Use a junction object to relate many cameras to many parts through a master-detail relationshipD. Use a master-detail relationship to show the one-tomany relationship between engines and parts. Q9) C, D Question: 12 of 40 Your client requires that the Lead Source field of the Lead record be populated when a Lead is converted. What would a developer use to ensure that a user populates the Lead Source field prior to converting a Lead? Select an answerA. Data LoaderB. Schema builderC. Validation RuleD. Workflow Question: 13 of 40 Describe three facts about change set deployments. (Choose 3) Select an answerA. Deploy custom settings dataB. Used only between related organizationsC. Require a deployment connectionD. Transfer Contact recordsE. Use an all or none deployment model Question: 14 of 40 Name two ways to avoid exceeding governor limits when using an Apex Trigger. (Choose 2) Select an answerA. Perform DML transactions on lists of ObjectsB. Invoke multiple triggers by using a helper classC. Use Maps to hold data from query resultsD. Handle DML transaction using the Database class Question: 15 of 40 What will automatically obey the organization-wide defaults and sharing settings for the user who executes code when a block of code has no indication of whether it should execute with or without sharing? Select an answerA. SOSL QueryB. Apex ControllersC. TriggersD. HTTP Callouts

Question: 16 of 40 The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record. What would a developer do to meet this requirement? Select an answerA. Create a rollup summary field on the Account object that performs a MAX on the Opportunity Close Date field.B. Create a Workflow Rule on the Account object that performs a MAX on any related Opportunity Close Date field.C. Create a formula field on the Opportunity object that updates a field on the parent Account.D. Create a trigger on the Opportunity object that queries the Close Date of the most recent Opportunities. Question: 17 of 40 What is a best practice to follow when programming in Apex on a multi-tenant platform? Hint: Think about governor limits. Select an answerA. To prevent access from other server tenants, apex classes use the "with sharing" keywordB. To reduce deployment errors, Apex code is created in a separate environmentC. To avoid possible data concurrency issues, DML is performed on one record at a timeD. Use queries that select the fewest fields and records possible to avoid exceeding governor limits Question: 18 of 40 What are two sets of code that represent the Controller in MVC architecture on the Force.com platform? (Choose 2) Select an answerA. A static resource that has images and CSS in itB. Custom Apex and JavaScript code that is used to manipulate dataC. Code that makes a menu item display itselfD. StandardController system methods that are referenced by Visualforce Q10)B, E Question: 19 of 40 Which user can edit a record after it has been locked for approval? (Choose 2) Select an answerA. AdministratorB. Any user who previously approved the recordC. User who is assigned as the current approverD. Any user who sits above other users in the role hierarchy Question: 20 of 40 A developer needs to automatically populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the Contact record. Which type of trigger would the developer create? (Choose 2) Select an answerA. Prior UpdateB. Prior InsertC. Before insertD. Before update Question: 21 of 40 Which two components are available to deploy using the Metadata API? (Choose 2) Select an answerA. Case LayoutB. Case Feed LayoutC. Console LayoutD. Account Layout

Question: 22 of 40 When using an ID parameter that is passed on the URL on a Visualforce page with a custom controller, what is the best practice for retrieving a record? Select an answerA. Use the ID to create a new PageReference objectB. Use $Action and view the method in the Visualforce pageC. Use the constructor method for the controllerD. Add the tag to the Visualforce page Question: 23 of 40 Give three use cases that would require a partial copy or full sandbox. (Choose 3) Select an answerA. Scalability TestingB. User Acceptance TestingC. Batch Data TestingD. Beta TestingE. Integration Testing

Question: 24 of 40 The Humane Society uses a custom object to track its adoption process. It would like to send adoption candidates' information automatically to a third-party system when an adoption candidate is selected to adopt an animal. What can a developer do to accomplish this task? Select an answerA. Create an escalation rule to the adoption manager.B. Create an auto response rule to the adoption candidate.C. Create a workflow rule with an outbound message action.D. Create a process builder including an outbound message action. Q11) C. Use a junction object to relate many cameras to many parts through a master-detail relationship Question: 25 of 40 Describe three capabilities of the Developer Console (Choose 3) Select an answerA. Execute Anonymous Apex CodeB. View Debug LogsC. Automate WorkflowsD. Create/Edit CodeE. Create custom objects Question: 26 of 40 What elements inform a valid Apex statement? (Choose 2) Select an answerA. Account[] acctList = new List {new Account()};B. Map useMap = [SELECT Name FROM User]C. Private static constant Triple rate = 8.85;D. List My_List = new List();E. Integer a,b,c=123, D='xyz'; Question: 27 of 40 Candidates can apply to adopt a puppy by submitting a single application per pet posting. Once it has been submitted, that application cannot be modified to be submitted to a different pet posting. How can you associate an application with each pet posting in the schema for the organization? Select an answerA. Create a master-detail relationship from the Applications object to the Job

Postings objectB. Create a master-detail relationship in the Application Custom object to the Pet Postings custom objectC. Create a relationship between Applications, Job Postings, and a junction object called Job Posting Applications.D. Create a lookup relationship on the Application object to the Job Postings object. Q26)A Q25)A, B,D Q24)C Q22) C Q23) A, B, C not sure Q21) A, D Q20) C, D Q19)A, C Q18)B, D Q17) D. Use queries that select the fewest fields and records possible to avoid exceeding governor limits Q16) A. Create a rollup summary field on the Account object that performs a MAX on the Opportunity Close Date field Q15)A Q14)A, C Q13)C, E Q12)C Q11)C Question: 27 of 40 Candidates can apply to adopt a puppy by submitting a single application per pet posting. Once it has been submitted, that application cannot be modified to be submitted to a different pet posting. How can you associate an application with each pet posting in the schema for the organization? Select an answerA. Create a master-detail relationship from the Applications object to the Job Postings objectB. Create a master-detail relationship in the Application Custom object to the Pet Postings custom objectC. Create a relationship between Applications, Job Postings, and a junction object called Job Posting Applications.D. Create a lookup relationship on the Application object to the Job Postings object. Question: 28 of 40 What is the purpose of Test.startTest() and Test.stopTest()? Select an answerA. To create an additional set of governor limitsB. To start and stop testing of Apex CodeC. To indicate test code so that it does not impact Apex line count governor limitsD. To avoid Apex code coverage requirements Question: 29 of 40 What are three things you need to know about variable scope? (Choose 3) Select an answerA. Sub-blocks cannot reuse the same variable nameB. If the current block's values are null, a static variable can restrict scopeC. Variables can be defined at any point in the blockD. Parent block's variable name cannot be reused by Sub-blocksE. Parallel blocks can use the same variable name

Question: 30 of 40 A developer wants to ensure that private methods can be accessed by the test class when creating an Apex Class with private methods. How can the developer do this? Select an answerA. Modify the code in your class to expose public methodsB. Add the SeeAllData attribute to the test methodsC. Ensure TestVisible attribute is addedD. Add the SeeAllData attribute to the test class Question: 31 of 40 What is the minimum log level needed to see user-generated debug statements? Select an answerA. FINEB. WARNC. DEBUGD. INFO Question: 32 of 40 What are three capabilities of formula fields? (Choose 3) Select an answerA. Use the IF function to determine which of three different images to displayB. Use the HYPERLINK function to generate a linkC. Use the NOW function to determine if a datetime field has passedD. Use the PRIORVALUE function to display the previous value for a fieldE. Use the VLOOKUP function to return and display a field value from another object Question: 33 of 40 Name two valid ways of loading external Javascript files into a VisualForce page? (Choose 2) Select an answerA. Using css. define tagB. Using a tagC. Apex:includeScriptD. Using HTML Script Question: 34 of 40 An interviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement? Select an answerA. Validation ruleB. Create an APEX triggerC. Create a required long text fieldD. Create a required workflow rule Question: 35 of 40 Describe a scenario where a(n) unit test would be invalid? Select an answerA. When loading test data instead of user input to test flowsB. Boundary value analysisC. Writing positive test casesD. Writing negative test cases Question: 36 of 40 Name two resources that can incite events in the Lightning Component Framework (Choose 2) Select an answerA. Visualforce controller actionsB. Controller extensionsC. Third party web service codeD. Javascript controller actionsE. Third-party Javascript code

Question: 37 of 40 How can a developer determine from the describeSObjectResult if the current user will be able to create a record on an object in Apex? Select an answerA. By using the canCreatable() methodB. Use the Schema getGlobalDescribe methodC. By using the isCreatable() method Question: 38 of 40 Describe two actions a developer can perform in a before update trigger (Choose 2) Select an answerA. Use a delete DML operation to delete the original objectB. Display a custom error message in the application interfaceC. Use an update DML operation to update the original objectD. Change field values using the Trigger.new context variable Q28)B Question: 39 of 40 A developer wants to delete a custom field from the Account object that was required for prototyping, but is no longer needed. How can they achieve this using Schema Builder? Select an answerA. Use the Schema Builder to mark the field for deletion and then remove it from the declarative UIB. Remove references in the code and then the field will be deleted from the Schema BuilderC. Remove the field from Schema Builder and then references in the code will be removedD. Remove all references from the code and then delete the custom field from Schema Builder Q27) please park Question: 40 of 40 What are two capabilities of Force.com IDE? (Choose 2) Select an answerA. Create a Client Side ControllerB. Implement logic using custom controllerC. Generate an AsyncExceptionD. Run Apex testsE. Edit metadata components Q29)A, C, E Q30)C Q31)C Q32)A, C, E Q33)Please park Q34)A Q35)A Q36)please aprk Q37) C. By using the isCreatable() method Q38)B, D Q39)D Q40)D, E Q33) A. Using an (apex:includeScript)* tag. \\> Q33) B, C 23) B, C, E submit now

Congratulations, you have passed the assessment. You answered 29 question(s) correctly out of 40 or 72%. Congratulations! You passed the Salesforce Platform Developer 1 certification practice test 1 with a score of 70% or higher. thank god