0
0
Prompt Engineering / GenAIml~20 mins

Why responsible AI development matters in Prompt Engineering / GenAI - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Responsible AI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is fairness important in AI systems?

Imagine an AI system used to decide who gets a loan. Why must this system be fair?

ABecause unfair AI can deny loans to certain groups without good reason, causing harm.
BBecause fairness makes the AI run faster and use less memory.
CBecause fairness means the AI always gives loans to everyone regardless of risk.
DBecause fairness allows the AI to ignore user data and make random decisions.
Attempts:
2 left
💡 Hint

Think about the impact of biased decisions on people's lives.

Metrics
intermediate
2:00remaining
Which metric helps detect bias in classification models?

You have a model that predicts if a person qualifies for a job. Which metric helps check if the model is biased against a group?

AAccuracy score over the entire dataset.
BNumber of layers in the model.
CFalse positive rate difference between groups.
DTraining loss value.
Attempts:
2 left
💡 Hint

Bias often shows as different error rates for different groups.

🔧 Debug
advanced
2:00remaining
What error occurs with this AI fairness check code?

Consider this Python code snippet that tries to compute demographic parity difference but fails:

group_0 = predictions[labels == 0]
group_1 = predictions[labels == 1]
parity_diff = abs(group_0.mean() - group_1.mean())
print(parity_diff)

What error will this code raise if labels is a list, not a numpy array?

Prompt Engineering / GenAI
import numpy as np
predictions = np.array([0,1,1,0,1])
labels = np.array([0,1,0,1,0])
group_0 = predictions[labels == 0]
group_1 = predictions[labels == 1]
parity_diff = abs(group_0.mean() - group_1.mean())
print(parity_diff)
AIndexError: list index out of range
BAttributeError: 'list' object has no attribute 'mean'
CNo error, prints the parity difference
DTypeError: list indices must be integers or slices, not list
Attempts:
2 left
💡 Hint

Think about what happens when you use a boolean mask on a Python list.

Model Choice
advanced
2:00remaining
Which model type is best to improve AI transparency?

You want an AI model that is easy to understand and explain to users. Which model type is best?

ADeep neural network with many hidden layers
BDecision tree with clear branching rules
CEnsemble of random forests
DSupport vector machine with RBF kernel
Attempts:
2 left
💡 Hint

Think about which model shows decisions in simple steps.

🧠 Conceptual
expert
3:00remaining
Why is continuous monitoring important in responsible AI?

After deploying an AI system, why must we keep monitoring its behavior over time?

ABecause AI models can degrade or become biased as data changes over time.
BBecause monitoring increases the AI model's training speed.
CBecause monitoring allows the AI to automatically fix bugs without human help.
DBecause once deployed, AI models never change and need no checks.
Attempts:
2 left
💡 Hint

Think about how real-world data can shift and affect AI decisions.