PL-200 · Question #16
PL-200 Question #16: Real Exam Question with Answer & Explanation
The correct answer is A: Bot. {"question_number": 8, "correct_answer": "A", "explanation": "The correct answer is A (Bot). In Power Virtual Agents, variables have two primary scopes: Topic variables are local to the topic in which they are created and cannot be accessed by other topics. Bot variables (prefixe
Question
You are creating a Power Virtual Agents chatbot that uses multiple topics. Each user interaction can reference more than one topic. You need to be able to capture a value in an initial topic and use it in subsequent topics. Which type of variable should you create?
Options
- ABot
- BTopic
- CContext
Explanation
{"question_number": 8, "correct_answer": "A", "explanation": "The correct answer is A (Bot). In Power Virtual Agents, variables have two primary scopes: Topic variables are local to the topic in which they are created and cannot be accessed by other topics. Bot variables (prefixed with 'bot.') have global scope across the entire chatbot session, meaning any topic can read or write to them. Since the requirement is to capture a value in one topic and reuse it in subsequent topics, a Bot variable is required. A Topic variable would lose its value once the topic ends. Context variables are used for passing values into a bot from an external source, not for sharing data between internal topics.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.