티스토리 뷰

[ Salesforce Certified Platform Developer I – Dump ]

 

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

-        A. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field.

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

-        C. Create a Workflow rule on the Opportunity object that updates a field on the parent Account.

-        D. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities.

 

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

-        A. Case Settings (v)

-        B. Lead Conversion Settings (v)

-        C. Web-to-Case

-        D. Web-to-Lead

 

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

-        A. @isTest(SeeAllData=True)

-        B. @PreTest

-        C. @TestSetup (v)

-        D. @BeforeTest

 

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

-        A. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.

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

-        C. Apex code is created in a separate environment from schema to reduce deployment errors.

-        D. DML is performed on one record at a time to avoid possible data concurrency issues

 

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

-        A. By changing Application_c.Status_c into a formula field.

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

-        C. By configuring a cross-object field update with a workflow.

-        D. By changing Application_c.Status_c into a roll -up summary field.

 

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

-        A. To increase the SOQL query governor limits.

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

-        C. To leverage built-in functionality of a standard controller.

-        D. To enforce user sharing settings and permissions.

 

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

-        A. User login events

-        B. Resource usage and limits

-        C. Actions triggered by time-based workflow.

-        D. Database changes

-        E. HTTP callout to external systems

 

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

-        A. Use a rollup summary field to calculates the sum of the review scores, and store this in a total score field on the candidate.

-        B. Use visual workflow to set a recommended field on the candidate whenever the cumulative review score is 15 or better.

-        C. Use a validation rule on a total score field on the candidate record that prevents a recommended field from being true if the total score is less than 15.

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

 

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

-        B. Workflow rule

-        C. Roll-up summary field

-        D. Quick action

 

10.   Universal Containers requires Service Representatives to update all Cases at least one every three days. To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution? (Similar No.9)

-        A. Formula field

-        B. Process Builder

-        C. Scheduled Apex Class

-        D. Workflow rule

 

11.   Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.) (Similar No.9)

-        A. Use a Visual Workflow.

-        B. Use the Process Automation Settings.

-        C. Use a Trigger.

-        D. Use a validation rule.

-        + Process Automation Settings Flow, Process, Workflow, Approval Process 활성화하거나 비활성화한다.

 

12.   The sales management team requires that the lead source field of the Lead record be populated when Lead is converted. What would a developer use to ensure that a user populates the Lead source field? (check) (Similar No.9)

-        A. Process builder

-        B. Formula field

-        C. Validation rule

-        D. Workflow rule

 

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

-        A. A static variable outside of the scope of an Apex transaction

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

-        C. Allowed only in inner classes

-        D. Allowed only in outer classes

-        E. Initialized only when a class is loaded

 

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

-        A. Roll-up cannot be performed on formula fields.

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

-        D. Roll-up summary fields do not cause validation rules on the parent object unless that object is edited separately.

 

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

-        A. String

-        B. sObject

-        C. ENUM

-        D. External ID

 

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

-        A. A class containing test methods counts toward the apex code limit regardless of any @istest annotation.

-        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

-        E. Products and pricebooks are visible in a test even if a class is annotated @istest (seealldata=false)

 

17.   A developer creates an Apex Trigger with the following code block:List customers = new List(); 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?

-        A. 1

-        B. 0

-        C. 100

-        D. 150

 

18.   A developer executes the following code in the Developer Console: List fList = new List ();For(integer i= 1; I <= 200; i++){fList.add(new Account ( Name = 'Universal Account ' + i));}Insert fList; List sList = new List(); For (integer I = 201; I <= 20000; i ++){sList.add(new Account (Name = 'Universal Account ' + i));}Insert sList; How many accounts are created in the Salesforce organization? (Similar No.15)

-        A. 200

-        B. 0

-        C. 1000

-        D. 2000

-        + Salesforce에서는 DML 수가 150개로 제한되어 있다. 값을 초과하게 된다면 트랜잭션이 롤백되고 오류가 발생한다.

 

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

-        A. Scheduled jobs

-        B. Background Jobs

-        C. Apex Jobs

-        D. Asynchronous Jobs

 

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

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

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

-        C. 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);

 

21.   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()

-        B. Database.handleException()

-        C. ApexPages.addErrorMessage()

-        D. A custom exception

-        E. A try/catch construct

 

22.   A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. What step should the developer take to resolve the issue and properly test the exception? (Similar No.19)

-        A. Use the finally block within the unit test to populate the exception.

-        B. Use Test.isRunningTest() within the customer controller.

-        C. Use database methods with all or none set to FALSE.

-        D. Use try/catch within the unit test to catch the exception.

 

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

-        A. 3

-        B. 1

-        C. 7

-        D. 5

 

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

-        A. Create a method that references this.superSave()

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

-        C. Define the class with a constructor that creates a new instance of the StandardController class.

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

 

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

-        A. Decimal d = 3.14159;

-        B. Long l = 3.14159;

-        C. Double d = 3.14159;

-        D. Integer I = 3.14159;

 

26.   Which is a valid Apex assignment? (Similar No.22)

-        A. Float x = 5.0;

-        B. Integer x = 5*1.0;

-        C. Double x = 5;

-        D. Integer x = 5.0;

 

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

-        A. The action attribute must be set to a controller method.

-        B. The controller or extension must have a PageReference method.

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

-        D. The object record must be instantiated in a controller or extension.

 

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

-        A. Partial Sandbox

-        B. Developer Sandbox

-        C. Developer Edition

-        D. Full Sandbox

-        E. Developer Pro Sandbox

 

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

-        A. By accessing the Tripper.newList context variable.

-        B. By accessing the Trigger.newMap context variable.

-        C. By accessing the Trigger.newRecords context variable.

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

 

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

-        A. Make the change in the declarative UI, an then the change will automatically be reflected in the Apex code.

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

-        C. Mate the change in the declarative UI, then update the field type to an integer field in the Apex code.

-        D. Make the changes in the developer console, and then the change will automatically be reflected in the Apex code.

 

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

-        A. Query for existing records in the database.

-        B. Execute anonymous code blocks that create data.

-        C. Access data in @TestVisible class variables.

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

 

32.   Which feature allows a developer to create test records for use in test classes? (check) (Similar No.27)

-        A. Httpcalloutmocks

-        B. Documents

-        C. Webservicetests

-        D. Static resources

 

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

-        A. Throw new MissingFieldValueException();

-        B. Throw (MissingFieldValueException, 'Problem occurred');

-        C. Throw Exception (new MissingFieldValueException());

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

 

34.   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 No.31)

-        A. Throw RecordNotFoundException();

-        B. Throw new RecordNotFoundException("problem occured");

-        C. Throw new RecordNotFoundException();

-        D. Throw RecordNotFoundException("problem occured");

 

35.   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 tag of the Visualforce page to enable this functionality? (Choose three answers.)

-        A. Action

-        B. Controller

