exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 272 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 272
Topic #: 1
[All Certified Platform Developer II Questions]

A company has a custom object, Request_c, that has a checkbox field, Completed_c, and a Lookup to Opportunity, Opportunity_c.

Which SOQL query will get a unique list of all of the Opportunity records that have a Completed Request?

  • A. SELECT Opportunity_c FROM Request_c WHERE Id IN (SELECT Id FROM Request_c Where Completed_c = true)
  • B. SELECT Opportunity_c FROM Request_c WHERE Completed_c = true
  • C. SELECT Id FROM Opportunity WHERE Id IN (SELECT Id FROM Request_c WHERE Completed = true)
  • D. SELECT Id From Opportunity WHERE Id IN (SELECT Opportunity_c FROM Request_c WHERE Completed_c = true)
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AppleDash
8 months, 2 weeks ago
D is correct
upvoted 1 times
...
bungie
10 months, 1 week ago
it should be A, right
upvoted 1 times
...
Ullr
10 months, 3 weeks ago
D is ok
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...