Spring AI MCQs with answers Page - 3

Here, you will find a collection of MCQ questions on Spring AI. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Arogya • 3.19K Points
Extraordinary

Q. Which annotation is typically used to expose AI features through REST endpoints?

  • (A) @Controller
  • (B) @RestController
  • (C) @Repository
  • (D) @Entity

A

Arogya • 3.19K Points
Extraordinary

Q. What is the role of Tokenization in AI models?

  • (A) Encrypting passwords
  • (B) Breaking text into smaller units (tokens)
  • (C) Compressing images
  • (D) Loading configuration

A

Arogya • 3.19K Points
Extraordinary

Q. Which parameter limits the maximum response size from the AI model?

  • (A) maxTokens
  • (B) timeout
  • (C) threads
  • (D) poolSize

A

Arogya • 3.19K Points
Extraordinary

Q. Why are embeddings used in semantic search?

  • (A) To store images
  • (B) To compare meaning instead of keywords
  • (C) To encrypt files
  • (D) To compress data

A

Arogya • 3.19K Points
Extraordinary

Q. Which architecture pattern is commonly used with Spring AI?

  • (A) Monolithic only
  • (B) Microservices architecture
  • (C) Peer-to-peer networks
  • (D) Blockchain only

A

Arogya • 3.19K Points
Extraordinary

Q. Which feature allows an AI model to call external APIs or functions?

  • (A) Function Calling / Tool Calling
  • (B) Spring Batch
  • (C) JDBC Template
  • (D) Servlet Filter

A

Arogya • 3.19K Points
Extraordinary

Q. What is the benefit of caching AI responses?

  • (A) Improves security
  • (B) Reduces latency and API cost
  • (C) Improves UI animation
  • (D) Deletes logs

A

Arogya • 3.19K Points
Extraordinary

Q. Which AI feature allows answering questions from uploaded PDFs or documents?

  • (A) RAG with Vector Store
  • (B) Spring Security
  • (C) Spring Batch
  • (D) JPA Mapping

A

Arogya • 3.19K Points
Extraordinary

Q. What is hallucination in AI systems?

  • (A) Model crash
  • (B) Incorrect or fabricated response generated by AI
  • (C) Network failure
  • (D) Database corruption

A

Arogya • 3.19K Points
Extraordinary

Q. Which practice helps reduce hallucinations in Spring AI apps?

  • (A) Increasing CPU cores
  • (B) Using Retrieval Augmented Generation (RAG)
  • (C) Increasing RAM
  • (D) Using HTTP sessions

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