티스토리 뷰

 

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

 

 

2.      Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products? (Choose 2 answers)

-        A. Flow Builder

-        B. Approval Process

-        C. Workflow Rule

-        D. Process Builder

 

 

3.     Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?

-        A. Use a Max Roll-Up Summary field on the Latest availability date fields.

-        B. Use a CEILING formula on each of the Latest availability date fields.

-        C. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.

-        D. Use a LATEST formula on each of the latest availability date fields.

 

 

4.      How should a custom user interface be provided when a user edits an Account in Lightning Experience?

-        A. Override the Account's Edit button with Lightning component.

-        B. Override the Account's Edit button with Lightning Flow.

-        C. Override the Account's Edit button with Lightning Action.

-        D. Override the Account's Edit button with Lightning page.

 

 

5.      An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use. What is the correct definition of a Lightning Web component property that uses the getAccounts method?

-        A. A

-        B. B

-        C. C

-        D. D

 

 

6.     A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components. Which annotation should the developer add to the Apex method to achieve this?

-        A. @AuraEnabled (cacheable = true)

-        B. @AuraEnabled

-        C. @RemoteAction

-        D. @RemoteAction (cacheable = true)

-        + cacheable = true 데이터를 가져올 사용하는 것으로, 수정을 불가능하다.

-        + remoteaction visualforce에서 사용하는 것이고, auraenable lightning에서 사용하는

 

 

7.      Which annotation exposes an Apex class as a RESTful web service? (check)

-        A. ©AuraEnabled

-        B. ©RestResource

-        C. ©Httplnvocable

-        D. ©RemoteAction

-        + AuraEnabled lightning component 위한 어노테이션이다.

 

 

8.      Which code displays the content of Visualforce page as PDF?

-        A. <apex:page readerAs= ''application/pdf''>

-        B. <apex:page renderAs="pdf">

-        C. <apex:page contentype '' application/pdf''>

-        D. <apex:page readeras'' application/pdf''>

-        + <apex:page renderAs="pdf"> 통해 page PDF 변환할 있다.

 

 

9.      What is the value of the Trigger.old context variable in a Before Insert trigger?

-        A. null

-        B. A list of newly created sObjects without IDS

-        C. An empty list of sObjects

-        D. Undefined

 

 

10.   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'? (Similar)

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

 

 

11.   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? (Similar)

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

 

 

12.   A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class. Which code segment shows the correct declaration of the class and methods? (check)

-        A.

-        B.

-        C.

-        D.

 

 

13.   A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debtAmount' should not be able to change once a value is assigned. In which      two ways can the developer declare the variables to ensure their value can only be assigned one time? (Choose 2 answers) (check)

-        A. Use the final keyword and assign its value in the class constructor.

-        B. Use the static keyword and assign its value in a static initializer.

-        C. Use the static keyword and assign its value in the class constructor.

-        D. Use the final keyword and assign its value when declaring the variable.

 

 

14.   Which two characteristics are true for Aura component events? (Choose 2 answers) (check)

-        A. The event propagates to every owner in the containment hierarchy.

-        B. Depending on the current propagation phase, calling event. Stoppropagation () may not stop the event propagation.

-        C. If a container component needs to handle a component event, add a include Facets" true" attribute to its handler.

-        D. By default, containers can handle events thrown by components they contain.

-        https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_application_handling_phases.htm

 

 

15.   Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page. If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system. Which three factors should a developer keep Hi mind when implementing the Apex method? (Choose 3 answers) (check)

-        A. The method must use the @AuraEnabled annotation.

-        B. The method must use the @Future annotation.

-        C. The method must be defined as static.

-        D. The method must be defined as public.

-        E. The method must use the @invocableMethod annotation.

 

 

16.   A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?

-        A. Write a class that implements the HTTPCalloutMock interface.

-        B. Write a class that extends HTTPCalloutMock.

-        C. Write a class that extends WebserviceMock

-        D. Write a class that implements the WebserviceMock interface.

 

 

17.    When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

-        A. Sandbox

-        B. Dev Hub

-        C. Environment Hub

-        D. Production

 

 

18.   Which three Salesforce resources can be accessed from a Lightning web component? (Choose 3 answers)

-        A. Third-party web components

