AI Hints
Home›MCP Tutorial›Resources Quiz and Prompts
MCP · Lesson 40 of 120

Resources Quiz

Test yourself.

⏱ 2 min read▶ Video at 36:04🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

Let's review resources. Pause after each question, and answer before I do.

Resources Quiz
From the video: Resources Quiz
  • Resources quiz
  • Pause and think
  • Then check

Question 1

What identifies a resource? Its URI.

Quick check
A resource is identified by its:

Question 2

How do you serve one resource per city with one function? A resource template.

Quick check
One pattern for many cities:

Question 3

What should you return for a binary file? Bytes, with a mime type.

Quick check
A PDF resource returns:

Question 4

The model needs to cancel an order. Resource or tool? A tool.

Quick check
Changing data needs a:

Summary

Well done. Next, prompts.

Key takeaways
  • URI
  • Templates
  • Bytes
Next up: Prompts — reusable templates