Sky Archive

자격증/AWS Developer Associate

[AWS] Certified Developer Associate Dump 문제 006

Anchovy ʕ-᷅ᴥ-᷄ʔ 2021. 8. 9. 20:47

What are the steps to using the AWS CLI to launch a templatized serverless application?

 

A. Use AWS CloudFormation get-template then CloudFormation execute-change-set.

B. Use AWS CloudFormation validate-template then CloudFormation create-change-set.

C. Use AWS CloudFormation package then CloudFormation deploy.

D. Use AWS CloudFormation create-stack then CloudFormation update-stack.


템플리트화된 서버 없는 응용프로그램을 시작하기 위해 AWS CLI를 사용하는 단계는?


A. AWS CloudFormation get-template을 사용한 다음 CloudFormation 실행-변경 세트를 사용하십시오.
B. AWS CloudFormation validate-template을 사용한 다음 CloudFormation 생성-변경-set을 사용하십시오.
C. CloudFormation 배포 후 AWS CloudFormation 패키지를 사용하십시오.
D. AWS CloudFormation create-stack을 사용한 다음 CloudFormation update-stack을 사용하십시오.


정답↓

 

더보기

C
1. sam package : # Package SAM template
sam package --template-file sam.yaml --s3-bucket mybucket --output-template-file packaged.yaml
2. sam deploy : # Deploy packaged SAM template
sam deploy --template-file ./packaged.yaml --stack-name mystack --capabilities CAPABILITY_IAM
Source : https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-deploying.html