Free Platform-Developer-II Exam Braindumps

Pass your Platform Developer II exam with these free Questions and Answers

Page 25 of 35
QUESTION 116

- (Exam Topic 2)
An org has a requirement that the Shipping Address on the Account must be validated by a third-party web service, before the Account is allowed to be inserted.
What is the optimal way to meet this requirement?

  1. A. Make a callout to the web service from a custom Visualforce controller.
  2. B. Make a callout to the web service from a standard Visualforce controller.
  3. C. Make a callout to the web service from an after insert trigger.
  4. D. Make a callout to the web service from a before insert trigger.

Correct Answer: B

QUESTION 117

- (Exam Topic 1)
What are the ways a developer can create test data of Contacts? (Choose two.)

  1. A. Test.createTestData ()
  2. B. myDataFactory.createContacts(10)
  3. C. Test.loadData(Contact.sObjectType, 'staticResource')
  4. D. Test.loadTestRecords(Contact.sObjectType, 'staticResource')

Correct Answer: BC

QUESTION 118

- (Exam Topic 1)
A developer must create a custom pagination solution. While users navigate through pages, if the data is changed from elsewhere, users should still see the cached results first accessed.
How can the developer meet these requirements?

  1. A. Use @Cache annotation
  2. B. Use a StandardSetController
  3. C. Use OFFSET in SOQL queries
  4. D. Use OFFSET WITH CACHE in SOQL queries

Correct Answer: B

QUESTION 119

- (Exam Topic 1)
How can the DISTANCE and GEOLOCATION functions be used i|n SOQL queries? (Choose two.)

  1. A. To filter results based on distance from a latitude and longitude
  2. B. To get the distance results from a latitude and longitude
  3. C. To order results by distance from a latitude or longitude
  4. D. To group results in distance ranges from a latitude and longitude

Correct Answer: AC

Page 25 of 35

Post your Comments and Discuss Salesforce Platform-Developer-II exam with other Community members: