Use the aws:downloadContent plugin with sourceType GitHub and the repository details in sourceInfo

Answer Correct answer: C — configure the document with the aws-downloadContent plugin using sourceType GitHub and the repository details in sourceInfo.

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?

  1. 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.
  2. Configure the Systems Manager document to use the aws-configurePackage plugin with an install action and point to the Git repository.
  3. Configure the Systems Manager document to use the aws-downloadContent plugin with a sourceType of GitHub and sourceInfo with the repository details. Correct Answer
  4. Configure the Systems Manager document to use the aws:softwareInventory plugin and run the script from the Git repository.

Community Votes

C
100%

100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The aws-downloadContent plugin is the Systems Manager document plugin for retrieving content from a remote location, and it accepts GitHub as a source type along with repository details in sourceInfo, which is the direct match for code hosted in GitHub (C). Option A routes through Amazon S3 with a shell script, adding an unnecessary copy step. Option B's aws-configurePackage plugin installs packages from configured repositories rather than downloading arbitrary bootstrap content. Option D's aws:softwareInventory plugin collects software inventory from a node, which does not retrieve external files.

The bootstrap code lives in GitHub and must be retrieved by a Systems Manager document running on the laptops, which are already activated and managed. The aws:downloadContent document plugin is designed for exactly this, accepting a sourceType of GitHub and a sourceInfo block containing the repository, branch, and path details, so the document pulls the bootstrap content directly from GitHub with no intermediate S3 copy.

Using the AWS-RunShellScript command to copy files from GitHub to Amazon S3 and then downloading from S3 with aws-downloadContent (A) — this introduces an S3 staging location and a custom copy step that must be maintained, when the plugin can fetch from GitHub directly; jamesf noted the plugin's purpose is downloading documents and scripts from remote locations including GitHub. Using the aws-configurePackage plugin with an install action pointing at the Git repository (B) — that plugin installs packages through a configured package manager workflow, not arbitrary bootstrap file content. Using the aws:softwareInventory plugin (D) — that plugin gathers software inventory from the node rather than fetching external content.

Community Discussion (4 comments)

jamesf 👍 3 Selected: C
aws:downloadContent (Schema version 2.0 or later) Download SSM documents and scripts from remote locations. GitHub Enterprise repositories are not supported. This plugin is supported on Linux and Windows Server operating systems.
tgv 👍 3 Selected: C
---> C
trungtd 👍 4 Selected: C
The aws-downloadContent plugin is specifically designed to download content from various sources, including GitHub. Setting the sourceType to GitHub and providing the repository details in sourceInfo to directly download the bootstrap code from GitHub to the laptops.
getadroit 👍 1
c https://docs.aws.amazon.com/systems-manager/latest/userguide/documents-running-remote-github-s3.html

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The laptops are already activated, have the Systems Manager agent installed with the registration code, and have the activation ID applied, so the remaining requirement is a document that retrieves the bootstrap code from GitHub. The aws-downloadContent document plugin exists for exactly this purpose: it downloads documents and scripts from remote locations, supports Linux and Windows managed nodes, and accepts a sourceType of GitHub together with a sourceInfo block carrying the repository, branch, and path. Configuring the Systems Manager document with that plugin, sourceType GitHub, and the repository details in sourceInfo therefore fetches the bootstrap content directly from GitHub, which is what the scenario requires (C). C is the correct answer.

Why the Other Options Are Wrong

A configures the document to use AWS-RunShellScript to copy the files from GitHub to Amazon S3 and then uses aws-downloadContent with a sourceType of S3. This adds an Amazon S3 staging location plus a custom copy command that must be created and maintained, even though the plugin can retrieve content from GitHub directly; jamesf described the plugin's purpose as downloading documents and scripts from remote locations, which makes the S3 detour unnecessary. B configures the document to use the aws-configurePackage plugin with an install action pointed at the Git repository. That plugin drives package installation through a package manager workflow, not the retrieval of arbitrary bootstrap file content from a repository. D configures the document to use the aws:softwareInventory plugin and run the script from the Git repository. The software inventory plugin collects a node's installed software inventory, so it does not download external content and cannot bootstrap the laptops. C is correct.

Community Comment Notes

Community voted C unanimously. jamesf quoted the documentation entry for aws:downloadContent, noting it downloads Systems Manager documents and scripts from remote locations with Schema version 2.0 or later and that GitHub Enterprise repositories are not supported. trungtd explained that the plugin is specifically designed to download content from sources including GitHub, and that setting sourceType to GitHub with the repository details in sourceInfo is the correct configuration. getadroit cited the AWS documentation page for running documents that download content from GitHub or S3. No alternative received support.

Official Reference

Related Analysis

Practice All DOP-C02 Questions

Access 85 questions with complete answers and detailed explanations.

View Full DOP-C02 Practice Test →

← Back to DOP-C02 Study Guide