Courseiva
Implement generative AI solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Implement generative AI solutions Practice Question

Exhibit

Refer to the exhibit.

```json
{
  "deployment": {
    "model": "gpt-4",
    "modelVersion": "0613",
    "capacity": {
      "type": "Provisioned",
      "provisionedThroughput": 100
    },
    "scoringConfig": {
      "temperature": 0.7,
      "maxTokens": 2000,
      "topP": 0.9,
      "stop": ["\n"]
    },
    "contentFilter": {
      "type": "Custom",
      "customBlocklists": ["blocklist1"]
    }
  }
}
```

You are deploying a generative AI application. You have the JSON configuration above. You need to ensure that the model stops generating output at the end of each sentence. The current configuration uses a stop sequence of "\n". What should you do?

⚠ Common exam trap

A common mix-up: candidates confuse parameters that control output randomness (temperature, topP) or length (maxTokens) with parameters that define explicit stopping conditions, leading them to select options that do not actually enforce sentence boundaries.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Change the stop sequence to [".", "!" , "?"]

The goal is to stop generation at the end of each sentence. A sentence can end with a period (.), exclamation mark (!), or question mark (?). The current stop sequence of "\n" only stops at newline characters, which does not guarantee sentence boundaries. By changing the stop sequence to an array containing [".", "!", "?"], the model will halt output whenever it generates any of these punctuation marks, ensuring each sentence is complete.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Change the stop sequence to [".", "!" , "?"]

    Why this is correct

    These are sentence-ending punctuation marks.

  • Reduce the maxTokens to 500.

    Why it's wrong here

    maxTokens limits total length, not sentence completion.

  • Set the topP to 0.5.

    Why it's wrong here

    topP controls nucleus sampling, not stopping.

  • Set the temperature to 0.

    Why it's wrong here

    Temperature affects randomness, not stopping behavior.

About these practice questions

Courseiva writes every AI-102 question from scratch — 945 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.