🔥 3-day streak
AWS Certified Generative AI Developer - Professional32 / 166
Question 32 of 166

A developer is building a customer-support classification service using the Bedrock Converse API with Anthropic Claude. The service must classify incoming messages into one of five fixed categories and return only the category label. During testing, the model occasionally adds explanatory sentences, uses category names not in the approved list, or varies the label casing. The team wants the most reliable way to enforce consistent, constrained output while keeping the solution simple and portable across supported Converse-compatible models. What should the developer do?

Reviewed for accuracy · Report an issueNext question