nerdexam
SalesforceSalesforce

PDI · Question #49

PDI Question #49: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #49. The question stem and answer options stay visible for context.

Submitted by marco_it· Apr 18, 2026Logic and Process Automation

Question

A custom object Trainer_c has a lookup field to another custom object Gym___c. Which SOQL query will get the record for the Viridian City gym and it's trainers?

Options

  • ASELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'
  • BSELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name -Viridian City Gym'
  • CSELECT ID FROM Trainer_c WHERE Gym__r.Name -Viridian City Gym'
  • DSELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name -Viridian City Gym'

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#SOQL#Subqueries#Parent-Child Relationships#Custom Objects
Full PDI PracticeBrowse All PDI Questions