티스토리 뷰
1. A developer creates a custom exception as shown below: What are two ways the developer can fire the exception in Apex? (Choose 2 answers)
- A. Throw new ParityException (parity does not match);
- B. New ParityException( );
- C. Throw new parityException ( );
- D. New ParityException (parity does not match);
2. Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? (Choose 2 answers.) (Similar)
- A. Throw new MissingFieldValueException();
- B. Throw (MissingFieldValueException, 'Problem occurred');
- C. Throw Exception (new MissingFieldValueException());
- D. Throw new MissingFieldValueException ('Problem occurred');
3. A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception? (choose 2 answers) (Similar)
- A. Throw RecordNotFoundException();
- B. Throw new RecordNotFoundException("problem occured");
- C. Throw new RecordNotFoundException();
- D. Throw RecordNotFoundException("problem occured");
4. What is a key difference between a Master-Detail Relationship and a Lookup Relationship?
- A. When a record of a master object in a Master-Detail Relationship is deleted, the detail records are kept and not deleted.
- B. When a record of a master object in a Lookup Relationship is deleted, the detail records are also deleted.
- C. A Master-Detail Relationship detail record inherits the sharing and security of its master record.
- D. A Lookup Relationship is a required field on an object.
5. What should be used to create scratch orgs?
- A. Salesforce CLI
- B. Workbench
- C. Developer Console
- D. Sandbox refresh
6. A developer wants to invoke on outbound message when a record meets a specific criteria. Which three features satisfy this use case? (Choose 3 answer) (check)
- A. workflows can be used to check the record criteria and send an outbound message.
- B. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.
- C. Approval Process has the capacity to check the record criteria and send an outbound message without Apex Code
- D. Process builder can be used to check the record criteria and send an outbound message without Apex Code.
- E. Process builder can be used to check the record criteria and send an outbound message with Apex Code.
- + Process Builder cannot send outbound message.
7. A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override. What is the correct implementation of the ShippingCalculator class?
- B. Public abstract class ShippingCalculator { public virtual void calculate() { /*implementation*/ } }
- + The extending class can override the existing virtual methods by using the override keyword in the method definition. Overriding a virtual method allows you to provide a different implementation for an existing method.
- + virtual이어야만 상속이 가능하다.
8. A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/} } Which is the correct implementation? (Similar)
- B. Public class CreditcardPayment extends Payment {
- public override void makePayment(Decimal amount) { /*implementation*/ }
- }
9. Universal Container uses Service Cloud with a custom field, stage_c, on the Case object. Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to '';Waiting on customer'' The .... Administrator wants to ensure the solution used is bulk safe. Which two automation tools should a developer recommend to meet these business requirements? (Choose 2 answers) (check)
- A. Einstein Next Best Action
- B. Record_Triggered Flow
- C. Process Builder
- D. Scheduled Flow
10. How should a developer write unit tests for a private method in an Apex class?
- A. Use the SeeAllData annotation.
- B. Mark the Apex class as global.
- C. Use the TestVisible annotation.
- D. Add a test method in the Apex class.
11. A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class? (Similar)
- A. Add the SeeAllData attribute to the test methods.
- B. Add the TestVisible attribute to the apex methods.
- C. Add the SeeAllData attribute to the test class
- D. Add the TestVisible attribute to the Apex class
12. In the following example,
public Class Myclass ( public void Mymethod() { /* implementation */ } }
which sharing context will myMethod execute when it is invoked?
- A. Sharing rules will not be enforced for the running user.
- B. Sharing rules will be inherited from the calling context.
- C. Sharing rules will be enforced for the running user.
- D. Sharing rules will be enforced by the instantiating class
- + 클래스가 공유가 있거나 공유가 없는 것으로 명시적으로 선언되지 않은 경우 현재 공유 규칙은 계속 적용된다.
13. A third-party vendor created an unmanaged Lightning web component. The Salesforce Administrator wishes to expose the component only on Record Page Layouts. Which two actions should the developer take to accomplish this business objective? (Choose 2 answers)
- A. Specify lightningCommunity_Page_Layout as a target in the XML file.
- B. Ensure isExposed is set to true on the XML file.
- C. Specify lightningCommunity_Page as a target in the XML file.
- D. Specify lightning_RecordPage as a target in the XML file.
14. A developer must create a lightning component that allows users to input contact record information to create a contact record, including a salary__c custom field. what should the developer use, along with a lightning-record-edit form, so that salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on salary__C? (check)
- A. <lightning-formatted-number value="Salary__c" format-style="currency">
</lightning-formatted-number>
- B. <ligthning-input-field field-name="Salary__c">
</lightning-input-field>
- C. <lightning-input type="number" value="Salary__c" formatter="currency">
</lightning-input>
- D. <lightning-input-currency value="Salary__c">
</lightning-input-currency>
15. The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:
Which governor limit will likely be exceeded within the Apex transaction? (check) (***)
- A. Total number of records processed as a result of DML statements ( 10000 )
- B. Total number of DML statement issued ( 150 max )
- C. Total number of SOQL queries issued ( 100 )
- D. Total number of records retrieved by SOQL queries ( 50000 max )
16. Refer to the following code that runs in an Execute Anonymous block: (Similar)
- A. The total number of records processed as a result of DML statements will be exceeded
- B. The total number of DML statements will be exceeded.
- C. The total number of records processed as a result of DML statements will be exceeded.
- D. In an environment where the full result set is returned, what is a possible outcome of this code.
- E. The transaction will succeed and the first ten thousand records will be committed to the database.
17. A developer runs the following anonymous code block in a Salesforce org with 100 accounts List acc= {select id from account limit 10}; delete acc; database.emptyrecyclebin(acc); system.debug(limits.getlimitqueries()+' ,'+Limits.getlimitDMLStatements()); What is the debug output? (Similar)
- A. 150, 100
- B. 10, 2
- C. 100, 150
- D. 1, 2
18. A developer writes the following code: What is the result of the debug statement? (Similar)
- A. 2, 200
- B. 1, 100
- C. 2, 150
- D. 1, 150
19. A developer has the following requirements:
Calculate the total amount on an Order.
Calculate the line amount for each Line Item based on quantity selected and price.
Move Line Items to a different Order if a Line Item is not stock.
Which relationship implementation supports these requirements?
- A. Order has a Lookup field to Line Item and there can be many Line Items per Order.
- B. Order has a Master-Detail field to Line Item and there can be many Line Items per Order.
- C. Line Item has a Lookup field to Order and there can be many Line Items per Order
- D. Line Items has a Master-Detail field to Order and the Master can be re-parented.
20. A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders. What should a developer do to allow their code to move some existing Orderltem records to a new Order record?
- A. Add without sharing to the Apex class declaration.
- B. Change the master-detail relationship to an external lookup relationship.
- C. Create a junction object between Orderltem and Order.
- D. Select the Allow reparenting option on the master-detail relationship.
21. When importing and exporting data into Salesforce, which two statements are true? (Choose 2 answers) (check)
- A. Data import wizard is a client application provided by Salesforce.
- B. Developer and Developer Pro sandboxes have different storage limits.
- C. Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.
- D. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.
- + client application에 대한 설명은 Data Loader에 대한 설명이다.
22. Which code in a Visualforce page and/or controller might present a security vulnerability?
- A. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />
- B. <apex:outputText value="{!£CurrentPage.parameters.userInput}" />
- C. <apex:outputField value="{!ctrl.userInput}" />
- D. <apex:outputField escape="false" value="{!ctrl.userInput}" />
23. A Salesforce developer wants to review their code changes immediately and does not want to install anything on their computer or on the org. Which tool is best suited?
- A. Developer Console
- B. Salesforce Extension for VSCode
- C. Third-party apps from App Exchange
- D. Setup Menu
24. Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds ^Decommissioned" as a picklist value for the Status__: custom field within the Contact__c object. Which tool should the developer use to enforce only Container records with a status of "Decommissioned" can be deleted?
- A. Apex trigger
- B. Before record-triggered flow
- C. Validation rule
- D. After record-triggered flow
- + Validation rules are only executed on insert or update and NOT delete
25. AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object. The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations. What should a developer add to fulfill this requirement? (Check)
- A. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c
- B. Order_shipment_Group_c object and master-detail field on order_shipment_Group_c
- C. Order_shipment_Group_c object and master-detail field on order_Line_c
- D. Order_shipment_Group_c object and master-detail field on order_c
26. An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a Master Detail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price. What is the correct implementation? (Similar)
- A. Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order.
- B. Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.
- C. Implement the line amount as a number formula field and the order amount as a roll-up summary field.
- D. Implement the Line amount as a currency field and the order amount as a SUM formula field.
- + There is no Sum formula field in salesforce.
27. A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component. In which two ways can this be accomplished? (Choose 2 answers)
- A. The parent component can invoke a method in the child component
- B. The parent component can use a public property to pass the data to the child component.
- C. The parent component can use a custom event to pass the data to the child component.
- D. The parent component can use the Apex controller class to send data to the child component.
28. In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? (Choose 2 answers)
- A. Self-contained and reusable units of an application
- B. Automatic code generation
- C. Server-side run-time debugging
- D. Rich component ecosystem
29. What are two correct examples of the model in the salesforce MVC architecture? (Choose 2 answers.) (check) (Similar)
- A. Standard account lookup on the contract object
- B. Workflow rule on the contact object
- C. Standard lightning component
- D. Custom field on the custom wizard_c object
30. Which type of code represents the view in the MVC architecture on the Force.com platform? (Similar)
- A. An apex method that executes SOQL to retrieve a list of cases.
- B. A visualforce page that displays information about case records by iterating over a list of cases.
- C. An apex method in an extension that returns a list of cases.
- D. Validation rules for a page layout that includes a related list of cases.
31. Which type of code represents the Model in the MVC architecture when using Apex and Visualforce pages? (Check) (Similar)
- A. A Controller Extension method that saves a list of Account records.
- B. Custom JavaScript that processes a list of Account record.
- C. A list of Account records returned from a Controller Extension method.
- D. A Controller Extension method that uses SOQL to query for a list of Account records.
32. Which type of code represents the Controller in MVC architecture on the Force.com platform? (Choose 2) (Similar)
- A. JavaScript that is used to make a menu item display itself.
- B. StandardController system methods that are referenced by Visualforce.
- C. Custom Apex and JavaScript coda that is used to manipulate data.
- D. A static resource that contains CSS and images.
33. Which two platform features align to the Controller portion of MVC architecture? (Choose two.) (Similar)
- A. Date fields
- B. Process Builder actions
- C. Workflow rules
- D. Standard objects
34. Which two statements accurately represent the MVC framework implementation in Salesforce? (Choose 2 answers) (Similar)
- A. Standard and Custom objects used in the app schema represent the View (V) part of the MVC framework
- B. Validation rules enforce business rules and represent the Controller (C) part of the MVC framework
- C. Triggers that create records represent the Model (M) part of the MVC framework.
- D. Lightning component HTML files represent the Model (M) part of the MVC framework.
35. In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? (Choose 2 answers) (Similar)
- A. Self-contained and reusable units of an application
- B. Rich component ecosystem
- C. Server-side run-time debugging
- D. Automatic code generation
- + https://developer.salesforce.com/docs/atlas.en-us.226.0.lightning.meta/lightning/intro_benefits.htm
36. Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? (Choose 3 answers) (check) (Similar)
- A. Custom Objects and Fields
- B. Triggers
- C. Relationships
- D. Roll-Up Summaries
- E. Process Builder
- https://trailhead.salesforce.com/ko/content/learn/modules/apex_patterns_sl/apex_patterns_sl_soc
37. A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page. Without writing unnecessary code, which controller should be used for this purpose?
- A. Standard controller
- B. Lightning controller
- C. Custom controller
- D. Standard list controller
38. Given the following trigger implementation:
trigger leadTrigger on Lead (before update){
final ID BUSINESS_RECORDTYPEID = '012500000009Qad';
for(Lead thisLead : Trigger.new){
if(thisLead.Company != null && thisLead.RecordTypeId != BUSINESS_RECORDTYPEID){
thisLead.RecordTypeId = BUSINESS_RECORDTYPEID; } } }
The developer receives deployment errors every time a deployment is attempted from Sandbox to Production. What should the developer do to ensure a successful deployment? (check)
- A. Ensure the deployment is validated by a System Admin user on Production.
- B. Ensure BUSINESS_RECORDTYPEID is retrieved using Schema.Describe calls.
- C. Ensure a record type with an ID of BUSINESS_RECORDTYPEID exists on Production prior to deployment.
- D. Ensure BUSINESS_RECORDTYPEID is pushed as part of the deployment components.
39. Which three statements are true regarding custom exceptions in Apex? (Choose three.)
- A. A custom exception class name must end with "Exception".
- B. A custom exception class cannot contain member variables or methods.
- C. A custom exception class must extend the system Exception class.
- D. A custom exception class can implement one or many interfaces.
- E. A custom exception class can extend other classes besides the Exception class.
40. What is the order of operations when a record is saved in Salesforce?
- A. Workflow, process flows, triggers, commit
- B. Workflow, triggers, process flows, commit
- C. Triggers, workflow, process flows, commit
- D. Process flows, triggers, workflow, commit
41. Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?
- A. Use the Data Loader command line.
- B. Define a Data Export scheduled job.
- C. Create a Schedulable Apex class.
- D. Schedule a report.
42. A team of many developers work in their own individual orgs that have the same configuration at the production org. Which type of org is best suited for this scenario?
- A. Developer Sandbox
- B. Developer Edition
- C. Full Sandbox
- D. Partner Developer Edition
43. Which salesforce org has a complete duplicate copy of the production org including data and configuration? (Similar)
- A. Partial Copy Sandbox
- B. Production
- C. Developer Pro Sandbox
- D. Full Sandbox
44. In which two org types can a developer create new Apex Classes? (Choose 2 answers) (Similar)
- A. Enterprise Edition
- B. Developer Edition
- C. Sandbox
- D. Unlimited
45. 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 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for testing? (Choose two.) (Similar)
- A. Partial Sandbox
- B. Developer Sandbox
- C. Developer Edition
- D. Full Sandbox
- E. Developer Pro Sandbox
46. What are two characteristics of partial copy sandboxes versus full sandboxes? (Choose 2 answers) (check) (Similar)
- A. Provides more data record storage.
- B. Includes a subset of metadata
- C. Requires a sandbox template
- D. Supports more frequent refreshes.
47. What is true for a partial sandbox that is not true for a full sandbox? (Choose 2 answers) (Similar)
- A. Only Includes necessary metadata.
- B. Limited to 5 GB of data.
- C. Use of change sets.
- D. More frequent refreshes.
- + Refresh Interval (5 and 29 days) and Data Storage is the difference (5GB and same as Production). Both of them include metadata.
48. A developer of Universal Containers is tasked with implementing a new Salesforce application that must be able to by their company's Salesforce administrator. Which three should be considered for building out the business logic layer of the application? (Choose 3 answers)
- A. Scheduled Jobs
- B. Invocable Actions
- C. Process Builder
- D. Workflows
- E. validation Rules
49. what are the three languages used in the visualforce page?
- A. Javascript, CSS, HTML
- B. C++, CSS, query
- C. Apex, Json, SQL
50. Which three web technologies can be integrated into a Visualforce page? (Choose three) (Similar)
- A. PHP
- B. Java
- C. CSS
- D. HTML
- E. JavaScript
51. What are the eight officially supported languages on Heroku platform? (Similar)
- A. Lisp, PHP, Node, Ruby, Scala, Haskell, Go, Erlang.
- B. Node, Ruby, java, PHP, Python, .Net, C++.
- C. Node, Ruby, java, PHP, Python, Go, Scala, Clojure.
- D. C#, C++, Node, Ruby, Java, PHP, Go, .Net.