350-801 · Question #536
350-801 Question #536: Real Exam Question with Answer & Explanation
The correct answer is A: rule 1 /^.*\(....\)/ /\1/. {"question_number": 8, "question": "Voice translation regex rule to truncate any number to its last four digits", "correct_answer": "A", "explanation": "The correct regex is: rule 1 /^.\\(....\\)/ /\\1/\n\nBreaking it down: '^.' matches any number of leading characters (greedy),
Question
An engineer must configure a voice translation rule on a Cisco voice gateway to truncate numbers down to the last four digits. Which voice translation regex rule must the engineer use?
Options
- Arule 1 /^.*\(....\)/ /\1/
- Brule 1 /*1(2-9]..../ /\1/
- Crule 1 /^.*\(..\)/ /\4/
- Drule 1 /^[2-9]\(..\)/ /\.3/
Explanation
{"question_number": 8, "question": "Voice translation regex rule to truncate any number to its last four digits", "correct_answer": "A", "explanation": "The correct regex is: rule 1 /^.\(....\)/ /\1/\n\nBreaking it down: '^.' matches any number of leading characters (greedy), '\(....\)' captures exactly four characters in a tagged group (using Cisco IOS regex syntax where parentheses are escaped with backslashes), and '/\1/' replaces the entire matched string with only the captured four-character group. This effectively strips all leading digits and retains only the last four. Option B uses character class syntax incorrectly, Option C uses '/\4/' (a nonexistent group), and Option D anchors to a specific digit range and uses an incorrect backreference.", "generated_by": "claude-sonnet", "llm_judge_score": 5}
Topics
Community Discussion
No community discussion yet for this question.