티스토리 뷰

1.     A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console? (check)

-        A. The test method has a syntax error in the code.

-        B. The test method does not use System.runAs to execute as a specific user.

-        C. The test method is calling an @future method.

-        D. The test method relies on existing data in the sandbox.

 

 

2.     Universal Containers has an order system that uses on Order Number to identify an order for customers service agents. Order records will be imported into Salesforce. How should the "Order Number field be defined in Salesforce.

-        A. Lookup

-        B. Indirect Lookup

-        C. Direct Lookup

-        D. Number with External ID

 

 

3.     A developer of Universal Containers is tasked with implementing a new Salesforce application that must be able to by their company's Salesforce administrator. Which three should be considered for building out the business logic layer of the application? (Choose 3 answers)

-        A. Workflows

-        B. validation Rules

-        C. Invocable Actions

-        D. Process Builder

-        E. Scheduled Jobs

 

 

4.     Universal Containers decides to use purely declarative development to build out a new Salesforce application. Which three options can be used to build out the business logic layer for this application? (Choose 3 answers) (Similar)

-        A. Workflows

-        B. validation Rules

-        C. Process Builder

 

 

5.     A develop created these three roll-up summary fields on the custom object. Project_c:

The developer is asked to create a new field that should the ratio between rejected and approved timesheet for a given project. What are two benefits of choosing a formula held instead of an Apex trigger to fulfill the request? (Choose 2 answer) (check)

-        A. A test class will validate the formula field during deployment.

-        B. A formula field will trigger existing automation when deployed.

-        C. Using a formula field reduces maintenance overhead.

-        D. A formula field will calculate the retroactively for existing records

 

 

6.     A developer created these three Rollup Summary fields in the custom object, Project_ct, 

The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to Implement the business requirement in order to minimize maintenance overhead? (Similar)

-        A. Record-triggered Flow

-        B. Process Builder

-        C. Apex Trigger

-        D. Formula field

 

 

7.     A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?

-        A. Developer sandboxes

-        B. Scratch orgs

-        C. Full Copy sandboxes

-        D. Developer orgs

 

 

8.     A developer has to identify a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a SOQL statement to save the changes to the database. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? (Choose 2 answers)

-        A. Use the System.Limit class to monitor the current CPU governor limit consumption.

-        B. Use the Database.Savepoint method to enforce database integrity.

-        C. Use Partial DHL statements to ensure only valid data is committed.

-        D. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.

 

 

9.     A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?

-        A. Data Import Wizard can not import all 500 records.

-        B. Data Import Wizard does not support Opportunities.

-        C. Data Loader runs from the developer's browser.

-        D. Data Loader automatically relates Opportunities to Accounts.

-        + Data Import Wizard Account, Lead, Contact, Campaign 같은 일부 Standard Object 지원한다.

 

 

10.   How does the Lightning Component framework help developers implement solutions faster?

-        A. By providing an Agile process with default steps

-        B. By providing change history and version control

-        C. By providing code review standards and processes

-        D. By providing device-awareness for mobile and desktops

-        + lightning component framework version control 기능을 제공하지 않는다. Version control tool 경우 Salesforce development 사용해야 한다. Agile process 코드 리뷰도 lightning component framework 범위에 포함되지 않는다.

 

 

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

-        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 프레임워크이다.

 

 

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

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

 

 

13.   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 2 answers)

-        A. Use a trigger.

-        B. Use a validation rule.

 

 

14.   A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculation 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 3 answers)

-        A. renderAs

-        B. readOnly

-        C. standard Controller

-        D. extensions

-        E. Action

 

 

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

-        A. Readonly

-        B. Extensions

-        C. Action

-        D. Renderas

-        E. Standardcontroller

 

 

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

-        A. readOnly

-        B. renderAs

-        C. action

-        D. standardController

-        E. extensions

 

 

17.   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 @IsTest (SeeAllData=True) and delete the existing standard price book

-        B. Use Test.getStandardPricebookid( ) to get the standard price book ID.

-        C. Use Test.loadData ( )and a static resource to load a standard price book

-        D. Use @TestVisible to allow the test method to see the standard price book.

 

 

18.   Which statement would a developer use when creating test data for products and pricebooks? (Similar)

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

-        B. IsTest(SeeAllData = false);

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

-        D. Pricebook pb = new Pricebook();

 

 

19.   Where are two locations a developer can look to find information about the status of asynchronous or future methods? (Choose 2 answers)

-        A. Paused Flow Interviews component

-        B. Apex Flex Queue

-        C. Time-Based Workflow Monitor