-        B. Static resources

-        C. SVG resources

-        D. All external libraries

-        E. Content asset files

 

 

19.    Which two sfdx commands can be used to add testing data to a Developer sandbox?

-        A. Forced: data: object :upsert

-        B. Forced: data:bulk:upsert

-        C. Forced: data: tree: upsert

-        D. Forced: data:async:upsert

 

 

20.    Universal Container uses Service Cloud with a custom field, stage_c, on the Case object. Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to '';Waiting on customer'' The .... Administrator wants to ensure the solution used is bulk safe. Which two automation tools should a developer recommend to meet these business requirements? (Choose 2 answers) (check)

-        A. Scheduled Flow

-        B. Record_Triggered Flow

-        C. Einstein Next Best Action

-        D. Process Builder

 

 

21.    Universal Containers has large number of custom applications that were built using a third- party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?

-        A. Set the attribute enable Lightning to true in the definition.

-        B. Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.

-        C. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.

-        D. Rewrite all Visualforce pages as Lightning components.

 

 

22.    A Salesforce Administrator used Flow Builder to create a flow named ''accountOnboarding''. The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component?

-        A. Aura:flow

-        B. Lightning:flow

-        C. Lightning-flow

-        D. Aura:flow

 

 

23.   Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a server Update platform event. The developer is working on a Lightning web component to display the information.

-        A. import ( subscribe, unsubscribe, onError ) from 'lightning/pubsub’

-        B. import ( subscribe, unsubscribe, onError ) from 'lightning/ServerUpdate'

-        C. import ( subscribe, unsubscribe, onError ) from 'lightning/empApi '

-        D. import ( subscribe, unsubscribe, onError ) from 'lightning/MessageChannel'

-        + lightning/empApi 모듈은 스트리밍 채널에 가입하고 이벤트 메세지를 수신하는 방법에 대한 액세스를 제공한다. 단일 브라우저 세션에서 여러 스트리밍 앱을 실행할 있게 해준다. 연결이 여러 사용자 세션 간에 공유되지는 않는다.

 

 

24.   Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry: which three statements are accurate about debug logs? (Choose 3 answers) (check)

-        A. Only the 20 most recent debug logs for a user are kept.

-        B. System debug logs are retained for 24 hours.

-        C. The maximum size of a debug log is 5 MB.

-        D. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

-        E. Debug logs can be set for specific users, classes, and triggers.

-        + Debug log 최대 20MB까지 가능하다.

 

 

25.   Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry:


When the code execution, which two events occur as a result of the Apex transaction? (Choose 2 answers) (
Similar) (New) (check)

-        A. If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit

-        B. If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DML governor limit.

-        C. The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.

-        D. The Apex transaction fails with the following message. "SObjectrow was retrieved via SOQL without querying the requested field Account.Is.Tech__c''.

-        + D C 정답인 이유는 200개의 Accounts 상관없이 SOQL문에서 LIMIT 150 작성하였기에 150개의 제한을 넘기지도 않아 uncaught exception 상관없이 업데이트 된다.

-        + Total number of DML statements issued Asynchronous Limit 150이다.

-        + Total number of DML statements issued Synchronous Limit 150이다.

-        + 트랜잭션은 예외의 오류로 인한 영향을 받지 않는다.

-        + https://salesforce.stackexchange.com/questions/367826/batch-apex-uncatchable-uncaught-exceptions

 

 

26.   Which three statements are accurate about debug logs? (Choose 3 answers) (Similar) (check)

-        A. To View Debug Logs, "Manager Users" or "Modify All Data" permission is needed.

-        B. Debug Log levels are cumulative, where FINE lop level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

-        C. Amount of information logged in the debug log can be controlled by the log levels.

-        D. To View Debug Logs, "Manager Users" or "View All Data" permission is needed.

-        E. Amount of information logged in the debug log can be controlled programmatically.

 

 

27.   A developer has two custom controller extensions where each has a save() method. Which save() method will be called for the following Visualforce page? <apex:page standardController ="Account", extensions="ExtensionA, ExtensionB"> <apex:commandButton action ="{!save}" value="Save"/> </apex:page> (check)

-        A. Runtime error will be generated

-        B. ExtensionA save()