-        C. Extensions

-        D. StandardController

 

36.   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 tag of the visualforce page to enable this functionality? (Similar No.30)

-        A. Readonly

-        B. Extensions

-        C. Action

-        D. Renderas

-        E. Standardcontroller

 

37.   A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose three.) (check) (Similar No.33)

-        A. readOnly

-        B. renderAs

-        C. action

-        D. standardController

-        E. extensions

 

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.

-        C. Write a for loop that extracts values from the Opportunity.RecordType.Name field.

-        D. Use the global variable $RecordType and extract a list from the map.

 

39.   What is a capability of the tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)

-        A. Loading files from Documents.

-        B. Specifying loading order.

-        C. Loading scripts in parallel.

-        D. Loading externally hosted scripts.

-        E. One-time loading for duplicate scripts.

 

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

-        A. A list of sObjects.

-        B. A list of lists of sObjects.

-        C. A map of sObject types to a list of sObjects

-        D. A map of sObject types to a list oflists of sobjects

 

41.   What is the data type returned by the following SOSL search? {FIND 'Acme*' in name fields returning account,opportunity}; (Similar No.34)

-        A. List<List<sObject>>

-        B. Map<sObject,sObject>

-        C. Map<Id,sObject>

-        D. List<List<Account>,List<Opportunity>

 

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)

-        A. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.

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

-        C. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.

-        D. Create a lookup field on the Machinery object to the Construction Job 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.

-        B. By using a helper class that can be invoked from multiple triggers.

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

-        D. By using the Database class to handle DML transactions.

 

44.   An apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? (Choose 2 answers) (Similar No.33)

-        A. Use maps to reference related records.

-        B. Use SOQL aggregate queries to retrieve child records.

-        C. Use the database class to handle DML operations.

-        D. Use lists for all DML operations.

 

45.   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 AmexMessage.Messages() to display an error message after the number of DML statements is exceeded.

-        C. By using Messaging.sendEmail() to continue toe transaction and send an alert to the user 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.

 

46.   How can a developer warn users of SOQL governor limit violations in a trigger? (Similar No.44)

-        A. Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.

-        B. Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.

-        C. Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.

-        D. Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.

 

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

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

-        B. Call Opp.StageName.Label

-        C. Call opp.StageName.getDescribe().getLabel()

-        D. Call Opportunity.StageName.Label

 

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

-        A. List objList = Test.loadData(Account.sObjectType, 'myResource');

-        B. IsTest(SeeAllData = false);

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

-        D. Pricebook pb = new Pricebook();

 

49.   How should the developer overcome this problem? While writing a test class that covers anOpportunityLineItem trigger, a Developer is unable to create a standard Pricebook since one already exist in the org. (Similar No.44)

-        A. Use Test.getStandardPricebokId()to get the standard Pricebook ID.

-        B. Use @IsTest(SeeAllData=true) and delete the existing standard Pricebook.

-        C. Use @TestVisible to allow the test method to see the standard Pricebook.

-        D. Use Test.loaddata() and a Static Resource to load a standard Pricebook.

 

50.   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 tag to ensure the visualforce page can be embedded in a page layout?

-        A. Standardcontroller="account"

-        B. Action="accountid"

-        C. Controller="account"

-        D. Extensions="accountcontroller"

 

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

-        A. Apex

-        B. Visualforce

-        C. HTML

-        D. JavaScript

 

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

-        A. 102

-        B. 252

-        C. 100

-        D. 101

 

53.   A developer in a Salesforce org with 100 Accountsexecutes the following code using the Developer console: Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 250; 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? (Similar No.48)

-        A. 102

-        B. 101

-        C. 252

-        D. 100

 

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

-        A. Unit tests must specify the trigger being tested.

-        B. Developers must dictate the order of trigger execution.

-        C. Trigger execution order is based on creation date and time.

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

 

55.   A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back. What can a developer do to accomplish this?

-        A. Create an assignment rule that will assign the offer letter to the candidate

-        B. Install a managed package that will allow the candidate to sign documents electronically.

-        C. Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically.

-        D. Create a visual workflow that will capture the candidate's signature electronically.

 

56.   What are three ways for a developer to execute tests in an org? (Choose 3)

-        A. Developer Console

-        B. Bulk API

-        C. Metadata API

-        D. ToolingAPI

-        E. Setup Menu

 

57.   A developer wants to handle the click event for a lightning: button component the onclick attribute for the component references a javascript function in which resource in the component bundle?

-        A. Renderer.js

-        B. Handler.js

-        C. Controller.js

-        D. Helper.js

 

58.   A developer has javascript code that needs to be called by controller functions in multiple components by extending a new abstract component. Which resource in the abstract component bundle allows the developer to achieve this? (Similar No.54)

-        A. Helper.js

-        B. Rendered.js

-        C. Superrender.js

-        D. Controller.js

-        + Helper 서버측 컨트롤러이다. 일반적으로 서버 작업을 실행하고 데이터 또는 task 처리하는데 사용된다. 클라이언트 컨트롤러나 Renderer에서 Helper 자바스크립트 함수를 호출할 있다.

-        + Helper 모든 항목에서 공유되므로 컨트롤러와 Renderer 간의 논리를 곳에서 공유하고 유지할 있다. 또한 컨트롤러 Renderer 내에서 논리를 유지하는데 도움이 된다. 다른 컨트롤러 메소드에서 하나의 컨트롤러 메소드를 호출해야 되는 경우 언제든지 해당 로직을 Helper 이동해야 한다.

 

59.   Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement? (Choose 2 answers)

-        A. After update

-        B. Before insert

-        C. Before update

-        D. After insert

 

60.   A developer needs to update an unrelated object when a record gets saved. Which two trigger types should the developer create? (check) (Similar No.46)

-        A. After insert

-        B. After update

-        C. Before insert

-        D. Before update

 

61.   Developer needs to automatically populate the Reports To 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 answers) (Similar No.46)

-        A. After insert

-        B. Before update

-        C. Before insert

-        D. After update

 

62.   A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create? (check) (Similar No.46)

-        A. After undelete

-        B. Before undelete

-        C. After delete

-        D. Before delete

 

63.   Which statement about change set deployments is accurate? (Choose 3) (check)

-        A. They ca be used to transfer Contact records.

-        B. They can be used to deploy custom settings data.

-        C. They use an all or none deployment model.

-        D. They require a deployment connection.

-        E. They can be used only between related organizations.

 

64.   The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults? What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record? Select one of the following:

-        A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.

-        B. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.

-        C. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.

-        D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.

 

65.   Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)

-        A. Time

-        B. Namespace

-        C. Exception

-        D. Debug Statement

 

66.   What is a capability of the Developer Console? (Similar N0.56)

-        A. Execute Anonymous Apex code, Create/Edit code, Deploy code changes.

-        B. Execute Anonymous Apex code, Run REST API, deploy code changes.

