Salesforce: Scalable Vector Graphics Questions! Trivia Quiz

11 Questions | Total Attempts: 132

SettingsSettingsSettings
Please wait...
Salesforce: Scalable Vector Graphics Questions! Trivia Quiz

.


Questions and Answers
  • 1. 
    Which three steps allow custom SVG to be included in a lightning web component?
    • A. 

      Upload the SVG as a static resource

    • B. 

      Import the static resource and provide a getter for it in javascript

    • C. 

      Reference the getter in the HTML template

    • D. 

      Reference the import in the HTML template

    • E. 

      Import the SVG as a content asset file

  • 2. 
    Which statement generates a List of Leads and Contact that have a field with the phrase 'ACME'?
    • A. 

      List<sObject>  searchList = [FIND 'ACME'  IN ALL FIELDS RETURNING Contact, Lead]

    • B. 

      List<List<sObject>>  searchList = [FIND 'ACME'  IN ALL FIELDS RETURNING Contact, Lead]

    • C. 

      Map<sObject> searchList =[FIND 'ACME'  IN ALL FIELDS RETURNING Contact, Lead]

    • D. 

      List<List<sObject>>  searchList =[SELECT id,name FROM Contact,Lead WHERE Name LIKE '%ACME%']

  • 3. 
    A developer needs to have records with specific field values in order to test a new  APEX class. What should the developer do to ensure the data available to the test?
    • A. 

      Use Test.LoadData( )  and reference a CSV file

    • B. 

      Use SOQL to query the org for the required data

    • C. 

      Use Test.loadData( ) and reference a static resource.

    • D. 

      Use Anonymous APEX to create the required data

  • 4. 
    Universal Containers(UC) wants to lower its shipping cost while making the shipping process more efficiently. The Distribution Officer advises UC to implement a global address to allow multiple Accounts to share a default pickup address.The developer is tasked to create the shipping object and relationship for the business requirement and uses the Setup Menu to create a custom object called "Global Address"  Which field should the developers add to create the most efficient model that supports the business model?
    • A. 

      Add a Master-Detail field on the Account object to the global Address object

    • B. 

      Add a Master-Detail field on the Global Address object to the Account object

    • C. 

      Add a Lookup field on the Account object to the Global Address object

    • D. 

      Add a Lookup field on the Global Address object to the Account object

  • 5. 
    A development team wants to use a deployment script to automatically deploy to a sandbox during their  development cycle. Which tool should they use to deploy to sandbox?
    • A. 

      Change Sets

    • B. 

      VSCode

    • C. 

      Ant Migration Tool

    • D. 

      Developer Console

  • 6. 
    A developer must write an APEX method that will be called from a lighting component. The method may delete an Account stored in an accountable variable. which method should a developer use to ensure only Users that should be able to delete Account can successfully perform the deletion. 
    • A. 

      Account.sObjectType.isDeletable()

    • B. 

      Schema.sObjectType.Account.isDeletable()

    • C. 

      AccountBec.isDeletable()

    • D. 

      Accounts.isDeletable()

  • 7. 
    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 re-evaluate workflow rules. What is the value of the count field if an account is inserted with initial value 0?
    • A. 

      4

    • B. 

      3

    • C. 

      2

    • D. 

      1

  • 8. 
    The application event follows a classic publish-subscribe model. Which event is used to fire an event?
    • A. 

      Fire()

    • B. 

      Emit()

    • C. 

      FireEvent()

    • D. 

      RegisteEvent()

  • 9. 
    How should a developer write a unit test for a private method?
    • A. 

      Use seeAllData annotation

    • B. 

      Add method in the apex class

    • C. 

      Use testVisible annotation

    • D. 

      Mark the apex class as global

  • 10. 
    Universal Containers (UC) decided it will not send emails support personnel directly from salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system to be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?
    • A. 

      Publish the error event using the addError() and have the external system subscribe to the event using CometD

    • B. 

      Have the external system subscribe to the BatchApexError event,no publish is necessary

    • C. 

      Publish the error event using the addError() method and write a trigger to subscribe to the event and notify to external system.

    • D. 

      Publish the error event using the EventBus,publish() method and have the external system subscribe to event using CometD

  • 11. 
    Which aspect of apex programming is limited due to multitenancy?
    • A. 

      The number of active Apex classes

    • B. 

      The number of records returned from database queries

    • C. 

      The number of method in the apex class

    • D. 

      The number of records processed in a loop