1Z0-1127-25 LLM Fundamentals Practice Question
What is the primary purpose of the self-attention mechanism in a Transformer model?
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
✓
To compute a weighted sum of all token representations based on pairwise relevance
Self-attention allows each token to attend to every other token in the sequence, capturing contextual relationships regardless of distance.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
To generate token embeddings in parallel
Why it's wrong here
Parallel generation is a property of the Transformer architecture, but not specific to self-attention's purpose.
- ✗
To reduce the dimensionality of token embeddings
Why it's wrong here
Dimensionality reduction is not the role of self-attention.
- ✗
To encode positional information of tokens
Why it's wrong here
Positional encoding, not self-attention, provides positional information.
- ✓
To compute a weighted sum of all token representations based on pairwise relevance
Why this is correct
Self-attention computes attention scores between all pairs and aggregates information.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-1127-25 question from scratch — 768 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-1127-25 practice question is part of Courseiva's free Oracle 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 1Z0-1127-25 exam.