Skip to content

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