-        C. Execute Anonymous Apex code, Create/Edit code, view Debug Logs.

-        D. Execute Anonymous Apex code, Run REST API, create/Edit code.

 

67.   What are two characteristics of partial copy sandboxes versus full sandboxes? (Choose 2 answers) (check)

-        A. Provides more data record storage.

-        B. Includes a subset of metadata

-        C. Requires a sandbox template

-        D. Supports more frequent refreshes.

 

68.   What is true for a partial sandbox that is not true for a full sandbox? (Choose 2 answers) (Similar No.49)

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

 

69.   A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?

-        A. By using merge field syntax to retrieve data from the parent record.

-        B. By using SOQL on the Visualforce page to query for data from the parent record.

-        C. By using a roll-up formula field on the child record to include data from the parent record.

-        D. By adding a second standard controller to the page for the parent record.

 

70.   What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production? (Choose 2 answers)

-        A. The Run Tests page in Salesforce Setup.

-        B. The Apex Test Execution page in Salesforce Setup.

-        C. The Test menu in the Developer Console.

-        D. The REST API and ApexTestRun method

 

71.   A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?

-        A. Apex Controllers

-        B. HTTP Callouts

-        C. Anonymous Blocks

-        D. Apex Triggers

 

72.   What is a valid Apex statement?

-        A. Private static constant Double rate = 775;

-        B. Account[] acctList = new List<Accout>{new Account()}

-        C. Map conMap = (SELECT Name FROM Contact);

-        D. Integer w, x, y = 123, z = 'abc',

 

73.   What is an accurate statement about variable scope? (Choose 3)

-        A. Sub-blocks can reuse a parent block's variable name if it's value is null.

-        B. A static variable can restrict the scope to the current block of its value is null.

-        C. Sub-blocks cannot reuse a parent block's variable name.

-        D. Parallel blocks can use the same variable name.

-        E. A variable can be defined at any point in a block.

 

74.   Managed Packages can be created in which type of org?

-        A. Partial Copy Sandbox

-        B. Developer Edition

-        C. Unlimited Edition

-        D. Developer Sandbox

 

75.   A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which attribute(s) to correctly implement controller functionality?

-        A. StandardController = "case" and extensions =" myControllerExtension"

-        B. Extensions=" myControllerExtension"

-        C. Controller = "case" and extensions =" myControllerExtension"

-        D. Controller=" myControllerExtension"

 

76.   Which two ways can a developer instantiate a PageReference in Apex? (Choose 2 answers)(check)

-        A. By using the PageReference.getURL() method.

-        B. By using an object standard set controller action.

-        C. By using ApexPages.currentPage()

-        D. By using an object standard controller action.

 

77.   How can a developer refer to, or instantiate a PageReference in Apex? (Choose 2 answers) (Similar No.69)

-        A. By using the PageReference.Page() method with a partial or full URL

-        B. By using the Page object and a Visualforce page name.

-        C. By using a PageReference with a partial or full URL.

-        D. By using the ApexPages.Page() method with a Visualforce page name.

 

78.   Which SOQL query successfully returns the Accounts grouped by name?

-        A. SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name

-        B. SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name

-        C. SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name

-        D. SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5

 

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

-        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

 

80.   A developer wants multiple test classes to use the same set of test data. How should the developer create the test data? (check)

-        A. Create a test setup method for each test class

-        B. Reference a test utility class in each test class

-        C. Define a variable for test records in each test classes

-        D. Use the seealldata=true annotation in each test class

 

81.   A developer uses a before insert trigger on the Lead object to fetch the Territory__c object, where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block: Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode];Line-04: if(terrList.size() > 0) Line-05: l.Territory__c = terrList[0].Id; Line-06: }Line-07: }Which line of code is causing the code block to fail?

-        A. Line-03: A SOQL query is located inside of the for loop code.

-        B. Line-01: Trigger:new is not valid in a before insert Trigger.

-        C. Line-05: The Lead in a before insert trigger cannot be updated.

-        D. Line-02: A NullPointer exception is thrown if PostalCode is null

-        + DML 문은 번에 최대 10,000개의 레코드만 처리할 있으며 루프용 sObject 목록은 레코드를 200 일괄 처리한.

 

82.   A developer uses an 'after update' trigger on the Account object to update all the Contacts related to the Account. The trigger code shown below is randomly failing. List theContacts = new List(); for(Account a : Trigger.new){ for(Contact c : [SELECT Id, Account_Date__c FROM Contact WHERE AccountId = :a.Id]){ c.Account_Date__c = Date.today(); theContacts.add(c); } } updates theContacts; Which line of code is causing the code block to fail? (Similar No.64)

-        A. The trigger processes more than 200 records in the for loop.

-        B. An exception is thrown if theContacts is empty

-        C. A SOQL query is located inside of the for loop.

-        D. An exception is thrown if Account_Date__c is null.

 

83.   Which governor limit applies to all the code in an apex transaction?

-        A. Elapsed SOQL query time

-        B. Number of new records created

-        C. Elapsed CPU time

-        D. Number of classes called

 

84.   How can a developer use a Set to limit the number of records returned by a SOQL query?

-        A. Reference the Set in the WHERE clause of the query

-        B. Reference the Set in the LIMIT clause of the query

-        C. Pass the query results as an argument in a reference to the Set.containsAll() method.

-        D. Pass the Set as an argument in a reference to the Database.query() method

 

85.   What is an important consideration when developing in a multi-tenant environment?

-        A. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.

-        B. Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances.

-        C. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance.

-        D. Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple instances

 

86.   Which statement is true about developing in a multi-tenant environment? (Similar No.70)

-        A. Apex sharing controls access to records fomr multiple tenants on the same instance.

-        B. Org-level data security controls which users can see data from multiple tenants on the same instance.

-        C. Global apex classes can be referenced from multiple tenants on the same instance.

-        D. Governor limits prevent apex from impacting the performance of multiple tenants on the same instance.

 

87.   A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?

-        A. Text Area

-        B. Text Area (Long)

-        C. Text Area (Rich)

-        D. Text

 

88.   How should a developer prevent a recursive trigger? (check)

-        A. Use a trigger handler.

-        B. Use a "one trigger per object" pattern.

-        C. Use a static Boolean variable.

-        D. Use a private Boolean variable.

 

89.   When would the use of Heroku Postgres be appropriate?

-        A. To store user generated pictures and Word documents.

-        B. To store and retrieve data using the Structured Query Language.

-        C. To interconnect Microsoft SQL servers to Heroku Applications.

-        D. To cache commonly accessed data for faster retrieval.

 

90.   A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?

-        A. SOQL query on each object

-        B. SOSL Query that includes ALL ROWS

-        C. SOQL Query that includes ALL ROWS

-        D. SOSL query on each object

 

91.   What features are available when writing apex test classes? (Choose 2 Answers)