-        D. Apex Jobs

 

 

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

-        A. Scheduled jobs

-        B. Background Jobs

-        C. Apex Jobs

-        D. Asynchronous Jobs

 

 

21.   What are two ways a developer can get the status of an enqueued job for a class that queueable interface? (Choose 2 answers) (check) (Similar)

-        A. Query the AsyncApexJobe object

-        B. View the apex flex Queue

-        C. View the apex Jobs page

-        D. View the apex status Page

-        + Apex Flex Queue Apex Status 페이지는 대기열에 대한 정보를 제공하지만, 작업에 대한 정보를 제공하지는 않는다.

 

 

22.   Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

-        A. Declare the class and method using the global access modifier

-        B. Declare the class as global and use the public access modifier on the method.

-        C. Declare the class as public and use the global access modifier on the method.

-        D. Declare the class and method using the public access modifier.

 

 

23.   What are two ways for a developer to execute tests in an org?

-        A. Bulk API

-        B. Metadata API

-        C. Tooling API

-        D. Developer console

 

 

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

-        A. Bulk API

-        B. Tooling API

-        C. Setup Menu

-        D. Salesforce DX

-        E. Metadata API

 

 

25.   How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set? (Similar)

-        A. Use the code Coverage Setup page

-        B. Use SOQL and the Tooling API

-        C. Use the Apex test result class

-        D. Use the Flow properties page.

-        + Org 사이에서 메타데이터를 주고 받을 changing set 사용한다.

 

 

26.   What should a developer use to fix a Lightning web component bug in a sandbox? (Similar)

-        A. VS Code

-        B. Developer Console

-        C. Force.com IDE

-        D. Execute Anonumous

 

 

27.   While writing an Apex class, a developer wants to make sure that all functionality being developed is handled as specified by the requirements. Which approach should the developer use to be sure that the Apex class is working according to specifications?

-        A. Include a savepoint and Database. rollback ()

-        B. Run the code in an Execute Anonymous block in the Developer Console.

-        C. Create a test class to execute the business logic and run the test in the Developer Console.

-        D. Include a try/catch block to the Apex class.

 

 

28.   Which two settings must be defined in order to update a record of a junction object? (Choose 2 answers)

-        A. Read access on the primary relationship

-        B. Read/Write access on the primary relationship

-        C. Read/Write access on the junction object

-        D. Read/Write access on the secondary relationship

 

 

29.   A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner?

-        A. An Apex trigger on the Opportunity object

-        B. An error condition formula on a validation rule on Opportunity

-        C. A record trigger flow on the Opportunity object

-        D. approval process on the Opportunity object

 

 

30.   A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality?

-        A. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience

-        B. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

-        C. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience

-        D. A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience

 

 

31.   Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?

-        A. ernit()

-        B. fireEvent()

-        C. registerEvent()

-        D. fire()

 

 

32.   Application Events follow the traditional publish-subscribe model. Which method is used to fire an event? (Similar)

-        A. Emit()

-        B. FireEvent()

-        C. RegisterEvent()

-        D. Fire()

 

 

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

 

 

34.   A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?

-        A. Create test data before Test.startTest() in the unit test.

-        B. Create a mock using the Stud API

-        C. Use @TestSetup with a void method.

-        D. Add @isTest(seeAllData=true) at the start of the unit test class.

 

 

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

-        D. @BeforeTest

-        + SeeAllData=True 모든 데이터를 테스트한다는 의미이다.

-        + SeeAllData=false 데이터를 직접 넣겠다는 의미이다.

 

 

36.   Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account]; What occurs when more than one Account is returned by the SOQL query? (check)

-        A. The variable, myAccount, is automatically cast to the List data type.

-        B. An unhandled exception is thrown and the code terminates.

-        C. The first Account returned is assigned to myAccount.

-        D. The query fails and an error is written to the debug log.

 

 

37.   A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data. Which security consideration should the developer be aware of?

-        A. Lightning Data Service handles sharing rules and field-level security.

-        B. The with sharing keyword must be used to enforce sharing rules.

-        C. The isAccessible ( ) method must be used for field-level access checks

-        D. Lightning Data Service ignores field-level security.

 

 

38.   What are two benefits of using declarative customizations over code? Choose 2 answers What are two benefits of using declarative customizations over code? (check)

-        A. Declarative customizations automatically update with each Salesforce release.

-        B. Declarative customizations automatically generate test classes.

-        C. Declarative customizations automatically generate test classes.

-        D. Declarative customizations generally require less maintenance.

