A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created. Which consideration should be checked to resolve the issue?
Universal Containers analyzes a Lightning web component and its Apex controller. Based on the code snippets, what change should be made to display the contacts' mailing addresses in the Lightning web component?
Apex controller class:
Java
public with sharing class AccountContactsController {
@AuraEnabled
public static List
return [SELECT Id, Name, Email, Phone FROM Contact WHERE AccountId = :accountId];
}
}
A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails. What can cause this problem?
A developer needs to add code to a Lightning web component's configuration file so the component only renders for a desktop size form factor when on a record page. What should the developer add to the component's record page target configuration to meet this requirement?
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number__c, that is then used in a query to find matching Accounts.
Java
erpNumber = erpNumber + '%';
List
A developer receives the exception 'SOQL query not selective enough'. Which step should be taken to resolve the issue?
The CalloutUtil.makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?
Java
public void updateAndMakeCallout(Map
Savepoint sp = Database.setSavepoint();
try {
insert regs.values();
insert regLines.values();
HttpResponse response = CalloutUtil.makeRestCallout(regs.keySet(), regLines.keySet());
} catch (Exception e) {
Database.rollback(sp);
}
}
Refer to the component code and requirements below:
HTML
Requirements:
For mobile devices, the information should display in three rows.
For desktops and tablets, the information should display in a single row.
Requirement 2 is not displaying as desired. Which option has the correct component code to meet the requirements for desktops an7d tablets?