어느 Salesforce Developer의 개발 성장기

[Salesforce Certified Platform Developer1] Dump 오답 일기9 본문

Salesforce Dump/Platform Developer1 Dump

[Salesforce Certified Platform Developer1] Dump 오답 일기9

Developer_Foryou 2020. 3. 8. 01:02

※ 각 자격증별 Dump는 시험을 준비하면서, 
웹상에 공개된 Dump와 유료 Dump를 풀면서 자주 틀렸던 문제를 위주로 작성하였습니다. 
오래된 문제도 간혹 있기 때문에 버전에 따라 답이 다른 경우도 있으며,
개인이 공부하면서 푼 문제이기 때문에 오답일 가능성도 있습니다.
이점 유의하여 공부하시길 바랍니다.

 

A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits?

A. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded.
B. By using Messaging.sendEmail() to continue toe transaction and send an alert to the user after the number of DML statements is exceeded.
C. By using AmexMessage.Messages() to display an error message after the number of DML statements is exceeded.
D. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.

Answer D

A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current user'sprofile and display this on a Visualforce Page?

A. {!$Setup.Url_Settings__C.Instance[Profile.Id].URL__c}
B. {!$Setup.Url_Settings__C.URL__c}
C. {!$Setup.Url_Settings__C.[Profile.Id].URL__c}
D. {!$Setup.Url_Settings__C.[$Profile.Id].URL__c}

Answer B

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

A. A single sObject
B. An integer
C. A string
D. A list of sObjects
E. A Boolean

Answer A, B, D

A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines.What data model should be used to track the data and to prevent orphan records?

A. Create a junction object to relate many engines to many parts through a master-detail relationship
B. Create a lookup relationship to represent how each part relates to the parent engine object.
C. Create a master-detail relationship to represent the one-to-many model of engines to parts.
D. Create a junction object to relate many engines to many parts through a lookup relationship

Answer A

Which declarative method helps ensure quality data? (Choose 3)

A. Validation Rules
B. Workflow alerts
C. Exception Handling
D. Lookup Filters
E. Page Layouts

Answer A, D, E

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

A. By querying the role hierarchy.
B. By calling the isShared() method for the record.
C. By querying CustomObject__Share.
D. By calling the profile settings of the current user.

Answer C

What are two benefits of the Lightning Component framework? (Choose two.)

A. It simplifies complexity when building pages, but not applications.
B. It provides an event-driven architecture for better decoupling between components.
C. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.
D. It allows faster PDF generation with Lightning components.

Answer B, C

What should a developer use to implement an automatic Approval Process submission for Cases?

A. An Assignment Rule
B. Scheduled Apex
C. Process Builder
D. A Workflow Rule

Answer C

A developer encounters APEX heap limit errors in a trigger. Which two methods should the developer use to avoid this error? (Choose two.)

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.

What is the 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 extends a PageReference
C. Any top-level Apex class that has a default, no-argument constructor
D. Any top-level Apex class that implements the controller interface

Answer D

Comments