Bird
0
0

Which syntax correctly represents a deployment configuration setting for limiting AI agent resource usage?

easy📝 Syntax Q3 of 15
Agentic AI - Real-World Agent Applications
Which syntax correctly represents a deployment configuration setting for limiting AI agent resource usage?
Aresources = cpu: 2 cores, memory: 4GB
Bresources = [cpu=2 cores, memory=4GB]
Cresources = {"cpu": "2 cores", "memory": "4GB"}
Dresources = (cpu: 2 cores, memory: 4GB)
Step-by-Step Solution
Solution:
  1. Step 1: Recognize correct dictionary syntax in Python

    Python dictionaries use curly braces with key-value pairs as strings or identifiers.
  2. Step 2: Evaluate each option

    resources = {"cpu": "2 cores", "memory": "4GB"} uses correct dictionary syntax; others use invalid formats.
  3. Final Answer:

    resources = {"cpu": "2 cores", "memory": "4GB"} -> Option C
  4. Quick Check:

    Correct syntax = resources = {"cpu": "2 cores", "memory": "4GB"} [OK]
Quick Trick: Use curly braces and colons for dicts in Python [OK]
Common Mistakes:
  • Using brackets instead of braces
  • Missing quotes around keys
  • Using parentheses for dicts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Agentic AI Quizzes