Courseiva

AI0-001 AI Models and Data Engineering Practice Question

Exhibit

model:
  type: Sequential
  layers:
    - type: Dense
      units: 128
      activation: relu
    - type: Dense
      units: 64
      activation: relu
    - type: Dense
      units: 1
      activation: sigmoid
optimizer:
  type: Adam
  learning_rate: 0.01

Refer to the exhibit. A data engineer is training a binary classification neural network. The loss fluctuates and does not converge. Which hyperparameter adjustment is most likely to stabilize training?

⚠ Common exam trap

The CompTIA AI exam often tests the misconception that regularization techniques like dropout or activation changes can fix convergence issues, when in fact the most direct hyperparameter for stabilizing training loss is the learning rate.

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

✓

Decrease the learning rate

Fluctuating loss that fails to converge during neural network training is a classic sign of an excessively high learning rate, causing the optimizer to overshoot the minimum. Decreasing the learning rate allows the gradient descent updates to take smaller, more stable steps, which smooths the loss curve and promotes convergence.

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 activation to tanh

    Why it's wrong here

    Switching to tanh changes the activation function's output range but does nothing to correct the oversized weight updates driving the divergence. Activation choice addresses vanishing gradients or output range, not oscillation. Tanh would be appropriate when sigmoid saturation is stalling learning, not for unstable loss.

  • ✗

    Add dropout after each layer

    Why it's wrong here

    Dropout randomly deactivates neurons to reduce overfitting; it does not address oscillating loss caused by an excessive learning rate. Adding it can even slow convergence. Dropout is the right choice when training accuracy far exceeds validation accuracy, indicating overfitting rather than instability.

  • ✓

    Decrease the learning rate

    Why this is correct

    Lowering the learning rate reduces the size of each gradient descent step, preventing the optimiser from overshooting minima that cause the loss to oscillate rather than converge. For a binary classification network with fluctuating, non-converging loss, this directly addresses the instability constraint in the stem.

  • ✗

    Increase the number of units in the first dense layer

    Why it's wrong here

    Adding units increases model capacity, which typically worsens divergence when the learning rate is too high, since larger gradients amplify each update. Capacity changes target underfitting. Increasing layer width is correct when the model cannot fit the training data, not when loss fluctuates without converging.

About these practice questions

Courseiva writes every AI0-001 question from scratch — 962 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 AI0-001 practice question is part of Courseiva's free CompTIA 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 AI0-001 exam.