티스토리 뷰

 

1.     Which statement results in an Apex compiler error?

-        D. List<string> s = List<string>{'a','b','c');

 

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

-        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.

 

3.     A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type ( Account, Lead, or Contact, for example ) to cast each sObject?

-        B. Use the getSObjectType method on each generic sObject to retrieve the sObject token.

 

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

-        C. Process Builder

 

5.     When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?

-        C. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.

 

6.     A Developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?

-        A. Use Test.getStandardPricebookId() to get the standard price book ID.

 

7.     Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.) (check)

-        A. sObject

-        D. String

 

8.     Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?

-        C. Timeline tab under Execution Overview panel

 

9.     Which two platform features align to the Controller portion of MVC architecture? (Choose two.)

-        A. Process Builder actions

-        B. Workflow rules

 

10.  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.)

-        B. Full Sandbox

-        D. Partial Sandbox

 

11.  A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master- Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?

-        B. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard

 

12.  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.

-        D. Use SOQL for loops instead of assigning large queries results to a single collection and looping through the collection.

 

13.  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?

-        B. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field.

 

14.  Which two components are available to deploy using the METADATA API? (Choose 2 answers)

-        A. Case Settings

-        B. Lead Conversion Settings

 

15.  A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?

-        C. @TestSetup

 

16.  What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?

-        B. Queries select the fewest fields and records possible to avoid exceeding governor limits.

 

17.  An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application _c and Position_c have a picklist field named Status_c. When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c. How can a developer accomplish this?

-        B. By using an Apex trigger with a DML operation.

 

18.  Why would a developer consider using a custom controller over a controller extension?

-        B. To implement all of the logic for a page and bypass default Salesforce functionality.

 

19.  A developer can use the debug log to see which three types of information? (Choose 3 answers)

-        B. Resource usage and limits

-        D. Database changes

-        E. HTTP callout to external systems

 

20.  Candidates are reviewed by four separate reviewers and their comments and scores which range from 1 (lowest) to 5 (highest) are stored on a review record that is a detail record for a candidate what is the best way to indicate that a combined review score of 15 of better is required to recommend that the candidate come in for an interview?

-        D. Use a workflow rule to calculate the sum of the review scores and send an email to the hiring manager when the total is 15 or better.

 

21.  The sales team at universal container would like to see a visual indicator appear on both account and opportunity page layout to alert salespeople when an account is late making payments or has entered the collections process. What can a developer implement to achieve this requirement without having to write custom code?

-        A. Formula field

 

22.  What are three characteristics of static methods? (Choose three.)

-        B. Excluded from the view state for a Visualforce page.

-        D. Allowed only in outer classes.

-        E. Initialized only when a class is loaded.

 

23.  What are two considerations for deciding to use a roll-up summary field? (Choose 2 answer's partner.)

-        B. Roll-up cannot be performed on formula fields that use cross-object references or on-the-fly calculations such as NOW().

-        C. Roll-up summary can be performed on formula fields, but if their formula contains an #Error result, it may affect the summary value.

 

24.  Which three statements are true regarding the @istest annotation? (Choose 3 answers) (check)

-        B. Profiles are visible in a test even if a class is annotated @istest (seealldata=false)

-        C. A method annotated @istest (seealldata=true) in a class annotated @istest (seealladata=false) has access to all org data

-        D. A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data

 

25.  A developer creates an Apex Trigger with the following code block:List<Account> customers = new List<Account>();For (Order__c o: trigger.new){Account a = [SELECT Id, Is_Customer__c FROM Account WHERE Id = :o.Customer__c];a.Is_Customer__c = true;customers.add(a);}Database.update(customers, false); The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders. How many Orders are successfully loaded when the developer attempts to load the 150 Orders?

-        B. 0

 

26.  A developer needs to find information about @future methods that were invoked. From which system monitoring feature can the developer see this information?

-        C. Apex Jobs

 

27.  Which two queries can a developer use in a Visualforce controller to protect against SOQL injection Vulnerabilities? (Choose 2 answers) (check)

-        B. String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);