-        A. The ability to set and modify the CreatedDate field in apex tests.

-        B. The ability to set breakpoints to freeze the execution at a given point.

-        C. The ability to select testing data using csv files stored in the system.

-        D. The ability to select error types to ignore in the developer console.

-        E. The ability to write assertions to test after a @future method.

 

92.   Which type of code represents the view in the MVC architecture on the Force.com platform?

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

 

93.   Which type of code represents the Model in the MVC architecture when using Apex and Visualforce pages? (Check) (Similar No.71)

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

 

94.   Which type of code represents the Controller in MVC architecture on the Force.com platform? (Choose 2) (Similar No.71)

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

 

95.   Which two platform features align to the Controller portion of MVC architecture? (Choose two.) (Similar No.71)

-        A. Date fields

-        B. Process Builder actions

-        C. Workflow rules

-        D. Standard objects

 

96.   In the code below, which type does String inherit from? String s = 'Hello World';

-        A. Prototype

-        B. Object

-        C. Object

-        D. Class

 

97.   Given the code block: Integer x; for (x =0; x<10; x+=2){ if (x==8) break; if (x==10) break; } system.debug(x); Which value will the system.debug display?

-        A. 8

-        B. 2

-        C. 4

-        D. 10

 

98.   A platform developer needs to implement a declarative solution that will display the most recent closed won date for all opportunity records associated with an account. Which field is required to achieve this declaratively? (check)

-        A. Roll-up summary field on the opportunity object

-        B. Cross-object formula field on the account object

-        C. Roll-up summary field on the account object

-        D. Cross-object formula field on the opportunity object

 

99.   What is a capability of formula fields? (Choose 3)

-        A. Generate a link using the HYPERLINK function to a specific record in a legacy system.

-        B. Display the previous values for a field using the PRIORVALUE function.

-        C. Determine which of three different images to display using the IF function.

-        D. Determine if a datetime field has passed using the NOW function.

-        E. Return and display a field value from another object using the VLOOKUP function.

 

100.Which three options can be accomplished with formula fields? (Choose three.) (Similar No.79)

-        A. Display the previous value for a field using the PRIORVALUE function.

-        B. Determine if a datetime field value has passed using the NOW function.

-        C. Return and display a field value from another object using the VLOOKUP function.

-        D. Determine which of three different images to display using the IF function.

-        E. Generate a link using the HYPERLINK function to a specific record.

 

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

-        A. Use the getSObjectName method on the sObject class to get the sObject name.

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

-        C. Use the first three characters of the sObject ID to determine the sObject type.

-        D. Use a try-catch construct to cast the sObject into one of the three sObject types.

 

102.A platform developer needs to write an apex method that will only perform an action if a record is assigned to a specific record type. Which two options allow the developer to dynamically determine the ID of the required record type by its name? (Choose 2 answers)

-        A. Use the getrecordtypeinfosbydevelopername() method in the describesobjectresult class

-        B. Hardcore the ID as a constant in an apex class

-        C. Execute a SOQL query on the recordtype object.

-        D. Make an outbound web services call to the SOAP API

 

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

-        A. 150, 100

-        B. 10, 2

-        C. 100, 150

-        D. 1, 2

 

104.A developer writes the following code: What is the result of the debug statement? (Similar No.83)

-        A. 2, 200

-        B. 1, 100

-        C. 2, 150

-        D. 1, 150

 

105.In which order does SalesForce execute events upon saving a record?

-        A. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit

-        B. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

-        C. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit.

-        D. Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit

 

106.What are two considerations for custom Apex Exception classes? (Choose 2 answers.)

-        A. Constructor for custom Exceptions can only accept string values as arguments.

-        B. Custom Exceptions cannot be extended by other Exception classes.

-        C. Custom Exception classes must extend the base Exception class.

-        D. Custom Exception class names must end with the word 'Exception'.

 

107.Which three statements are true regarding custom exceptions in Apex? (Choose three.) (Similar No.84)

-        A. A custom exception class must extend the system Exception class.

-        B. A custom exception class can implement one or many interfaces.

-        C. A custom exception class cannot contain member variables or methods.

-        D. A custom exception class name must end with ג€Exceptionג€.

-        E. A custom exception class can extend other classes besides the Exception class.

 

108.A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?

-        A. The Workflow Rule is fired more than once.

-        B. No changes are made to the data.

-        C. Both the Apex Trigger and Workflow Rule are fired only once.

-        D. The Apex Trigger is fired more than once.

 

109.What is the result of the following code block? Integer x = 1; Integer Y = 0; While(x < 10){Y++;}

-        A. X = 0

-        B. Y = 9

-        C. Y = 10

-        D. An error occurs

 

110.To which primitive data type is a text area (rich) field automatically assigned?

-        A. Object

-        B. Text

-        C. String

-        D. Blob

 

111.Which action can a developer perform in a before update trigger? (Choose 2)

-        A. Change field values using the Trigger.new context variable.

-        B. Display a custom error message in the application interface.

-        C. Update the original object using an update DML operation.

-        D. Delete the original object using a delete DML operation.

 

112.What are two valid options for iterating through each Account in the collection List named AccountList? (Choose two.)

-        A. for (Account theAccount : AccountList) {...}

-        B. for (List L : AccountList) {...}

-        C. for(AccountList) {...}

-        D. for (Integer i=0; i < AccountList.Size(); i++) {...}

 

113.When the number of record in a recordset isunknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .length() method call? (Similar No.94)

-        A. Do { } While (Condition)

-        B. While (Condition) { ... }

-        C. For (init_stmt, exit_condition; increment_stmt) { }

-        D. For (variable : list_or_set) { }

 

114.A developer uses a test setup method to create an account named 'test'. The first method deletes the account record. What must be done in the second test method to use the account?

-        A. The account cannot be used in the second method

-        B. Use select id from account where name='test'

-        C. Call the test setup method at the start of the test

-        D. Restore the account using an undelete statement.

 

115.What is the easiest way to verify a user before showing them sensitive content?

-        A. Calling the Session.forcedLoginUrl method in apex.

-        B. Sending the user a SMS message with a passcode.

-        C. Calling the generateVerificationUrl method in apex.

-        D. Sending the user an Email message with a passcode.

 

116.A change set deployment from a sandbox to production fails due to a failure in a managed package unit test. The developer spoke with the manager package owner and they determined it is a false positive and can be ignored. What should the developer do to successfully deploy?

-        A. Select 'Fast Deploy' to run only the tests that are in the change set.

-        B. Select 'Run local tests' to run only the tests that are in the change set.

-        C. Select 'Run local tests' to run all tests in the org that are not in the managed package.

-        D. Edit the managed package's unit test.

 

117.Which user can edit a record after it has been locked for approval? (Choose 2)

-        A. Any user who approved the record previously.

-        B. Any user with a higher role in the hierarchy.

