Topic 2 : Exam Pool B
A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?
A. The test method has a syntax error in the code
B. The test method relies on existing data in the database
C. The test method use a try/catch block
D. The test method calls an @future method.
A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?
A. The Account should have a Master-Detail relationship to the Invoice.
B. The Invoice should have a Master-Detail relationship to the Account
C. The Account should have a Lookup relationship to the Invoice
D. The Invoice should have a Lookup relationship to the Account Previous
A developer creates an Apex Trigger with the following code block:List
A. 0
B. 1
C. 150
D. 100
When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)
A. Match an auto-generated Number field to a column in the imported file.
B. Match an external Id Text field to a column in the imported file.
C. Match the Name field to a column in the imported file.
D. Match the Id field to a column in the imported file.
A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)
A. ANT Migration Tool
B. Workbench Metadata Retrieval
C. Salesforce UI Apex Test Execution
D. Developer Console
What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
A. The StandardSetController to support related lists for pagination.
B. The Opportunity StandardController for pre -built functionality.
C. A callback constructor to reference the StandardController.
D. A constructor that initializes a private Opportunity variable.
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'?
A. A contact initialized to null.
B. An error that no rows are found.
C. An empty List of Contacts.
D. A Contact with empty values
What is a characteristic of the Lightning Component Framework? Choose 2 answers:
A. It has an event-driven architecture.
B. It works with existing Visualforce pages.
C. It includes responsive components.
D. It uses XML as its data format.
A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records. What would a developer do to accomplish this task? Choose 2 answers
A. Create a roll -up summary field on the Candidate object that counts Interview records.
B. Create a master -detail relationship between the Candidate and Interview objects.
C. Create a lookup relationship between the Candidate and Interview objects.
D. Create a trigger on the Interview object that updates a field on the Candidate object
Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)
A. Namespace
B. Time
C. Exception
D. Debug Statement
Page 14 out of 40 Pages |
Previous |