-        C. Standard controller save()

-        D. ExtensionB save()

 

 

28.   A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class? (check)

-        A. Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount) {} }

-        B. Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) {} }

-        C. Public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount); }

-        D. Public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount); }

 

 

29.   A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation? (Similar)

-        A. Public class DrawList implements Sortable, Implements Drawable {
  public void sort() { /*implementation*/}
  public void draw() { /*implementation*/} }

-        B. Public class DrawList extends Sortable, Drawable {
  public void sort() { /*implementation*/}
  public void draw() { /*implementation*/} }

-        C. Public class DrawList extends Sortable, extends Sortable, extends Drawable {
  public void sort() { /*implementation*/ }
  public void draw() { /* implementation */}

-        D. Public class DrawList implements Sortable, Drawable {
  public void sort() { /*implementation*/}
  public void draw() { /*implementation*/} }

 

 

30.   Which action may cause triggers to fire?

-        A. Renaming or replacing a picklist entry.

-        B. Cascading delete operations.

-        C. Updates to Feed Items

-        D. Changing a user's default division when the transfer division option is checked.

 

 

31.   An Opportunity needs to have an amount rolled up from a custom object that is not in a master- detail relationship. How can this be achieved?

-        A. Write a Process Builder that links the custom object to the Opportunity.

-        B. Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity.

-        C. Write a trigger on the child object and use a red-black tree sorting to sum the amount for all related child objects under the Opportunity.

-        D. Use the Streaming API to create real-time roll-up summaries.

 

 

32.   A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic? (check)

-        A. Use a try-catch block after the insert statement.

-        B. Remove the Apex class from the integration user's profile.

-        C. Use the Database method with all or None set to false.

-        D. Deactivate the trigger before the integration runs.

 

 

33.   what are the methods used to show input in classic and lightning?

-        A. Use visualforce page in classic and lightning component in lightning

 

 

34.   When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature?

-        A. Build an Account custom Trigger.

-        B. Build an Account Assignment Rule.

-        C. Build an Account Workflow Rule.

-        D. Build an account Approval Process

 

 

35.   What is an example of a polymorphic lookup field in Salesforce?

-        A. The What id field on the standard Event object

-        B. The Parent id field on the standard Account object

-        C. A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign

-        D. The LeadId and Contactid fields on the standard Campaign Member object.

 

 

36.   What is the result of the following code?

-        CODE : Account a = new Account (); Database.insert(a, false);

-        A. The record will not be created and a exception will be thrown.

-        B. The record will be created and no error will be reported.

-        C. The record will be created and a message will be in the debug log.

-        D. The record will not be created and no error will be reported.

 

 

37.   A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class?

-        A. Remove the falling test methods from the test class.

-        B. Create a test class and methods to cover the Apex trigger.

-        C. Run the tests using the 'Run All Tests' method.

-        D. Increase the test class coverage on the helper class.

 

 

38.   While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly. Which approach should the developer use to be sure that the Apex class works correctly?

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

 

 

39.   A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved? (check)

-        A. Set "Use the first value in the list as the default value" as True.

-        B. Mark the field as Required on the field definition.

-        C. Set a validation rule to enforce a value is selected.

-        D. Mark the field as Required on the object's page layout.

 

 

40.   Universal container wants a list button to display a visualforce page that allows users to edit multiple records which visualforce feature supports this requirement.

-        A. Recordsetvar page attribute

 

 

41.   A developer created a Lightning web component called statusComponent to be inserted into the Account record page. Which two things should the developer do to make the component available? (check)

-        A. Add <isExposed> true</isExposed> to the statusComponent.js-meta.xml file.

-        B. Add < masterLabel>Account</master Label> to the statusComponent.js-meta.xml file.

-        C. Add<target> Lightning_RecordPage </target> to the statusComponent.js file.

-        D. Add <target> lighting _RecordPage </target> to the statusComponent.js-meta.xml file.

 

 

42.   Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. which Visualforce feature supports this requirement?

-        A. Custom controller

-        B. <apex:listButton> tag

-        C. Controller extension

-        D. RecordSetVar page attribute

-        + RecordSetVar sObject 레코드 목록을 반환하는데 사용된다. Standard Controller 함께 제공되는 기능으로이다.

 

 

43.   The following automations already exist on the Account object;
* A workflow rule that updates a field when a certain criteria is met
* A custom validation on a field
* A How that updates related contact records A developer created a trigger on the Account object.
What should the developer consider while testing the trigger code?

-        A. The trigger may fire multiple times during a transaction.

-        B. Workflow rules will fire only after the trigger has committed all DML operations to the database.

-        C. A workflow rule field update will cause the custom validation to run again.

-        D. The flow may be launched multiple times.

 

 

44.   The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
* Rollup summary fields
* Custom validation rules
* Duplicate rules
A developer created a trigger on the Account object. What two things should the developer consider while testing the trigger code? (Choose 2 answers) (Similar)

-        A. Rollup summary fields can cause the parent record to go through Save.

-        B. The validation rules will cause the trigger to fire again.

-        C. Duplicate rules are executed once all DML operations commit to the database.

-        D. The trigger may fire multiple times during a transaction.

 

 

45.   Considering the following code snippet:

-        A. Implement the upsert DML statement.

-        B. Implement a try/catch block for the DML.

-        C. Remove null items from the list if Accounts.

-        D. Implement Change Data Capture.

 

 

46.   Which two examples above use the system.debug statements to correctly display the results from the SOQL aggregate queries? (Choose 2 answers) (check)

-        A. AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResults) { System.debug(‘Campaign ID’ + ar.get(‘CampaignId’)); System.debug(‘Average amount’ + ar.get(‘expr0’)); }

