Question: How does Spring Data facilitate queries against a datastore?

  1. Queries are explicitly coded in repository implementations using the Spring Data CriteriaBuilder.
  2. Query metadata is stored in the underlying datastore and retrieved at runtime per repository.
  3. Queries are derived from the signatures of methods on a Spring Data repository that contain keywords in their name for constructing the query logic.
  4. A spring-data-queries.xml file contains queries within entity tags that specify the query logic for each repository.

Answer: The correct answer of the above question is Option C:Queries are derived from the signatures of methods on a Spring Data repository that contain keywords in their name for constructing the query logic.