-        C. A user who is assigned as the current approver.

-        D. An administrator.

 

118.A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name 'Smith'?

-        A. A Contact with empty values.

-        B. An empty List of Contacts.

-        C. An error that no rows are found.

-        D. A contact initialized to null.

 

119.What is a valid statement about Apex classes and interfaces? (Choose 2 answers) (check)

-        A. The default modifier for a class is private.

-        B. A class can have multiple levels of inner classes.

-        C. Exception classes must end with the word exception.

-        D. The default modifier for an interface is private.

 

120.Which two statements are true about Apex code executed in Anonymous Blocks? (Choose 2 answers)

-        A. The code runs with the permissions of the logged user.

-        B. Successful DML operations are automatically committed.

-        C. All DML operations are automatically rolled back.

-        D. The code runs in system mode having access to all objects and fields.

-        E. The code runs with the permissions of the user specified in the runAs() statement

 

121.When creating unit tests in Apex, which statement is accurate? (Choose 2)

-        A. System Assert statements that do not Increase code coverage contribute important feedback in unit tests.

-        B. Unit tests with multiple methods result in all methods failing every time one method fails.

-        C. Increased test coverage requires large test classes with many lines of code in one method.

-        D. Triggers do not require any unit tests in order to deploy them from sandbox to production.

 

122.A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent?

-        A. After Trigger execution.

-        B. Before Committing to database.

-        C. Before Trigger execution.

-        D. After Committing to database

 

123. A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? (Choose 2 answers) (check)

-        A. Use Schema.RecordTypeInfo returned by RecordType.SObjectType.getDescribe().getRecordTypeInfos().

-        B. Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribe().getRecordTypeInfos().

-        C. Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues().

-        D. Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues().

 

124. A developer is creating a Visualforce page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type and set certain default values based on the record type before inserting the record. How can the developer find the current user's default record type? (Similar No.118)

-        A. Create the opportunity and check the opportunity.recordType before inserting, which will have the record ID of the current user's default record type.

-        B. Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate trought them untilisdefaultRecordTypeMapping() is true.

-        C. Use the Schema.userInfo.Opportunity.getDefaultRecordType() method.

-        D. Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method.

 

125. How can a custom type be identified as unique when added to a Set?

-        A. The class must implement the Equals and Hashcode methods

-        B. The class must have a method with the @InvocableMethod annotation

-        C. Methods in the class must be global

-        D. Methods in the class must be static

 

126. Which two condition cause workflow rules to fire? (Choose 2 answers)

-        A. Updating record using bulk API.

-        B. Changing territory assignments of accounts and opportunities

-        C. An Apex batch process that changes field values.

-        D. Converting leads to person account

 

127. What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a visualforce controller?

-        A. List

-        B. String[]

-        C. Enum

-        D. Map

-        + Visualforce 컨트롤러의 ApexPages.currentPage().getParameters() 메서드는 페이지에 전달된 URL 매개 변수를 나타내는 Map of String 키와 값을 반환.

-        + 메서드의 반환 형식은 Map<String, String>.

 

128. A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? (Choose 3 answers) (check)

-        A. Use a standard controller

-        B. Do not specify a controller

-        C. Use a custom controller with extensions

-        D. Use a standard controller with extensions

-        E. Use a custom controller

-        + standard controller 사용하는 visualforce page 대시보드에서 사용할 없다.

 

129. Which declarative process automation feature supports iterating over multiple records?

-        A. Approval Process

-        B. Validation Rules

-        C. Flows

-        D. Workflow rules

 

130. How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?

-        A. Create a Sharing Rule comparing the custom object owner to the account owner.

-        B. Ensure that the relationship between the objects is Master-Detail.

-        C. Create a validation rule on the custom object comparing the record owners on both records.

-        D. Include the sharing related list on the custom object page layout.

 

131. Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct? (check)

-        A. The Lookup Relationship cannot be marked as required on the page layout for the Custom Object.

-        B. The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object.

-        C. The Custom Object inherits security from the referenced Standard Objects

-        D. The Custom Object will be deleted when the referenced Standard Object is deleted.

 

132. A company has a custom object named Region. Each account in salesforce can only be related to one region at a time, but this relationship is optional. Which type of relationship should a developer use to relate an account to a region? (check)

-        A. Master-detail

-        B. Hierarchical

-        C. Lookup

-        D. Parent-child

-        + Lookup관계는 2개의 Object간의 관계가 선택 사항이고, 하위 object 레코드가 상위 object 레코드 하나에만 관련될 있는 경우에 사용한다.

 

133. Which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"? (check)

-        A. SELECT Lead.id, Lead. Name, Account.id, Account.Name, Contact.Id, Contact. Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'

-        B. FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id,name), account (id,name), contact(id,name)

-        C. SELECT lead(id, name), account(id, name), contact(id,name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'

-        D. FIND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id,name), contact(id,name)

 

134. In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex? (check)

-        A. As a List with each value as an element in the list

-        B. As a String with each value separated by a semicolon

-        C. As a String with each value separated by a comma

-        D. As a Set with each value as an element in the set

-        + multi-select picklist 값은 string values = 'A;B;D';처럼 Apex 받아들여지게 된다.

 

135. A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? (Choose 2)

-        A. Create a new Visualforce page and an Apex controller to provide Product data entry.

-        B. Copy the standard page and then make a new Visualforce page for Product data entry.

-        C. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.

-        D. Download a Managed Package from the AppExhange that provides a custom Visualforce page to modify.

-        + unmanaged package managed package 다르게 패키지를 설치하는 Org에서 수정 custom 있으며, 패키지의 구성 요소에 대한 변경 내용이 추적되거나 버전이 지정되지 않는다. 보통 최종 사용자가 사용자를 정의하고 수정할 있는 오픈 소스나 무료 응용 프로그램을 배포하는데 사용된다.

 

136.A developer needs to provide a way to mass edit, update, and delete records from a list view. In which two ways can this be accomplished? (Choose 2 answers) (Similar No.126)

-        A. Download an unmanaged package from the AppExchange that provide customizable mass edit, update, and delete functionality.

-        B. Create a new Visualforce page and Apex Controller for the list view that provides mass edit, update and delete functionality.

-        C. Configure the user interface and enable both inline editing and enhanced lists.

-        D. Download a managed package from the AppExchange that provides customizable Enhanced List Views and buttons.

 

137. What is the proper process for an Apex Unit Test?

-        A. Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.

-        B. Create data for testing. Execute runAllTests(). Verify that the results are correct.

-        C. Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.

-        D. Create data for testing. Call the method being tested. Verify that the results are correct.

 

138. Which tool can deploy destructive changes to apex classes in production?

-        A. Change sets

-        B. Salesforce setup

-        C. Developer Console

-        D. Workbench

-        + Workbench 관리자와 개발자가 SalesforceAPI 사용하여 Salesforce 데이터와 상호작용할 있도록 설계된 강력한 기반 도구 모음이다.

 

