pdi question 298 discussion

View all Platform Developer I Exam here
back to salesforce forum

Question 298

The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact
object, where the Contact object is the Master. As part of a feature implementation, a developer
needs to retrieve a list containing all Contact records where the related Account Industry is
Technology while also retrieving the contacts Job_Application__c records.
Based on the objects relationships, what is the most efficient statement to retrieve the list of
contacts?

  • A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = Technology];
  • B. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Accounts.Industry = Technology];
  • C. [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE Accounts.Industry = Technology];
  • D. [SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHERE Account.Industry = Technology];
Answer:

B


Explanation:

User Votes:
A 8 votes
50%
B 3 votes
50%
C 1 votes
50%
D 1 votes
50%
Discussions
0 / 1000
Lamine
1 year, 1 month ago

Answer is A

mouhamed.ba
1 year ago

The correct answer is A

Soukoum
1 year ago

The answer is A