Exam AB-731 Topic 2 Question 23 Discussion
Actual exam question for Microsoft's AB-731 exam
Question #: 23
Topic #: 2
Question #: 23
Topic #: 2
Your company has an AI solution that uses a prebuilt Azure OpenAI model to generate content.
You need to reduce the cost of solution while minimizing the impact on the quality of the generated output.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You need to reduce the cost of solution while minimizing the impact on the quality of the generated output.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Suggested Answer: A,C Vote an answer
To reduce costs for a prebuilt Azure OpenAI model while maintaining high output quality, you should implement a combination of prompt optimization, caching, and model selection strategies.
[C]
1. Optimize Prompt Engineering
Reducing the number of tokens processed is the most direct way to lower costs.
Prompt Compression: Use tools like LLMLingua to remove redundant text from prompts without losing semantic meaning.
Task Decomposition: Break complex tasks into smaller, focused prompts to improve clarity and reduce expensive retries.
Shorten Context: Summarize long conversation histories or external RAG (Retrieval-Augmented Generation) documents before sending them to the model.
2. Implement Caching Mechanisms
[A]
3. Use Model Routing and Tiering
Matching request complexity to model capability can reduce costs by 30-60%.
*-> Model Cascading: Use a small, cheap model (e.g., GPT-4o-mini) for simple tasks like classification or basic formatting. Route only complex reasoning tasks to high-end models like GPT-4o.
Reasoning Effort Control: For newer models like GPT-5, adjust the reasoning_effort parameter to
"minimal" for straightforward tasks to save on compute.
Reference:
https://ekaivakriti.com/blog/how-to-reduce-openai-costs-by-60-percent/
[C]
1. Optimize Prompt Engineering
Reducing the number of tokens processed is the most direct way to lower costs.
Prompt Compression: Use tools like LLMLingua to remove redundant text from prompts without losing semantic meaning.
Task Decomposition: Break complex tasks into smaller, focused prompts to improve clarity and reduce expensive retries.
Shorten Context: Summarize long conversation histories or external RAG (Retrieval-Augmented Generation) documents before sending them to the model.
2. Implement Caching Mechanisms
[A]
3. Use Model Routing and Tiering
Matching request complexity to model capability can reduce costs by 30-60%.
*-> Model Cascading: Use a small, cheap model (e.g., GPT-4o-mini) for simple tasks like classification or basic formatting. Route only complex reasoning tasks to high-end models like GPT-4o.
Reasoning Effort Control: For newer models like GPT-5, adjust the reasoning_effort parameter to
"minimal" for straightforward tasks to save on compute.
Reference:
https://ekaivakriti.com/blog/how-to-reduce-openai-costs-by-60-percent/
by Lennon at Nov 23, 2026, 02:15 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).