AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
An operations team stores reusable Terraform modules in a private Git repository. For each environment, they want deployments to use an immutable snapshot of the module code so that later commits do not affect already-deployed infrastructure, while still allowing planned upgrades. Which Git approach best satisfies this requirement?
Run git gc after each Terraform apply to remove dangling objects from the repository.
Perform a shallow clone of the repository before each deployment to reduce transfer size.
Always reference the main branch so the pipeline automatically pulls the newest code.
Pin the module source to a specific commit hash in the Git URL used by Terraform.
Referencing a specific Git commit hash (for example, using ?ref=0123abcd in the module source URL) locks Terraform to that exact tree state. Because commit IDs are immutable, the module code cannot change unless the team updates the reference, giving predictable deployments and controlled upgrades. Pointing to the main branch would continuously pull newer commits, shallow cloning only affects clone size, and running git gc simply cleans repository objects; none of those guarantee immutability of the deployed code.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does it mean to pin the module source to a specific commit hash in Terraform?
Open an interactive chat with Bash
Why is pointing to the main branch considered a poor choice for immutability?
Open an interactive chat with Bash
What is the role of 'git gc' and why does it not guarantee code immutability?
Open an interactive chat with Bash
What is a Git commit hash, and why is it immutable?
Open an interactive chat with Bash
How does pinning Terraform modules to a commit hash improve deployment stability?
Open an interactive chat with Bash
What is the purpose of using ?ref in a Git URL for Terraform modules?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Deployment, Provisioning, and Automation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .