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
'자격증 > AWS Developer Associate' 카테고리의 다른 글
[AWS] Certified Developer Associate Dump 문제 008 (0) | 2021.08.09 |
---|---|
[AWS] Certified Developer Associate Dump 문제 007 (0) | 2021.08.09 |
[AWS] Certified Developer Associate Dump 문제 005 (0) | 2021.08.09 |
[AWS] Certified Developer Associate Dump 문제 004 (0) | 2021.08.09 |
[AWS] Certified Developer Associate Dump 문제 003 (0) | 2021.08.09 |