Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DOP-C02 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:

Skye
3 months 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
3 months 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
3 months 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
3 months 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
3 months ago
I agree, Option C seems like the most efficient way to bootstrap the laptops with the code from GitHub.
upvoted 0 times
...
Jacqueline
3 months 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
3 months 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
3 months ago
Yeah, option C seems like the most logical next step to take in this scenario.
upvoted 0 times
...
Anna
3 months 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
3 months 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
4 months ago
I agree with Elinore, option C seems like the most direct approach to me.
upvoted 0 times
...
Elinore
4 months ago
But option A involves copying files to Amazon S3 first, which may not be necessary.
upvoted 0 times
...
Sharika
4 months 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
3 months ago
Yeah, I agree. Using the aws-downloadContent plugin with GitHub as the sourceType seems like the simplest solution.
upvoted 0 times
...
Justa
3 months ago
I think option C is the way to go, it seems straightforward.
upvoted 0 times
...
...
Rosalind
4 months ago
I disagree, I believe option A is more appropriate.
upvoted 0 times
...
Naomi
4 months 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
4 months ago
Yeah, pulling the files from GitHub with option C seems like the best choice here.
upvoted 0 times
...
Sang
4 months ago
Agreed, that sounds like the most straightforward approach.
upvoted 0 times
...
Naomi
4 months ago
I think option C is the way to go. Pulling directly from GitHub seems like the easiest solution.
upvoted 0 times
...
...
Elinore
4 months ago
I think option C is the best choice.
upvoted 0 times
...
Doretha
4 months 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
3 months ago
D: Sounds good, let's configure the Systems Manager document accordingly.
upvoted 0 times
...
Kip
3 months ago
C: We should definitely go with option C to streamline the process of bootstrapping the laptops.
upvoted 0 times
...
Wade
4 months ago
B: Agreed, that way we can easily pull the bootstrap code from the GitHub repository.
upvoted 0 times
...
Amira
4 months 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