139. On which object can an administrator create a roll-up summary field?

-        A. Any object that is on the child side of a lookup relationship.

-        B. Any object that is on the master side of a master-detail relationship.

-        C. Any object that is on the parent side of a lookup relationship.

-        D. Any object that is on the detail side of a master-detail relationship.

 

140. Which type of controller should a developer use to include a list of related records for a Custom Object record on a Visualforce page without needing additional test coverage?

-        A. Controller Extension

-        B. Custom Controller

-        C. List Controller

-        D. Standard Controller

 

141. A developer creates a custom controller and a custom Visualforce page by using the code block below: public class MyController { public String myString { get { if (myString == null) { myString = 'a'; } return myString; } private set; } public string getMyString (){ return 'getMyString'; } public string getStringMethod () { if (myString == null) { myString = 'b'; } return myString; } } {!StringMethod}, {!myString}, {!myString} What can the user expect to see when accessing the custom page?

-        A. A, b, getMyString

-        B. B, b, b

-        C. B, a, getMyString

-        D. A, a, a

 

142. Which approach should a developer take to automatically add a "Maintenance Plan" to each Opportunity that includes an "Annual Subscription" when an opportunity is closed?

-        A. Build an Opportunity trigger that adds an OpportunityLineItem record.

-        B. Build an OpportunityLineItem trigger to add an OpportunityLineItem record.

-        C. Build a OpportunityLineItem trigger that adds a PriceBookEntry record.

-        D. Build an Opportunity trigger that adds a PriceBookEntry record.

 

143. Which set of roll-up types are available when creating a roll-up summary field?

-        A. SUM, MIN,MAX

-        B. AVRAGE, COUNT, SUM, MIN, MAX

-        C. COUNT, SUM, MIN, MAX

-        D. AVERAGE, SUM, MIN, MAX

-        + roll-up summary field 생성할 선택할 있는 Roll-up type에는 Count, Sum, Min, Max 있다.

 

144. A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?

-        A. Assert that future dates are rejected by the method.

-        B. Throwing a custom exception in the unit test.

-        C. Assert that a null value is accepted by the method.

-        D. Assert that past dates are accepted by the method.

 

145. What is a characteristic of the Lightning Component Framework? (Choose 2 answers):

-        A. It has an event-driven architecture.

-        B. It uses XML as its data format.

-        C. It works with existing Visualforce pages.

-        D. It includes responsive components.

-        + Lightning Component Framework 모바일 데스크탑 장치용 단일 페이지 응용 프로그램을 개발하기 위한 UI 프레임워크이다.

 

146. What are two benefits of the Lightning Component framework? (Choose two.) (Similar No.141)

-        A. It simplifies complexity when building pages, but not applications.

-        B. It allows faster PDF generation with Lightning components.

-        C. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.

-        D. It provides an event-driven architecture for better decoupling between components.

 

147. A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone Number A developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email. Which method can the developer use to achieve this?

-        A. Schema isAccessible() method.

-        B. Schema isCreateable() method.

-        C. SchemaisUpdateable() method.

-        D. Schema isReadable() method.

 

148. What are the eight officially supported languages on Heroku platform?

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

 

149. A developer needs to import customer subscription records into salesforce and attach them to existing account records. Which 2 actions should the developer take to ensure the subscription records are related to the correct account records? (Choose 2 answers)

-        A. Match the id field to a column in the imported file.

-        B. Match an external ID text field toa column in the imported file.

-        C. Match an auto-number field to a column in the imported file.

-        D. Match the name field to a column in the imported file.

 

150. Which statement is true about a hierarchical relationship as it pertains to user records?

-        A. It uses a special lookup relationship to allow one user record to be related to another user record.

-        B. It uses a master-detail relationship to allow one user record to be related to another user record.

-        C. It uses a junction object and lookup relationships to allow many user records to be related to many other user records.

-        D. It uses a junction object and master-detail relationship to allow many user records to be related to many other user records.

-        + hierarchical relationship User Object 배타적 속성이며, 계층에 따라 users 서로 연결하는데 사용한다. User Object에서 custom field 생성할 계층 관계 이외의 다른 관계를 사용할 없다.

 

151. In which two org types can a developer create new Apex Classes? (Choose 2 answers)

-        A. Enterprise Edition

-        B. Developer Edition

-        C. Sandbox

-        D. Unlimited

 

152. What is the accurate statement about with sharing keyword? (Choose 2 answers)

-        A. Inner class inherit the sharing setting from the container class.

-        B. Both inner and outer class can be declared as with sharing.

-        C. Inner class do not inherit the sharing setting from the container class.

-        D. Either inner class or outer classes can be declared as with sharing but not both.

-        + inner class 컨테이너 class에서 공유 설정을 상속하지 않는다. Class class 다른 class implement하거나 extends 부모 class에서 설정을 상속한다.

 

153. An org has a single account named 'NoContacts' that has no related contacts. Given the query: List accounts = [Select ID, (Select ID, Name from Contacts) fromAccount where Name='NoContacts']; What is the result of running this Apex?

-        A. accounts[0].contacts is invalid Apex.

-        B. A QueryException is thrown.

-        C. accounts[0].contacts is an empty Apex.

-        D. accounts[0].contacts is Null.

 

154. How should the developer overcome this problem? While writing a test class that covers anOpportunityLineItem trigger, a Developer is unable to create a standard Pricebook since one already exist in the org.

-        A. Use Test.getStandardPricebbokId()to get the standard Pricebook ID.

-        B. Use @IsTest(SeeAllData=true) and delete the existing standard Pricebook.

-        C. Use @TestVisible to allow the test method to see the standard Pricebook.

-        D. Use Test.loaddata() and a Static Resource to load a standard Pricebook.

 

155. Potential home buyers working with a real estate company can make offers on multiple properties that are listed with the real estate company. Offer amounts can be modified; however, the property that has the offer cannot be modified after the offer is placed. What should be done to associate offers with properties in the schema for the organization?

-        A. Create a master-detail relationship in the offer custom object to the property custom object.

-        B. Create a lookup relationship in the property custom object to the offer custom object

-        C. Create a lookup relationship in the offer custom object to the property custom object

-        D. Create a master-detail relationship in the contact object to both the property and offer custom objects.

 

156. What is a capability of a StandardSetController? (Choose 2 answers)

-        A. It enforces field-level security when reading large record sets.

-        B. It extends the functionality of a standard or custom controller.

-        C. It allows pages to perform mass updates of records.

-        D. It allows pages to perform pagination with large record sets.

-        + StandardSetController Object 사용하면 Salesforce에서 제공하는 pre-built Visualforce list Controller 유사하거나 확장된 list Controller 만들 있다.

 

157. What is considered the primary purpose for creating Apex tests?

-        A. To guarantee at least 50% of code is covered by unit tests before it is deployed.

