ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Salesforce Certified platform Developer1] Dump 노트4
    Certification/Platform Developer 2024. 7. 6. 22:01

     

    1. A developer executes the following query in Apex to retrieve a list of contacts for each account: List<account> 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.

     

    CD

     

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

     

    ACE

     

    3. 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. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
    • C. Have each class implement an interface that defines method getTextSummary() that returns the summary.
    • D. Have each class define method getTextSummary() that returns the summary.

     

    C

     

     

    4. A developer is asked to create a PDF quote document formatted using the company's branding guidelines, and automatically save it to the Opportunity record. Which two ways should a developer create this functionality? (Choose two.)

    • A. Install an application from the AppExchange to generate documents.
    • B. Create a Visualforce page with custom styling.
    • C. Create an email template and use it in Process Builder.
    • D. Create a visual flow that implements the companyג€™s formatting.

     

    AB

     

     

    5. What is a benefit of using an after insert trigger over using a before insert trigger?

    • A. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
    • B. An after insert trigger allows a developer to insert other objects that reference the new record.
    • C. An after insert trigger allows a developer to make a callout to an external service.
    • D. An after insert trigger allows a developer to modify fields in the new record without a query.

     

    B

     

     

    6. Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

     

    ABE

     

     

    7. What are two ways for a developer to execute tests in an org? (Choose 2)

    • A. Bulk API
    • B. Metadata API
    • C. Tooling API
    • D. Developer console

     

    CD

     

     

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

     

    BCD

     

     

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

     

    D

     

     

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

     

    B

     

    반응형
Designed by Tistory.