CAIC AI Tools & Technologies — Questions and Answers
Question 1: Which vector database is most commonly used to store and retrieve embeddings in Retrieval-Augmented Generation (RAG) pipelines?
- MySQL
- Pinecone (Correct answer)
- Redis Streams
- Apache Kafka
Correct answer: Pinecone
Pinecone is a purpose-built vector database widely used in RAG pipelines to store and perform similarity searches on embeddings.
Question 2: What is the primary role of LangChain in AI application development?
- Training large language models from scratch
- Orchestrating LLM calls, memory, and tool integrations into chains (Correct answer)
- Providing GPU infrastructure for model inference
- Monitoring model drift in production
Correct answer: Orchestrating LLM calls, memory, and tool integrations into chains
LangChain is a framework that orchestrates LLM calls, memory management, and external tool integrations into composable chains.
Question 3: A client wants to deploy an open-source LLM on their own servers to avoid data leaving their network. Which tool best supports this use case?
- OpenAI API
- Ollama (Correct answer)
- Google Vertex AI
- Amazon Bedrock
Correct answer: Ollama
Ollama allows users to run open-source LLMs locally or on private servers, keeping data fully on-premises.
Question 4: Which technique in prompt engineering explicitly instructs a model to reason step-by-step before producing its final answer?
- Few-shot prompting
- Zero-shot prompting
- Chain-of-thought prompting (Correct answer)
- Instruction tuning
Correct answer: Chain-of-thought prompting
Chain-of-thought prompting encourages the model to show intermediate reasoning steps, improving accuracy on complex tasks.
Question 5: What does the 'temperature' parameter control in LLM inference?
- The hardware power usage during generation
- The randomness or creativity of model outputs (Correct answer)
- The maximum number of tokens generated
- The model's training learning rate
Correct answer: The randomness or creativity of model outputs
Temperature scales the probability distribution over next tokens; higher values produce more random, creative outputs while lower values produce more deterministic ones.
Question 6: Which AI observability tool is specifically designed to trace, evaluate, and debug LLM applications end-to-end?
- Grafana Loki
- Prometheus
- LangSmith (Correct answer)
- Datadog APM
Correct answer: LangSmith
LangSmith, built by the LangChain team, provides tracing, evaluation, and debugging specifically for LLM-powered applications.
Question 7: When using OpenAI's API, which parameter limits the total number of tokens in the model's response?
- top_p
- max_tokens (Correct answer)
- frequency_penalty
- presence_penalty
Correct answer: max_tokens
The max_tokens parameter caps the number of tokens the model can generate in a single response.
Question 8: Which Hugging Face library provides pre-trained transformer models and tokenizers ready for fine-tuning or inference?
- Diffusers
- Transformers (Correct answer)
- Datasets
- Accelerate
Correct answer: Transformers
The Hugging Face Transformers library provides thousands of pre-trained models and tokenizers for NLP, vision, and multimodal tasks.
Question 9: A developer needs to run inference on a 70B parameter model with limited GPU memory. Which technique reduces memory usage by representing weights in fewer bits?
- Knowledge distillation
- Quantization (Correct answer)
- Pruning
- Dropout regularization
Correct answer: Quantization
Quantization reduces the precision of model weights (e.g., from 16-bit to 4-bit), dramatically cutting memory requirements with minimal accuracy loss.
Question 10: What is the function of a 'system prompt' in chat-based LLM APIs like GPT-4?
- It trains the model on new data at runtime
- It sets the model's behavior, persona, and constraints for the conversation (Correct answer)
- It specifies the GPU cluster used for inference
- It controls the tokenizer vocabulary
Correct answer: It sets the model's behavior, persona, and constraints for the conversation
The system prompt in chat APIs provides initial instructions that define the model's role, tone, and rules for the entire conversation.
Question 11: Which cloud AI service allows consultants to deploy, version, and monitor custom ML models without managing underlying infrastructure?
- AWS EC2
- AWS SageMaker (Correct answer)
- AWS Lambda
- AWS CloudFormation
Correct answer: AWS SageMaker
AWS SageMaker is a fully managed MLOps platform for building, training, deploying, and monitoring machine learning models.
Question 12: In the context of AI agents, what is the purpose of a 'tool' or 'function call' capability?
- It allows the model to generate images
- It enables the model to invoke external APIs or perform actions beyond text generation (Correct answer)
- It compresses model weights for faster inference
- It logs user messages to a database
Correct answer: It enables the model to invoke external APIs or perform actions beyond text generation
Tool/function calling lets an LLM agent invoke external services, run code, or query databases, extending its capabilities beyond static text generation.
Question 13: Which parameter in OpenAI's API controls diversity by restricting sampling to the top percentage of the probability mass?
- temperature
- max_tokens
- top_p (Correct answer)
- frequency_penalty
Correct answer: top_p
The top_p (nucleus sampling) parameter restricts token sampling to the smallest set of tokens whose cumulative probability meets the threshold.
Question 14: What is 'prompt injection' in the context of LLM security?
- A technique to speed up inference by pre-loading prompts
- An attack where malicious input overrides or hijacks the model's original instructions (Correct answer)
- A method to compress long prompts for lower token costs
- A way to inject few-shot examples mid-conversation
Correct answer: An attack where malicious input overrides or hijacks the model's original instructions
Prompt injection is a security vulnerability where attacker-controlled input manipulates the model into ignoring or overriding its original system instructions.
Question 15: Which technique adapts a pre-trained LLM to a specific task by training only a small set of added parameters, leaving the original weights frozen?
- Full fine-tuning
- LoRA (Low-Rank Adaptation) (Correct answer)
- Pretraining from scratch
- Reinforcement Learning from Human Feedback
Correct answer: LoRA (Low-Rank Adaptation)
LoRA inserts low-rank weight matrices into transformer layers and trains only those, making fine-tuning far cheaper than updating all model parameters.
Question 16: A consultant is evaluating an AI pipeline for hallucinations. Which evaluation approach uses another LLM to judge response quality and factual grounding?
- Human-in-the-loop annotation only
- LLM-as-a-judge evaluation (Correct answer)
- BLEU score computation
- Confusion matrix analysis
Correct answer: LLM-as-a-judge evaluation
LLM-as-a-judge uses a capable model (e.g., GPT-4) to automatically evaluate responses for accuracy, relevance, and grounding.
Question 17: Which multimodal AI model from OpenAI can process both images and text as input to answer questions about visual content?
- GPT-3.5-turbo
- Whisper
- GPT-4V (GPT-4 with Vision) (Correct answer)
- DALL-E 3
Correct answer: GPT-4V (GPT-4 with Vision)
GPT-4V extends GPT-4 with vision capabilities, enabling it to analyze and answer questions about images alongside text.
Question 18: What is the main advantage of using streaming responses in LLM API calls?
- It reduces total token usage
- It delivers tokens to the user incrementally as they are generated, improving perceived latency (Correct answer)
- It enables multi-turn memory automatically
- It bypasses rate limits
Correct answer: It delivers tokens to the user incrementally as they are generated, improving perceived latency
Streaming sends tokens to the client as they are generated rather than waiting for the full response, making the application feel faster to users.
Question 19: Which open-source framework developed by Microsoft is used to build multi-agent AI systems where agents can communicate and collaborate?
- CrewAI
- AutoGen (Correct answer)
- LangGraph
- Semantic Kernel
Correct answer: AutoGen
Microsoft's AutoGen is an open-source framework for building multi-agent systems where LLM-powered agents converse and collaborate to solve tasks.
Question 20: When chunking documents for a RAG system, what is the primary trade-off between smaller and larger chunk sizes?
- Smaller chunks increase storage cost; larger chunks reduce it
- Smaller chunks improve retrieval precision but may lose context; larger chunks preserve context but may dilute relevance (Correct answer)
- Chunk size only affects embedding model speed, not retrieval quality
- Larger chunks always produce better results regardless of query type
Correct answer: Smaller chunks improve retrieval precision but may lose context; larger chunks preserve context but may dilute relevance
Smaller chunks retrieve more targeted passages but may miss surrounding context, while larger chunks retain context but can introduce irrelevant content into retrieved results.
Question 21: Which AI model deployment pattern uses a lightweight 'router' model to direct queries to the most cost-effective or capable model based on complexity?
- Model distillation
- Ensemble learning
- LLM routing (Correct answer)
- Transfer learning
Correct answer: LLM routing
LLM routing dynamically sends simple queries to cheaper, faster models and complex ones to more capable models, optimizing cost and latency.
Which vector database is most commonly used to store and retrieve embeddings in Retrieval-Augmented Generation (RAG) pipelines?
What Practice Test Geeks adds beyond an AI chat for CAIC
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length CAIC mock exam — 70 questions in 100 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed CAIC question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- A printable CAIC cheat sheet you can print or save as a PDF.
- CAIC flashcards built from the same question bank.
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- usaii.org — Retake policy, time limit, eligibility, fees, test delivery, passing score, renewal, retake fee, score release, test dates · verified Nov 2026