New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DOP-C02 Exam - Topic 2 Question 31 Discussion

Actual exam question for Amazon's DOP-C02 exam
Question #: 31
Topic #: 2
[All DOP-C02 Questions]

A company wants to use AWS Systems Manager documents to bootstrap physical laptops for developers The bootstrap code Is stored in GitHub A DevOps engineer has already created a Systems Manager activation, installed the Systems Manager agent with the registration code, and installed an activation ID on all the laptops.

Which set of steps should be taken next?

Show Suggested Answer Hide Answer
Suggested Answer: C

Configure the Systems Manager Document to Use the aws-downloadContent Plugin with a sourceType of GitHub and sourcelnfo with the Repository Details:

The aws-downloadContent plugin can download content from various sources, including GitHub, which is necessary for bootstrapping the laptops with the code stored in the GitHub repository.

schemaVersion: '2.2'

description: 'Download and run bootstrap script from GitHub'

mainSteps:

- action: aws:downloadContent

name: downloadBootstrapScript

inputs:

sourceType: GitHub

sourceInfo: '{'owner':'my-org','repository':'my-repo','path':'scripts/bootstrap.sh','getOptions':'branch:main'}'

destinationPath: /tmp/bootstrap.sh

- action: aws:runShellScript

name: runBootstrapScript

inputs:

runCommand:

- chmod +x /tmp/bootstrap.sh

- /tmp/bootstrap.sh

This setup ensures that the bootstrap code is downloaded from GitHub and executed on the laptops using Systems Manager.


AWS Systems Manager aws-downloadContent Plugin

Running Commands Using Systems Manager

Contribute your Thoughts:

