1Z0-1127-25 LLM Fundamentals Practice Question
Which TWO of the following are true about positional encoding in transformer models?
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
✓
It provides the model with information about the order of tokens in a sequence
Positional encoding provides information about token order and is added to the input embeddings. It is used in encoder-decoder and decoder-only models. It does not replace attention, and it is not learned for each token position in the original formulation (it uses fixed sine/cosine functions).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It is learned independently for each position in the training data
Why it's wrong here
In the original transformer, positional encodings are fixed sine/cosine functions, not learned.
- ✓
It provides the model with information about the order of tokens in a sequence
Why this is correct
Since self-attention is permutation-invariant, positional encodings are necessary to capture sequence order.
- ✓
It is added to the token embeddings before passing through the transformer layers
Why this is correct
Typically, positional encodings are added to (or concatenated with) input token embeddings.
- ✗
It replaces the need for self-attention
Why it's wrong here
Self-attention computes token relationships; positional encoding only adds order information.
- ✗
It is only used in encoder-only architectures like BERT
Why it's wrong here
Positional encoding is used in encoder-only, decoder-only, and encoder-decoder architectures.
Go deeper
Related to this question
About these practice questions
This 1Z0-1127-25 question is part of Courseiva's 768-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.