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.
Related contents:
Module 2: Introducing Google Cloud
Module 3: Resources and Access in the Cloud
Module 4: Virtual Machines and Networks in the Cloud
Module 5: Storage in the Cloud
Module 6: Containers in the Cloud
Module 7: Applications in the Cloud
You might also like:
Course 3: