Question: How does Spring Data facilitate queries against a datastore?
- Queries are explicitly coded in repository implementations using the Spring Data CriteriaBuilder.
- Query metadata is stored in the underlying datastore and retrieved at runtime per repository.
- Queries are derived from the signatures of methods on a Spring Data repository that contain keywords in their name for constructing the query logic.
- 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.