Module 8: Prompt Engineering

Looking for ‘Google Cloud Fundamentals: Core Infrastructure Module 8 Answers’?

In this post, I provide complete, accurate, and detailed explanations for the answers to Module 8: Prompt Engineering of Course 2: Google Cloud Fundamentals: Core InfrastructurePreparing for Google Cloud Certification: Cloud Developer Professional Certificate

Whether you’re preparing for quizzes or brushing up on your knowledge, these insights will help you master the concepts effectively. Let’s dive into the correct answers and detailed explanations for each question!

Module Quiz

Graded Assignment

1. Generative AI is a type of artificial intelligence that can ____.

  • Generate text, images, or other data using generative models. ✅
  • Perform complex calculations and mathematical operations.
  • Make predictions about future events.
  • Generate responses on real-time data.

Explanation:

  • Generative AI refers to artificial intelligence models that can create new content such as text (e.g., ChatGPT), images (e.g., DALL·E), music, and videos.
  • These models learn from vast datasets and generate coherent and contextually relevant outputs.

2. How can you avoid hallucinations when using a large language model?

  • Train the LLM on a smaller dataset.
  • Train the model to operate with very few constraints.
  • Train the model on a clean, curated dataset. ✅
  • Do not add any context to your prompts.

Explanation:

  • Hallucinations occur when AI generates incorrect or misleading information.
  • The best way to reduce hallucinations is by training the model on clean, high-quality, and curated datasets that minimize errors and biases.

3. Which one of the following is not a type of prompt?

  • Zero-shot
  • Two-shot ✅
  • One-shot
  • Role prompt

Explanation:

  • The three main types of prompting in AI models are:
    Zero-shot → No examples are given before answering.
    One-shot → One example is given before answering.
    Few-shot → Multiple examples (typically more than one) are given before answering.

  • “Two-shot” is not a standard term used in prompt engineering. While “few-shot” includes multiple examples, we do not usually classify prompting specifically as “two-shot.”

4. Which of the following is not a good practice for constructing prompts?

  • Keep it short and simple.
  • Avoid ambiguity.
  • Include long and detailed sentences. ✅
  • Vary your prompts.

Explanation:

  • Good prompt engineering follows these principles:
    Keep it short and simple → Helps AI understand the request quickly.
    Avoid ambiguity → Ensures a clear and specific response.
    Vary your prompts → Experimenting with different prompts improves AI outputs.

Leave a Reply