Free Platform-Developer-I Exam Braindumps

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

Page 4 of 34
QUESTION 11

A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?

  1. A. <apex: pageMessages />
  2. B.
  3. C.
  4. D.

Correct Answer: B

QUESTION 12

Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers

  1. A. $Lightning.createComponent
  2. B.
  3. C. $Lightning.useComponent
  4. D. $Lightning.use
  5. E.

Correct Answer: ADE

QUESTION 13

A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?

  1. A. The test method has a syntax error in the code.
  2. B. The test method relies on existing data in the sandbox.
  3. C. The test method is calling an @future method.
  4. D. The test method does not use System.runAs to execute as a specific user.

Correct Answer: B

QUESTION 14

What are three ways for 2 developer to execute tests in an org? Choose 3 answers

  1. A. Metadata APT
  2. B. Bulk API
  3. C. Setup Menu
  4. D. SalesforceDX
  5. E. Tooling API

Correct Answer: CDE

QUESTION 15

A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page.
Without writing unnecessary code, which controller should be used for this purpose?

  1. A. Standard list controller
  2. B. Standard controller
  3. C. Lightning controller
  4. D. Custom controller

Correct Answer: B

Page 4 of 34

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