What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface?
Choose 2 answers
A. Query the AsyncApexJob object
B. View the Apex Jobs page
C. View the Apex Flex Queue
D. View the Apex Status page
正解:A,C
質問 2:
A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debitAmount' 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
A. Use the static keyword and assign its value in the class constructor.
B. Use the final keyword and assign its value when declaring the variable.
C. Use the static keyword and assign its value in a static initializer.
D. Use the final keyword and assign its value in the class constructor.
正解:B,D
質問 3:
Consider the following code snippet:

Given the multi-tenant architecture of the Salesforce platform, what is a best practice a developer should implement and ensure successful execution of the method?
A. Avoid using variables as query filters.
B. Avoid executing queries without a limit clause.
C. Avoid returning an empty List of records.
D. Avoid performing queries inside for loops.
正解:D
質問 4:
Which two events need to happen when deploying to a production org?
Choose 2 answers
A. All Visual flows must have at least 1% test coverage.
B. All custom objects must have visibility set to a value other than in Development.
C. All Apex code must have at least 75% test coverage.
D. All triggers must have some test coverage
正解:C,D
質問 5:
Which two are best practices when it comes to Aura component and application event handling?
Choose 2 answers
A. Use component events to communicate actions that should be handled at the application level.
B. Reuse the event logic in a component bundle, by putting the logic in the helper.
C. Try to use application events as opposed to component events.
D. Handle low-level events in the event handler and re-fire them as higher-level events.
正解:B,D
質問 6:
A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.
In which two ways can this be accomplished?
Choose 2 answers
A. The parent component can use a public property to pass the data to the child component,
B. The parent can use the Apex controller class to send data to the child component.
C. The parent component can use a custom event to pass the data to the child component.
D. The parent component can invoke a public method in the child component.
正解:A,D
質問 7:
A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records.
Which two approaches can the developer use to ensure Pricing _Structure__c records are available when the test class is executed?
Choose 2 answers
A. Use the Test. leadteat{) method.
B. Use a Test Date Factory class.
C. Use without sharing on the class declaration.
D. Use the @TsTest (SeeAllData=true) annotation.
正解:B,D
質問 8:
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.
Why did the method fail in the sandbox test framework but succeed in the Developer Console?
A. The test method relies on existing data in the sandbox.
B. The test method has a syntax error in the code.
C. The test method does not use system. runAs to execute as a specific user.
D. The test method is calling an @future method.
正解:A
質問 9:
Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, to Application_c acting as the detail.
Within the Job__c object, a custom multi-select picklist, preferred _Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship.
Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync if changes occur to the Contact's Mailing State.
What is the recommended tool a developer should use to meet the business requirement?
A. Record-triggered flow
B. Apex trigger
C. Roll-up summary field
正解:A
小林** -
Pass4Testから提供されたDEX-450問題集のおかげで試験に合格しました。