0/2000 characters
Noah
3 months ago
Definitely going with C, it’s straightforward and efficient!
upvoted 0 times
...
Shenika
3 months ago
Wait, can we really use aws-downloadContent for GitHub? Sounds off.
upvoted 0 times
...
Lindsey
3 months ago
A is a solid option, but why S3? Seems unnecessary.
upvoted 0 times
...
Effie
4 months ago
I think B could work too, but not sure about pointing directly to Git.
upvoted 0 times
...
Kanisha
4 months ago
Option C seems like the best choice for GitHub integration.
upvoted 0 times
...
Vincenza
4 months ago
I’m a bit confused about the difference between the aws-downloadContent and aws-configurePackage plugins. I hope I remember the right one!
upvoted 0 times
...
Leigha
4 months ago
I feel like option C makes sense since it mentions GitHub directly, which is where our bootstrap code is stored.
upvoted 0 times
...
Xuan
4 months ago
I remember practicing a question about copying files from a Git repository, but I can't recall the exact plugin we used.
upvoted 0 times
...
Rosendo
5 months ago
I think we need to use the aws-downloadContent plugin, but I'm not sure if it should be from GitHub or S3.
upvoted 0 times
...
France
5 months ago
I think C is the way to go. Downloading directly from GitHub makes the most sense given the information provided in the question.
upvoted 0 times
...
Susy
5 months ago
Option B looks interesting, using the aws-configurePackage plugin to install from the Git repo. I'll have to read up on that plugin to see if it's the best fit here.
upvoted 0 times
...
Rosendo
5 months ago
This seems straightforward - I'd go with option C to download the content directly from the GitHub repository.
upvoted 0 times
...
Brendan
5 months ago
Hmm, I'm a bit unsure about this one. Should we be using S3 as an intermediary step instead of going straight to GitHub? Let me think this through a bit more.
upvoted 0 times
...
Paul
5 months ago
Hmm, this looks like a tricky one. I'll need to think carefully about the different installation packages and which one would be best for an Internet-facing server.
upvoted 0 times
...
Kristofer
5 months ago
I remember reading that not all cryptocurrencies fall under SEC regulations, so I think it's more complex than just saying they're all securities.
upvoted 0 times
...
Katheryn
5 months ago
I'm pretty sure I know the difference between a condition subsequent and a condition precedent, so I think I can handle this question.
upvoted 0 times
...
Skye
1 year ago
Wait, are we sure the laptops have internet access? If not, the S3 option in A might be the safer bet. Gotta cover all our bases, ya know?
upvoted 0 times
Roosevelt
1 year ago
C) Configure the Systems Manager document to use the aws-downloadContent plugin with a sourceType of GitHub and sourceInfo with the repository details.
upvoted 0 times
...
Noelia
1 year ago
A) Configure the Systems Manager document to use the AWS-RunShellScript command to copy the files from GitHub to Amazon S3, then use the aws-downloadContent plugin with a sourceType of S3
upvoted 0 times
...
...
Iola
1 year ago
Ah, the age-old debate: do we go with the direct GitHub download or the roundabout S3 route? I'm with the rest of the crowd on this one - Option C is the way to go.
upvoted 0 times
Lashon
1 year ago
I agree, Option C seems like the most efficient way to bootstrap the laptops with the code from GitHub.
upvoted 0 times
...
Jacqueline
1 year ago
Option C is definitely the best choice. Using the aws-downloadContent plugin with GitHub as the sourceType is the most straightforward approach.
upvoted 0 times
...
...
Tatum
2 years ago
Hold up, the aws:softwarelnventory plugin? That's for collecting software inventory data, not for deploying bootstrap code. Option C is the clear winner here.
upvoted 0 times
Alesia
1 year ago
Yeah, option C seems like the most logical next step to take in this scenario.
upvoted 0 times
...
Anna
1 year ago
I agree, using the aws-downloadContent plugin with GitHub as the sourceType will help us copy the files from GitHub to the laptops.
upvoted 0 times
...
Vanesa
1 year ago
I think option C is the best choice. It allows us to use the aws-downloadContent plugin with the sourceType of GitHub.
upvoted 0 times
...
...
Shanda
2 years ago
I agree with Elinore, option C seems like the most direct approach to me.
upvoted 0 times
...
Elinore
2 years ago
But option A involves copying files to Amazon S3 first, which may not be necessary.
upvoted 0 times
...
Sharika
2 years ago
Hmm, the aws-configurePackage plugin might be a bit overkill for just copying some files. Option C definitely looks like the simplest solution.
upvoted 0 times
Lottie
1 year ago
Yeah, I agree. Using the aws-downloadContent plugin with GitHub as the sourceType seems like the simplest solution.
upvoted 0 times
...
Justa
2 years ago
I think option C is the way to go, it seems straightforward.
upvoted 0 times
...
...
Rosalind
2 years ago
I disagree, I believe option A is more appropriate.
upvoted 0 times
...
Naomi
2 years ago
I'd go with option C. Pulling the files directly from GitHub is the most straightforward approach in this scenario.
upvoted 0 times
Delisa
2 years ago
Yeah, pulling the files from GitHub with option C seems like the best choice here.
upvoted 0 times
...
Sang
2 years ago
Agreed, that sounds like the most straightforward approach.
upvoted 0 times
...
Naomi
2 years ago
I think option C is the way to go. Pulling directly from GitHub seems like the easiest solution.
upvoted 0 times
...
...
Elinore
2 years ago
I think option C is the best choice.
upvoted 0 times
...
Doretha
2 years ago
The aws-downloadContent plugin with a sourceType of GitHub seems like the way to go here. That way, we can directly pull the bootstrap code from the source repository.
upvoted 0 times
Marla
1 year ago
D: Sounds good, let's configure the Systems Manager document accordingly.
upvoted 0 times
...
Kip
2 years ago
C: We should definitely go with option C to streamline the process of bootstrapping the laptops.
upvoted 0 times
...
Wade
2 years ago
B: Agreed, that way we can easily pull the bootstrap code from the GitHub repository.
upvoted 0 times
...
Amira
2 years ago
A: I think option C is the best choice, using the aws-downloadContent plugin with a sourceType of GitHub.
upvoted 0 times
...
...

Save Cancel