C1000-185 Sample Questions

C1000-185 Sample Questions & Answers

Fine-tuning, including hard versus soft prompts and cost reduction, dominates the exam, ahead of core generative AI and LLM capabilities, zero- and few-shot prompt engineering, retrieval-augmented generation, deployment, and orchestrating APIs.

Launch the full C1000-185 simulator →

Free C1000-185 Sample Questions with Answers

Real questions from the IBM watsonx Generative AI Engineer v1 - Associate practice test — answers and explanations included. Showing 20 of 40 free samples.

  1. Question 1Intermediate

    Analyze and Design a Generative AI Solution · Understand security risks associated with LLMs, prompt engineering, prompt, and data

    A public-facing chatbot built on a foundation model is found to be vulnerable to indirect prompt injection. An attacker is able to embed malicious instructions in a document that the chatbot later retrieves and processes, causing it to exfiltrate user data. Which of the following is the most effective mitigation strategy against this type of attack?

    Show answer & explanation

    Correct answer: D

    Indirect prompt injection occurs when the malicious instruction comes from a data source (like a retrieved document) rather than the direct user input. Therefore, input validation on the user's prompt is ineffective. The best defense is to architect the prompt template to create a clear separation of concerns. The system prompt should explicitly instruct the LLM that the retrieved content is for informational purposes only and that any instructions within it should be ignored. This creates a logical barrier, making it much harder for the model to be manipulated by the content it processes.

  2. Question 2Intermediate

    Prompt Engineering · Generate prompt templates

    When creating a reusable prompt template in the watsonx.ai Prompt Lab for generating product descriptions, a developer wants to dynamically insert the product name and its key features. The template looks like this:

    Generate a compelling marketing description for a new product named {{product_name}}. Highlight the following key features: {{features}}.

    To use this template via the API, the product name and features would be passed as values for the _____.

    Show answer & explanation

    Correct answer: B

    The {{product_name}} and {{features}} placeholders in the template are defined as prompt variables. When making an API call or using the template, the developer provides the actual values for these variables, which are then substituted into the template to form the final prompt sent to the model.

  3. Question 3Advanced

    Fine-Tuning · Prepare the dataset for training

    A healthcare provider is developing a generative AI application to summarize clinician's notes into a patient-friendly format. The application must adhere to strict data privacy regulations (e.g., HIPAA) and must not send any sensitive patient data to external, third-party model providers. The provider has a large corpus of anonymized clinician notes and corresponding patient-friendly summaries to use for training.

    The IT department has provisioned a secure, on-premises environment with powerful GPUs. The goal is to create a highly specialized model that excels at this specific summarization task and can be hosted entirely within their own infrastructure. The development team is evaluating different approaches on the watsonx platform.

    Given the strict privacy constraints and the availability of a high-quality, task-specific dataset, what is the most appropriate strategy?

    Show answer & explanation

    Correct answer: C

    This strategy directly addresses all key requirements. Fine-tuning (either full or PEFT) is the best method for creating a model that is highly specialized for a specific task when a quality dataset is available. It will yield superior performance compared to prompting alone. Most importantly, the resulting custom model is an asset that can be deployed entirely on-premises, satisfying the strict data privacy and security constraints by ensuring no sensitive data ever leaves their controlled environment.

  4. Question 4IntermediateSelect 3

    Retrieval-Augmented Generation (RAG) · Develop using libraries

    When designing a RAG pipeline using LangChain to work with watsonx.ai, which THREE of the following components are essential for the retrieval and generation process? (Select THREE)

    flowchart TD A[Load Documents] --> B{Split into Chunks} B --> C[Generate Embeddings] C --> D[(Store in Vector DB)] E[User Query] --> F[Generate Query Embedding] F --> G{Search Vector DB} G --> H[Retrieve Relevant Chunks] H & E --> I{Construct Prompt} I --> J[Invoke LLM] J --> K[Generated Response]
    Show answer & explanation

    Correct answers: A, C, D

    A Document Loader is the first step in the RAG pipeline, responsible for ingesting data from various sources (PDFs, websites, databases) into a format LangChain can process.

    A Vector Store (like Chroma or Milvus) stores the document embeddings. A Retriever is the LangChain component that interfaces with the Vector Store to find and return the most relevant document chunks based on the user's query.

    This is the core generative component. LangChain uses wrappers for various LLMs (including those on watsonx.ai) to provide a standardized interface for sending the combined prompt (user query + retrieved context) and receiving the final generated answer.

  5. Question 5Intermediate

    Deployment · Deploy a custom model

    After successfully fine-tuning a foundation model for a specific task, an engineer needs to make it available for other developers in the organization to use via a REST API. What is the standard process for deploying this custom model as an endpoint within watsonx.ai?

    Show answer & explanation

    Correct answer: B

    This describes the standard MLOps workflow in watsonx.ai and IBM Cloud Pak for Data. Models and other assets are developed within a project. To make them operational, they are promoted to a dedicated deployment space. From there, an online deployment can be created, which provisions the necessary resources and exposes the model via a stable, scalable REST API endpoint.

  6. Question 6Advanced

    Analyze and Design a Generative AI Solution · Understand how to choose the appropriate model for a use case

    A startup is developing a code generation assistant for a niche programming language. They have a limited budget and GPU capacity. Their primary requirements are low-latency suggestions and the ability to run the model on developer machines with moderate resources. They are choosing between different sizes of the IBM Granite Code models. Which model would be the most appropriate choice given these constraints?

    Show answer & explanation

    Correct answer: C

    For this use case, the constraints of budget, GPU capacity, low latency, and running on developer machines are paramount. The smallest instruction-tuned code model is the optimal choice. Smaller models are significantly cheaper to run, have lower latency, and require less memory/GPU, making them suitable for local deployment. While the largest model might offer slightly higher quality, the operational costs and resource requirements would be prohibitive for the startup's constraints. An instruction-tuned model is also crucial for a chat/assistant-like application.

  7. Question 7Intermediate

    Prompt Engineering · Determine the best model parameters for each GenAI prompt

    In prompt engineering, both Top-P (nucleus) sampling and Top-K sampling are used to control the randomness of a model's output by limiting the pool of candidate tokens. What is the key difference in how they operate?

    Show answer & explanation

    Correct answer: C

    This is the core difference. Top-K sampling considers a static pool size (e.g., the top 50 most likely tokens). Top-P sampling is dynamic; it considers the smallest set of tokens whose cumulative probability is greater than or equal to the value 'p'. If the model is very certain about the next token, this set might be very small (e.g., 2-3 tokens). If the model is uncertain, the set could be much larger. This makes Top-P generally more adaptive and often preferred over Top-K.

  8. Question 8Advanced

    Fine-Tuning · LoRA

    When using LoRA for parameter-efficient fine-tuning, what is the primary trade-off an engineer must consider when selecting the value for the rank (r)?

    Show answer & explanation

    Correct answer: C

    The rank (r) directly controls the size of the low-rank adaptation matrices (A and B). A higher 'r' means larger matrices, which translates to more trainable parameters. This allows the model to learn more complex adaptations (higher expressiveness), but it also increases the computational and memory requirements during training. Furthermore, a rank that is too high relative to the size and complexity of the fine-tuning dataset can lead to overfitting, where the model memorizes the training data instead of generalizing.

  9. Question 9Intermediate

    Retrieval-Augmented Generation (RAG) · Generate vector embeddings utilizing models

    A multinational corporation is building a RAG system to serve employees in both North America and Japan. The system needs to process and retrieve information from technical manuals written in both English and Japanese. Which embedding model available in the watsonx.ai catalog would be the most suitable choice for this task?

    Show answer & explanation

    Correct answer: D

    For a RAG system that must handle multiple languages, a dedicated multilingual embedding model is essential. Models like paraphrase-multilingual-mpnet-base-v2 are trained on many languages and map semantically similar sentences to nearby points in the vector space, regardless of the source language. This allows a single vector store to handle documents in both English and Japanese, and enables cross-lingual retrieval (e.g., asking a question in English and retrieving a relevant Japanese document). Using separate models would be complex and would not support cross-lingual search.

  10. Question 10Beginner

    Deployment · Deploy AI Assets

    True or False: In watsonx.ai, only fine-tuned custom models can be promoted to a deployment space and deployed as AI assets.

    Show answer & explanation

    Correct answer: B

    False. An 'AI Asset' in watsonx.ai is a broad term. Besides custom models, other assets such as saved prompt templates from the Prompt Lab, Python functions, and data assets can also be promoted to a deployment space and deployed for operational use.

Ready for the real thing?

The full C1000-185 simulator has every exam-style question, timed mode, and instant scoring.