-        B. AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) theAverage FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResults) { System.debug(‘Campaign ID’ + ar.get(‘CampaignId’)); System.debug(‘Average amount’ + ar.get(‘theAverage’)); }

-        C. AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResults) { System.debug(‘Campaign ID’ + ar.get(‘CampaignId’)); System.debug(‘Average amount’ + ar.get.AVG()); }

-        D. AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) theAverage FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResults) { System.debug(‘Campaign ID’ + ar.get(‘CampaignId’)); System.debug (‘Average amount’ + ar.theAverage); }

 

 

47.   What are three considerations when using the @InvocableMethod annotation in Apex? (Choose 3 answers)

-        A. A method using the @InvocableMethod annotation must define a return value.

-        B. Only one method using the @InvocableMethod annotation can be defined per Apex class.

-        C. A method using the @InvocableMethod annotation can have multiple input parameters.

-        D. A method using the @InvocableMethod annotation can be declared as Public or Global.

-        E. A method using the @InvocableMethod annotation must be declared as static.

-        + @AuraEnabled annotation 붙여줘야만 Aura component Lightning Component에서 사용이 가능하다.

-        + Flow Process에서 사용하려면 @invocableMethod 사용해야 한다.

 

 

48.   A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules. What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account? (check)

-        A. 3

-        B. 1

-        C. 4

-        D. 2

 

 

49.   An org has an existing Visual Flow that creates an Opportunity with an Update records element. A developer must update the Visual Flow also created a Contact and store the created Contact's ID on the Opportunity. Which update should the developer make in the Flow?

-        A. Add a new Update records element

-        B. Add a new Get Records element.

-        C. Add a new Quick Action (of type create) element.

-        D. Add a new Create records element.

-        + Get Record 필터 조건을 만족하는 Salesforce 레코드를 찾아, 레코드의 값을 변수에 저장한다.

-        + Create Record record collection 변수를 사용하여 Salesforce 레코드를 만든다. 레코드 변수나 Flow 값을 사용하여 하나의 Salesforce record 만든다.

 

 

50.   The Salesforce Administrator created a custom picklist field, Account_status_c, on the a Account object. This picklist has possible values of Inactive'' and Active? As part of a new business process, management wants to ensure an opportunity record is created only for Accounts marked as "Active". A developer is asked to implement this business requirement. Which two automation tools should be used to fulfill the business need? (Choose 2 answers)

-        A. Process Builder

-        B. Workflow Rules

-        C. Salesforce Flow

-        D. Approval Process

-        + Process Builder Workflow Rule 경우 21년도 겨울부터 은퇴를 준비하고 있기에 조심해야 한다.

 

 

 

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