Skip to content

Module 2 Quiz :DevOps and AI on AWS: Upgrading Apps with Generative AI (DevOps and AI on AWS Specialization) Answers 2025

1. Question 1

Primary purpose of Git tags

  • ❌ Create new branches

  • ❌ Automatically move with each commit

  • To mark specific points in history as important

  • ❌ Merge versions

  • ❌ Create hotfixes

Explanation:
Git tags mark important commit points such as releases (v1.0, v2.0).


2. Question 2 — (Select TWO)

Least scripting needed to configure AWS Region in deployment script

  • ❌ Configure in application code

  • Retrieve region from instance metadata

  • ❌ Manually input region

  • Use AWS CLI to configure the region

  • ❌ Global config file (still requires manual setup, not least scripting)

Correct answers: 2 and 3

Explanation:

  • Instance metadata automatically gives region with no extra scripting.

  • AWS CLI config sets default region system-wide.


3. Question 3

Purpose of top-p (nucleus sampling) in Bedrock API

  • ❌ Control length

  • ❌ Always pick highest-probability words

  • Set a probability threshold for word selection → increases diversity

  • ❌ Determine itinerary duration

  • ❌ Limit activity types

Explanation:
Top-p sampling selects from the smallest group of high-probability tokens whose cumulative probability ≥ p, increasing creativity while staying controlled.


🧾 Summary Table

Q# Correct Answer Key Concept
1 Mark specific history points Git tags
2 Retrieve from metadata, Use AWS CLI to configure Least scripting for region
3 Probability threshold for diverse outputs Bedrock top-p