Question 49

- (Exam Topic 3)
In a previous data audit, It was determined that close to 5 million Opportunity records are stored within the Salesforce environment. The organization-wide default for the object are set to Public Read-Only and most opportunities are related to an external case.
The method is called from a Lightning web component. Some end users do not provide a cased value and experience low performance while running the query.
Which two techniques should the developer implement to avoid low performance queries from executing? Choose 2 answers

Correct Answer:AD

Question 50

- (Exam Topic 1)
What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String si, Integer il, Boolean bl, String 52)

Correct Answer:BD

Question 51

- (Exam Topic 1)
Which is a valid Apex REST Annotation? (Choose two.)

Correct Answer:AB

Question 52

- (Exam Topic 1)
Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5
@AuraEnabled Line 6 public List getStringArray() { Line 7 Strings+ arrayItems = new String*+, 'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?

Correct Answer:C

Question 53

- (Exam Topic 1)
When testing batch classes, what must a developer do? (Choose two.)

Correct Answer:BD
If you use "seeAIIData=true," you are a bad person

Question 54

- (Exam Topic 1)
What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)

Correct Answer:BD

START Platform-Developer-II EXAM