- A
Extract year, month, day as separate features.
Why wrong: This loses the cyclic nature of months and days (e.g., Dec and Jan are far apart numerically).
- B
Use only the day of week.
Why wrong: This captures weekly seasonality but not long-term trends.
- C
Create cyclic features (sin/cos of month, day).
Cyclic encoding preserves the periodic nature of time.
- D
Drop the date column.
Why wrong: Dropping discards valuable temporal information.
Quick Answer
The correct answer is to create cyclic features using sine and cosine transformations of month and day. This technique is essential because temporal data like months and days are inherently circular—December and January are adjacent, not 11 steps apart—so linear encoding would falsely imply that month 12 is far from month 1, breaking the seasonal cycle. By applying sin and cos, you preserve the circular relationship, allowing a model to capture both long-term trends (via the year component) and seasonal patterns (via the cyclic encoding) without imposing a misleading linear order. On the Salesforce AI Associate exam, this tests your understanding of feature engineering for time-series data, often appearing in questions about handling date columns in customer or sales datasets. A common trap is choosing simple numeric extraction (e.g., month as 1–12), which treats time as linear and misrepresents cycles. Memory tip: think of a clock—sin and cos keep time circular, not straight.
AI Associate Data for AI Practice Question
This AI Associate practice question tests your understanding of data for ai. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A dataset contains a 'date' column. Which feature engineering technique would best capture both long-term trends and seasonal patterns?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"best"Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
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
Create cyclic features (sin/cos of month, day).
Option C is correct because cyclic features using sine and cosine transformations preserve the circular nature of temporal data (e.g., month 12 and month 1 are adjacent, not far apart). This allows a model to learn both long-term trends (via the year component) and seasonal patterns (via the cyclic encoding of month and day) without imposing a false linear ordering. In contrast, simple numeric extraction treats time as linear, which can misrepresent seasonal cycles.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Extract year, month, day as separate features.
Why it's wrong here
This loses the cyclic nature of months and days (e.g., Dec and Jan are far apart numerically).
- ✗
Use only the day of week.
Why it's wrong here
This captures weekly seasonality but not long-term trends.
- ✓
Create cyclic features (sin/cos of month, day).
Why this is correct
Cyclic encoding preserves the periodic nature of time.
Clue confirmation
The clue word "best" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Drop the date column.
Why it's wrong here
Dropping discards valuable temporal information.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Salesforce often tests whether candidates recognize that simple numeric extraction (e.g., month as 1–12) fails to model cyclical continuity, leading them to mistakenly choose Option A over the correct cyclic encoding.
Detailed technical explanation
How to think about this question
Cyclic encoding maps a periodic variable (e.g., month number 1–12) onto a unit circle using sin(2π * value / period) and cos(2π * value / period), ensuring that the distance between December (12) and January (1) is small in the transformed space. This technique is critical for time series models like ARIMA or gradient boosting machines that rely on feature engineering to capture seasonality, as raw integer encoding would imply a discontinuity at the year boundary. In practice, combining cyclic features with a linear trend feature (e.g., days since start) allows a model to separately learn long-term drift and repeating seasonal effects.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Data for AI — study guide chapter
Learn the concepts, then practise the questions
- →
Data for AI practice questions
Targeted practice on this topic area only
- →
All AI Associate questions
506 questions across all exam domains
- →
Salesforce AI Associate AI Associate study guide
Full concept coverage aligned to exam objectives
- →
AI Associate practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AI Associate practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
AI Fundamentals practice questions
Practise AI Associate questions linked to AI Fundamentals.
AI Capabilities in CRM practice questions
Practise AI Associate questions linked to AI Capabilities in CRM.
Ethical Considerations of AI practice questions
Practise AI Associate questions linked to Ethical Considerations of AI.
Data for AI practice questions
Practise AI Associate questions linked to Data for AI.
AI Associate fundamentals practice questions
Practise AI Associate questions linked to AI Associate fundamentals.
AI Associate scenario practice questions
Practise AI Associate questions linked to AI Associate scenario.
AI Associate troubleshooting practice questions
Practise AI Associate questions linked to AI Associate troubleshooting.
Practice this exam
Start a free AI Associate practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AI Associate question test?
Data for AI — This question tests Data for AI — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create cyclic features (sin/cos of month, day). — Option C is correct because cyclic features using sine and cosine transformations preserve the circular nature of temporal data (e.g., month 12 and month 1 are adjacent, not far apart). This allows a model to learn both long-term trends (via the year component) and seasonal patterns (via the cyclic encoding of month and day) without imposing a false linear ordering. In contrast, simple numeric extraction treats time as linear, which can misrepresent seasonal cycles.
What should I do if I get this AI Associate question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
This AI Associate practice question is part of Courseiva's free Salesforce 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 Associate exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.