-        B. To confirm all classes and triggers compile successfully.

-        C. To ensure every use case of the application is covered by a test.

-        D. To confirm every trigger in executed at least once.

 

158. Which collection type provides unique key/value pairings of data?

-        A. List

-        B. Set

-        C. Map

-        D. Array

 

159. A developer executes the following query in Apex to retrieve a list of contacts for each account: List accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)

-        A. CPU limit exception due to the complexity of the query.

-        B. SOQL query row limit exception due to the number of contacts.

-        C. SOQL query limit exception due to the number of contacts.

-        D. SOQL query row limit exception due to the number of accounts.

-        + SOQL 쿼리로 반환되는 레코드의 수가 50000 이상일 경우 System.LimitException 예외가 발생한다.

 

160. What is a capability of the Force.com IDE? (Choose 2 answers)

-        A. Download debug logs.

-        B. Roll back deployments.

-        C. Edit metadata components.

-        D. Run Apex tests.

 

161. Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?

-        A. Sandbox template

-        B. Data Import Wizard

-        C. Salesforce-to-Salesforce

-        D. Data Loader

 

162. Which action can a developer take to reduce the execution time of the following code? List <account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work } } }

-        A. Add a group by clause to the contact SOQL.

-        B. Create an apex helper class for the SOQL.

-        C. Use a map <id,contact> for allaccounts

-        D. Put the account loop inside the contact loop.

 

163. A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)

-        A. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.

-        B. Use mySObject.myObject.fields.getMap() to return a map of fields.

-        C. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.

-        D. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.

 

164. A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)

-        A. Workbench Metadata Retrieval

-        B. Salesforce UI Apex Test Execution

-        C. ANT Migration Tool

-        D. Developer Console

 

165. Which code segment can be used to control when the dowork() method is called?

-        A. For (Trigger.isRunning t: Trigger.new) { dowork(); }

-        B. If ( Trigger.isInsert ) dowork();

-        C. If(Trigger.isRunning) dowork();

-        D. For (Trigger.isInsert t: Trigger.new) {dowork(); }

 

166. A reviewer 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?

-        A. Create a formula field.

-        B. Create a validation rule

-        C. Create a required comments field.

-        D. Create a required Visualforce component.

 

167. Which Apex collection is used to ensure that all values are unique?

-        A. A Set

-        B. An sObject

-        C. A List

-        D. An Enum

 

168. A developer is asked to set a picklist field to 'Monitor' on any new Leads owned by a subnet of Users. How should the developer implement this request?

-        A. Create a before insert Lead trigger.

-        B. Create a Lead Workflow Rule Field Update.

-        C. Create an afterinsert Lead trigger.

-        D. Create a Lead formula field.

 

169. Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result? (check)

-        A. The API name of the field and the reference in the test class is changed.

-        B. The API name is not changed and there are no other impacts.

-        C. The API name of the field is changed, and a warning is issued to update the class.

-        D. The API name of the field and the reference in the test class is updated.

 

170. A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?

-        A. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.

-        B. Have each class define method getTextSummary() that returns the summary.

-        C. Extendeach class from the same base class that has a method getTextSummary() that returns the summary.

-        D. Have each class implement an interface that defines method getTextSummary() that returns the summary.

 

171. What action causes a before trigger to fire by default for accounts?

-        A. Converting leads to contacts

-        B. Importing data using the data loader and the Bulk API

-        C. Updating address using the Mass Address update tool

-        D. Renaming or replacing picklists

 

172. For which three items can a trace flag be configured?

-        A. Apex Class

-        B. Flow

-        C. Visualforce

-        D. Apex Trigger

-        E. User

 

173. How are debug levels adjusted In the Developer Console?

-        A. Under the Logs tab, click Change in the DebugLevels panel

-        B. Under the Settings menu> Trace Settings..., click Change DebugLevel

-        C. Under the Debug menu > Change Log Levels..., click Add/Change in the DebugLevel Action column.

-        D. Under the Edit menu, dick Change DebugLevels

 

174. A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?

-        A. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.

-        B. Have each class define method getTextSummary() that returns the summary.

-        C. Extend each class from the same base class that has a method getTextSummary() that returns the summary.

-        D. Have each class implement an interface that defines method getTextSummary() that returns the summary.

 

175. How can a developer set up a debug log on a specific user?

-        A. Create Apex code that logs code actions into a custom object.

-        B. It is not possible to setup debug logs for users other than yourself.

-        C. Ask the user for access to their account credentials, log in as the user and debug the issue.

-        D. Set up a trace flag for the user, and define a logging level and time period for the trace.

 

176. A developer needs to avoid potential system problems that can arise in a multi-tenant architecture. Which requirement helps prevent poorly written applications from being deployed to a production environment?

-        A. All Apex code must be annotated with the with sharing keyword.

-        B. All validation rules must be active before they can be deployed.

-        C. Unit tests must cover at least 75% of the application's Apex code.

-        D. SOQL queries must reference sObjects with their appropriate namespace.

 

177. A company wants to create an employee rating program that allows employees to rate each other. An employees average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task? (check)

-        A. Create a trigger on the Rating object than updates a field on the Employee object.

-        B. Create a lookup relationship between the Rating and Employee object.

-        C. Create a master-detail relationship between the Rating and Employee objects.

-        D. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.

 

178. Which actions can a developer perform using the Schema Builder? (Choose 2 answers)

-        A. Create a view containing only standard and system objects.

-        B. Create a view of objects and relationships without fields

-        C. Create a custom field and automatically add it to an existing page layout.

-        D. Create a custom object and define a lookup relationship on that object

 

179. When would a developer use a custom controller instead of a controller extension? Choose 2 answers: (check)

-        A. When a Visualforce page should not enforce permissions or field-level security.

-        B. When a Visualforce page needs to replace the functionality of a standard controller.

-        C. When a Visualforce page needs to add new actions to a standard controller.

-        D. When a Visualforce page does not reference a single primary object.

 

180. An org has different Apex Classes that provide Account-related functionality. After a new validation rule is added to the object, many of the test methods fail. What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? (Choose 2 answers):

-        A. Create a method that creates valid Account records, and call this method from within test methods.

-        B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.

-        C. Create a method that queries for valid Account records, and call this method from within test methods.

-        D. Create a method that performs a callout for a valid Account record, and call this method from within test methods.

 

181. Given the code below, which three statements can be used to create the controller variable? Public class accountlistcontroller { public list<account> getaccounts() { return controller.getrecords(); } } (Choose 3 answers) (check)

-        A. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.getquerylocator([select id from account]));

-        B. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.query('select id from account'));

-        C. Apexpages.standardcontroller controller= new apexpages.standardcontroller(database.getquerylocator('select id from account'));

-        D. Apexpages.standardcontroller controller= new apexpages.standardcontroller([select id from account]);

