Quiz – Prompt Engineering :Google Cloud Fundamentals: Core Infrastructure (Preparing for Google Cloud Certification: Cloud Architect Professional Certificate) Answers 2025
Question 1
Generative AI is a type of artificial intelligence that can ____
๐ฉ Generate text, images, or other data using generative models.
โ Generate responses on real-time data.
โ Perform complex calculations and mathematical operations.
โ Make predictions about future events.
Explanation:
Generative AI creates new content such as text, images, audio, or code. It does not inherently rely on real-time data or perform heavy numerical calculations.
Question 2
How can you avoid hallucinations when using an LLM?
๐ฉ Train the model on a clean, curated dataset.
โ Train the model to operate with very few constraints.
โ Train the LLM on a smaller dataset.
โ Do not add any context to your prompts.
Explanation:
Hallucinations occur when the model creates incorrect information. High-quality training data and good grounding reduce hallucinations.
Question 3
Which scenario would most likely benefit from few-shot prompting?
๐ฉ Getting a model to convert a list of names into a specific JSON format.
โ Summarizing a document in pirate style.
โ Asking for a short story.
โ Asking for the capital of France.
Explanation:
Few-shot prompting is useful when you need the model to learn a pattern or follow a structured output format. JSON formatting fits this perfectly.
Question 4
Which is NOT a good practice for constructing prompts?
โ Vary your prompts.
๐ฉ Include long and detailed sentences.
โ Keep it short and simple.
โ Avoid ambiguity.
Explanation:
Prompts should be clear and concise. Long, overly detailed sentences introduce confusion and worsen output quality.
๐งพ Summary Table
| Q# | Correct Answer | Key Concept |
|---|---|---|
| 1 | Generate text, images, or other data | Generative AI creates new content |
| 2 | Train on clean, curated dataset | High-quality data reduces hallucinations |
| 3 | Convert names to structured JSON | Few-shot prompts teach patterns |
| 4 | Include long & detailed sentences | Good prompts = clear, concise |