exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 155 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 155
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A DevOps engineer is using AWS CodePipeline and AWS CodeBuild to create a CI/CD pipeline for a serverless application that is based on the AWS Serverless Application Model (AWS SAM). The source, build and test steps have been completed. The DevOps engineer has also created two pipeline deployment stages that use AWS CloudFormation as the action provider. One stage uses the "Create or replace a change set" action mode. The other stage uses the "Execute a change set" action mode.

The DevOps engineer needs to pass some parameters to a CloudFormation stack during the deployment without changing the code and pipeline structure.

Which solution will meet these requirements?

  • A. Set the –parameter-overrides option in the sam deploy command when the CodeBuild stage is invoked.
  • B. Add all parameters in AWS Systems Manager Parameter Store. Use dynamic references to specify template values in Parameter Store.
  • C. In the deployment stage where the "Create or replace a change set" action mode resides, apply the JSON object in the ParameterOverrides property.
  • D. In the deployment stage where the "Execute a change set" action mode resides, apply the JSON object in the ParameterOverrides property.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
manman7
1 year, 8 months ago
So is the answer A or C?
upvoted 1 times
...
Dgix
1 year, 10 months ago
--parameter-overrides are only used with`sam deploy`. Thus, A is out of the question. B would change the pipeline structure. C: correct. D: incorrect since the parameters would be applied too late.
upvoted 3 times
...
ducluanxutrieu
2 years, 2 months ago
Selected Answer: D
You can use the ParameterOverrides property in both the Create or replace a change set and Execute a change set action modes. However, the Execute a change set action mode allows you to pass parameters to a CloudFormation stack that has already been created. This can be useful if you want to update the parameters of an existing CloudFormation stack without having to recreate the stack.
upvoted 1 times
...
stalos
2 years, 5 months ago
Selected Answer: C
A - wrong sam deploy in code build ? D - wrong exectue has already prepared parameters
upvoted 2 times
...
Eah1
2 years, 5 months ago
Selected Answer: D
"To specify properties, you can use the CodePipeline console, or you can create a JSON object to use for the AWS CLI, CodePipeline API, or AWS CloudFormation templates." https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-action-reference.html#w2ab1c21c13b9
upvoted 2 times
Eah1
2 years, 5 months ago
I meant C
upvoted 1 times
...
...
joseribas89
2 years, 6 months ago
Selected Answer: A
sam deploy --stack-name mystack --template-file template.yaml --parameter-overrides Environment=dev Region=us-west-2
upvoted 3 times
...
ozlaoliu
2 years, 6 months ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stackinstances-override.html
upvoted 1 times
...
Bulti
2 years, 6 months ago
Selected Answer: C
The answer is C. Cloudformation is used as a deployment provider and therefore Parameter override should happen in the Deploy action. Since this is a new CodePipeline, you will need to perform Parameter override in "Create or replace change set" and not in "Execute Change Set".
upvoted 4 times
...
DerekKey
2 years, 6 months ago
Selected Answer: A
A: --parameter-overrides A string that contains AWS CloudFormation parameter overrides encoded as key-value pairs. Use the same format as the AWS Command Line Interface (AWS CLI). For example, ParameterKey=ParameterValue InstanceType=t1.micro.
upvoted 1 times
...
saeidp
2 years, 7 months ago
Selected Answer: D
Create stage creates the changeset and execute changeset gets the change from the creating stage
upvoted 1 times
saeidp
2 years, 7 months ago
Sorry I meant C
upvoted 2 times
...
...
Oleg_gol
2 years, 7 months ago
Selected Answer: A
--parameter-overrides A string that contains AWS CloudFormation parameter overrides encoded as key-value pairs. Use the same format as the AWS Command Line Interface (AWS CLI).
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...