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 Infrastructure โ€“ Preparing 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