-        E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller(database.getquerylocator('select id from account'));

-        + E 정답이기 위해서는 Database.getQueryLocator( [SELECT id FROM Account ])이어야 한다.

 

182. What is the requirement for a class to be used as a custom Visualforce controller? (check)

-        A. Any top-level Apex class that extends a PageReference.

-        B. Any top-level Apex class that has a constructor that returns 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.

-        + chatGPT 따르면, class public이나 global 정의되어야 하며, 최소 pulbic이나 global 정의된 메소드가 하나 이상이어야 하며, 메소드는 void 타입이거나 PageReference 인스턴스를 반환해야 하며, 매개변수가 없는 constructor 있어야 한다.

 

183. When are code coverage calculations updated?

-        A. When unit tests are run on an organization.

-        B. When Apex code is saved.

-        C. When a deployment is validated.

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

 

184. What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

-        A. Account0.Phone=333-8780, Account1.Phone=333-8781

-        B. Account0.Phone=333-8781, Account1.Phone=333-8780

-        C. Account0.Phone=888-1515, Account1.Phone=999-2525

-        D. Account0.Phone=888-1515, Account1.Phone=999-1515

-        + testAccs.add(new Account(Name = 'MyTestAccount'+i, Phone='333-878'+i)); 올바른 코드이며, 테스트 메소드의 경우에는 올바르게 코드가 실행되어도 이게 데이터베이스에 commit되지 않기에 처음에 저장한 그대로 데이터가 출력된다.

 

185. For which example task should a developer use a trigger rather than a workflow rule?

-        A. To notify an external system that a record has been modified.

-        B. To send an email to hiring manager when a candidate accepts a job offer

-        C. To set the Name field of an expense report record to Expense and the Date when it is saved.

-        D. To set the primary Contact on an Account record when it is saved.

-        + trigger 레코드 업데이트 삽입 프로세스가 발생하기 전과 후에 레코드를 구현하는데 도움을 준다.

 

186. A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action will allow the developer to relate records in the data model without knowing the Salesforce ID? (check)

-        A. Create a custom field on the child object of type External Relationship.

-        B. Create and populate a custom field on the parent object marked as Unique.

-        C. Create a custom field on the child object of type Foreign Key.

-        D. Create and populate a custom field on the parent object marked as an External ID.

-        + External Object 간접적으로 Lookup 관계를 가지기 위해서는 서로 일치시킬 상위 Object 필드와 하위 Object 필드를 지정해야 한다. 특히, External ID 필드를 통해 자식과 부모의 필드를 일치시켜야 한다.

 

187. When an Account's custom picklist field called Customer Sentiment is changed to a value of "Confused", a new related Case should automatically be created. Which two methods should a developer use to create this case? (Choose two.)

-        A. Apex Trigger

-        B. Workflow Rule

-        C. Process Builder

-        D. Custom Button

-        + process builder 자동화 요구에 맞는 3가지 유형의 process 지원한다. 1. 레코드 변경 프로세스는 레코드가 생성되거나 업데이트될 시작한다. 2. 플랫폼 이벤트 메세지가 수신되면 이벤트 프로세스가 시작된다. 3. 호출 가능한 프로세스는 다른 프로세스가 호출될 시작된다.

 

188. Which two SOSL searches will return records matching search criteria contained in any of the searchable text fields on an object? (choose 2 answers)

-        A. [find 'acme*' in any fields returning account, opportunity]

-        B. [find 'acme*'returning account, opportunity]

-        C. [find 'acme*'in all fields returning account, opportunity]

-        D. [find 'acme*' in text fields returning account, opportunity]

 

189. When a task is created for a contact, how can a developer prevent the task from being included on the activity timeline of the contact's account record?

-        A. Create a task trigger to set the account field to NULL.

-        B. In activity settings, uncheck roll-up activities to a contact's primary account.

-        C. Use process builder to create a process to set the task account field to blank.

-        D. By default, tasks do not display on the account activity timeline.

 

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

-        A. Scheduled Apex

-        B. An Assignment Rule

-        C. A Workflow Rule

-        D. Process Builder

 

191. A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted fora job posting, that application cannot be modified to be resubmitted to a different job posting. What can the administrator do to associate an application with each job posting in the schema for the organization?

-        A. Create a master-detail relationship in the Application custom object to the Job Postings custom object.

-        B. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.

-        C. Create a lookup relationship in the Applications custom object to the Job Postings custom object.

-        D. Create a lookup relationship on both objects to a junction object called Job Posting Applications.

 

192. A developer has the following code block: public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost * XXXXXXXXXXX;} To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger? (check)

-        A. SalesTax

-        B. PaymentTax.SalesTax

-        C. OpportunityLineItemTngger.SalesTax

-        D. PayTax.SalesTax

 

193. When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? (Choose 2 answers.)

-        A. An Apex trigger on the Account object.

-        B. A workflow rule on the Account object

-        C. A process builder on the Account object

-        D. A cross-object formula field on the Account object

 

194. Account acct = {SELECT Id from Account limit 1}; Given the code above, how can a developer get the type of object from acct?

-        A. Call "acct.SobjectType"

-        B. Call "acct.getsObjectType()"

-        C. Call "Account.getSobjectType()"

-        D. Call "Account.SobjectType"

 

195. In Lightning component framework, which resource can be used to fire events? (Choose 2 answers.)

-        A. Javascript controller actions

-        B. Third-party web service code

-        C. Third-party Javascript code

-        D. Visualforce controller actions

 

196. What is the advantage of Salesforce Lightning?

-        A. Option 3

-        B. Uses service side for better handling.

-        C. Option 4

-        D. Pre-defined components to give Standard Look and Feel.

 

197. What are two correct examples of the model in the salesforce MVC architecture? (Choose 2 answers.) (check)

-        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

 

198. Why would a developer use Test.startTest( ) and Test.stopTest( )?

-        A. To indicate test code so that it does not Impact Apex line count governor limits.

-        B. To start and stop anonymous block execution when executing anonymous Apex code.

-        C. To avoid Apex code coverage requirements for the code between these lines.

-        D. To create an additional set of governor limits during the execution of a single test class.

-        + Test.startTest() Test.stopTest() governor limit 테스트할 사용된다. 이러한 메소드는 실제 테스트 실행 중에 사용되는 리소스 제한에서 데이터 세트를 준비하고 초기화하는데 사용되는 Apex 리소스와 governor limit 분리할 있다.

-        + Test.startTest() Test.stopTest() 사이에 새로운 governor limit 세트가 실행되고 재설정된다.

 

199. What are two testing consideration when deploying code from a sandbox to production? (Choose 2 answers)

-        A. 75% of test must execute without failure

-        B. 100% of test must execute without failure

-        C. Apex code requires 100% coverage

-        D. Apex code requires 75% coverage

 

 

728x90
댓글
«   2024/09   »
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
공지사항