-        D. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);

 

28.  A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? (There are three correct answers.)

-        A. .addError( )

-        D. A custom exception

-        E. A try/catch construct

 

29.  How many levels of child records can be returned in a single SOQL query from one parent object? (check)

-        B. 1

-        5 Level of Parent & 1 Level of Parent to Child

 

30.  A developer wants to use all of the functionality provided by the standard controller for an object, but needs to override the Save standard action in a controller extension. Which two are required in the controller extension class?

-        B. Create a method named Save with a return data type of PageReference.

-        D. Define the class with a constructor that takes an instance of StandardController as a parameter.

 

31.  Which two number expressions evaluate correctly? (Choose two.)

-        A. Decimal d = 3.14159;

-        C. Double d = 3.14159;

 

32.  A developer wants to override a button using Visualforce on an object. What is the requirement?

-        C. The standardController attribute must be set to the object.

 

33.  A developer writes a before insert trigger. How can the developer access the incoming records in the trigger body?

-        D. By accessing the Trigger.new context variable.

 

34.  How would a developer change the field type of a custom field on the Account object from string to an integer?

-        B. Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.

 

35.  Which approach should be used to provide test data for a test class?

-        D. Use a test data factory class to create test data.

 

36.  Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? (Choose 2 answers)

-        A. Throw new MissingFieldValueException();

-        D. Throw new MissingFieldValueException ('Problem occurred');

 

37.  A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? (Choose three answers.)

-        A. Action

-        C. Extensions

-        D. StandardController

 

38.  How can a developer retrieve all Opportunity record type labels to populate a list collection? (Choose 2 answers)

-        A. Write a SOQL for loop that iterates on the RecordType object.

-        B. Obtain describe object results for the Opportunity object.

 

39.  A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query? (check)

-        C. 1

 

40.  What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)

-        B. Specifying loading order.

-        C. Loading scripts in parallel.

-        E. One-time loading for duplicate scripts.

 

41.  Which data structure is returned to a developer when performing a SOSL search?

-        B. A list of lists of sObjects.

 

42.  The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of machinery can be assigned to one construction job. What should a developer do to meet these requirements? (check)

-        B. Create a lookup field on the Construction Job object to the Machinery object.

 

43.  How can a developer avoid exceeding governor limits when using an Apex Trigger? (choose 2 answers)

-        A. By using Maps to hold data from query results.

-        C. By performing DML transactions on lists of SObjects.

 

44.  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?

-        D. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.

 

45.  Opportunity opp = [SELECT Id,StageName FROM Opportunity LIMIT 1]; Given the code above, how can a developer get the label for the StageName field?

-        A. Call Opportunity.StageName.getDescribe().getLabel();

 

46.  Which statement would a developer use when creating test data for products and pricebooks?

-        C. Id pricebookId = Test.getStandardPricebookId();

 

47.  A developer needs to include a visualforce page in the detail section of a page layout for the account object, but does not see the page as an available option in the page layout editor which attribute must the developer include in the <apex:page> tag to ensure the visualforce page can be embedded in a page layout?

-        A. Standardcontroller="account"

 

48.  In the Lightning Component framework, where is client-side controller logic contained?

-        D. JavaScript

 

49.  A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 150; x++) {Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after this code is run?

-        C. 100

 

50.  A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?

-        D. Trigger execution order is not guaranteed for the same sObject.

 

 

728x90

'[세일즈포스 개발자]' 카테고리의 다른 글

Apex Unit Test  (0) 2023.03.06
Anonymous Blocks  (0) 2023.03.06
Permission set groups이란?  (0) 2023.03.03
Salesforce Identity가 제공하는 기능  (0) 2023.03.03
Salesforce에서의 데이터 액세스 레벨  (0) 2023.03.03
댓글
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
최근에 올라온 글
Total
Today
Yesterday
공지사항