-        + Salesforce features built with declarative tools :

-        * Generally require less maintenance.

-        * Receive automatic upgrades when the tools are improved.

-        * Aren’t subject to governor limits.

 

 

39.   What are two ways that a controller and extension can be specified on a Visualforce page? (Choose 2 answers)

-        A. Qo apex:page standardController="Account" extensions="myControllerExtension"

-        B. @apex:page=Account extends="myControllerExtension"

-        C. apex:page controllers="Account, myControllerExtension"

-        D. apex:page controller="Account" extensions="myControllerExtension"

 

 

40.   A developer identifies the following triggers on the Expense_c object: DeleteExpense, applyDefaultstoexpense validateexpenseupdate; The triggers process before delete, before insert, and before update events respectively. Which two techniques should the developer implement to ensure trigger best practice are followed?

-        A. Unify the before insert and before update triggers and use Process Builder for the delete action.

-        B. Unify all three triggers in a single trigger on the Expense__c object that includes all events.

-        C. Maintain all three triggers on the Expense__c object, but move the Apex logic out for the trigger definition.

-        D. Create helper classes to execute the appropriate logic when a record is saved.

 

 

41.   Which two events need to happen when deploying to a production org? (Choose 2 answers)

-        A. All triggers must have at least 75% test coverage.

-        B. All test and triggers must have at least 75% test coverage combined

-        C. All triggers must have at least 1% test coverage.

-        D. All Apex code must have at least 75% test coverage.

 

 

42.   A develop completed modification to a customized feature that is comprised of two elements: Apex trigger Trigger handler Apex class What are two factors that the developer must take into account to properly deploy the modification to the production environment? (Similar)

-        A. Apex classes must have at least 75% code coverage org-wide.

-        B. At least one line of code must be executed for the Apex trigger.

-        C. All methods in the test classes must use @isTest.

-        D. Test methods must be declared with the testMethod keyword.

-        + @isTest Class 붙이면, 메소드에 자동으로 적용된다.

-        + the testMethod keyword 이제 사용하지 않는 기능으로, 이제는 @isTest 바뀌었다.

 

 

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

 

 

44.   Which two statements are true about Getter and Setter methods as they relate to Visualforce? (check)

-        A. Setter methods always have to be declared global.

-        B. A corresponding Setter method is required for each Getter method.

-        C. There is no guarantee for the order in which Getter methods are called.

-        D. Getter methods pass values from a controller to a page.

-        + https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_methods.htm

 

 

45.   A developer is asked to create a Visualforce page for Opportunities that allows users to save or merge the current record. Which approach should the developer to meet this requirement? (check)

-        A. A custom controller

-        B. A custom controller extension

-        C. Visualforce page JavaScript

-        D. Standard controller methods

 

 

46.   A developer needs to create a custom Interface in Apex. Which three considerations must the developer keep in mind while developing the Apex Interface? (Choose 3 answers)

-        A. The Apex class must be declared using the interface keyword.

-        B. New methods can be added to a public interface within a released package.

-        C. The Apex interface class access modifier can be set to Private, Public, or Global.

-        D. A method implementation can be defined within the Apex Interface.

-        E. A method defined In an Apex Interface cannot have an access modifier.

 

 

47.   Universal Containers has a Visualforce page that displays a table of every Container_c. being ....... Is falling with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?

-        A. Implement pagination with an OffsetController.

-        B. Implement pagination with a StandardSetController.

-        C. Use JavaScript remoting with SOQL Offset.

-        D. Use Lazy loading and a transient List variable.

 

 

48.   A software company uses the following objects and relationships:
* Case: to handle customer support issues
* Defect_c: a custom object to represent known issues with the company's software
* case_Defect__c: a junction object between Case and Defector to represent that a defect Is a customer issue
What should be done to share a specific Case-Defect_c record with a user?

-        A. Share the Case_Defect_c record.

-        B. Share the parent Case record.

-        C. Share the parent Defect_c record.

-        D. Share the parent Case and Defect_c records.

 

 

49.   Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the Master-Detail relationship to a Lookup relationship but was not able to do so. What is a possible reason that this change was not permitted?

-        A. The Vendor records have existing values in the Account object.

-        B. The Account records contain Vendor roll-up summary fields.

-        C. The Account object is included on a workflow on the Vendor object.

-        D. The Vendor object must use a Master-Detail field for reporting.

 

 

50.   Which three data types can a SOQL query return? (Choose 3 answers.)

-        A. sObject

-        B. Integer

-        C. Long

-        D. List

 

 

 

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
공지사항