Amazon (DVA-C01) Exam Questions And Answers page 26
A developer is creating a role to access Amazon S3 buckets. To create the role, the developer uses the AWS CLI create-role command.
Which policy should be added to allow the Amazon EC2 service to assume the role?
Which policy should be added to allow the Amazon EC2 service to assume the role?
Trust policy
Inline policy
Service control policy (SCP)
Storage Services
Security and Identity Services
A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless Application Model (AWS SAM) template for the application.
What should the developer use for the project? (Choose two.)
What should the developer use for the project? (Choose two.)
Call aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the package afterward.
Call sam package to create the deployment package. Call sam deploy to deploy the package afterward.
Call aws s3 cp to upload the AWS SAM template to Amazon S3. Call aws lambda update-function-code to create the application.
Create a ZIP package locally and call aws serverlessrepo create-application to create the application.
Create a ZIP package and upload it to Amazon S3. Call aws cloudformation create-stack to create the application.
Developer Tools
Serverless
A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless Application Model (AWS SAM) template for the application.
What should the developer use for the project? (Choose two.)
What should the developer use for the project? (Choose two.)
Call aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the package afterward.
Call sam package to create the deployment package. Call sam deploy to deploy the package afterward.
Call aws s3 cp to upload the AWS SAM template to Amazon S3. Call aws lambda update-function-code to create the application.
Create a ZIP package locally and call aws serverlessrepo create-application to create the application.
Create a ZIP package and upload it to Amazon S3. Call aws cloudformation create-stack to create the application.
Developer Tools
Serverless
A developer is creating a serverless ecommerce application that is based on AWS Lambda. An asynchronous workflow manages the checkout process and must orchestrate different Lambda functions. The workflow runs one function for each item in the shopping cart. The developer is using AWS Step Functions to orchestrate the process.
The checkout process is running the Lambda functions serially, and the developer needs to improve the performance of the process.
What should the developer do to meet these requirements?
The checkout process is running the Lambda functions serially, and the developer needs to improve the performance of the process.
What should the developer do to meet these requirements?
Use a Choice state to identify the size of the cart and invoke a specific Lambda function with the entire cart content.
Use a Retry field for a second run to process all the items that failed.
Use a Parallel state to iterate over all the items in parallel.
Use a Map state to iterate over all the items in the cart.
Security and Identity Services
Serverless
A developer is creating a serverless web application and maintains different branches of code. The developer wants to avoid updating the Amazon API Gateway target endpoint each time a new code push is performed.
What solution would allow the developer to perform a code push efficiently, without the need to update the API Gateway?
What solution would allow the developer to perform a code push efficiently, without the need to update the API Gateway?
Associate different AWS Lambda functions to an API Gateway target endpoint.
Create different stages in API Gateway, then associate API Gateway with AWS Lambda.
Create aliases and versions in AWS Lambda.
Tag the AWS Lambda functions with different names.
Serverless
A Developer is creating a serverless website with content that includes HTML files, images, videos, and JavaScript (client-side scripts).
Which combination of services should the Developer use to create the website?
Which combination of services should the Developer use to create the website?
Amazon S3 and Amazon CloudFront
Amazon EC2 and Amazon ElastiCache
Amazon ECS and Redis
AWS Lambda and Amazon API Gateway
Storage Services
Networking and Content Delivery
A Developer is creating a template that uses AWS CloudFormation to deploy an application. This application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda.
Which tool should the Developer use to define simplified syntax for expressing serverless resources?
Which tool should the Developer use to define simplified syntax for expressing serverless resources?
CloudFormation serverless intrinsic functions
AWS serverless express
An AWS serverless application model
A CloudFormation serverless plugin
Security and Identity Services
Deployment and Management
A Developer is creating a web application that requires authentication, but also needs to support guest access to provide users limited access without having to authenticate. What service can provide support for the application to allow guest access?
IAM temporary credentials using AWS STS.
Amazon Directory Service
Amazon Cognito with unauthenticated access enabled
IAM with SAML integration
Security and Identity Services
A Developer is creating a web application that requires authentication, but also needs to support guest access to provide users limited access without having to authenticate. What service can provide support for the application to allow guest access?
IAM temporary credentials using AWS STS.
Amazon Directory Service
Amazon Cognito with unauthenticated access enabled
IAM with SAML integration
Security and Identity Services
A developer is creating a web service that will assist a company s new employees during onboarding. The web service must interact with several corporate systems. For example, the web service must log a request with the IT team for a new notebook and must request an access card from security. Each request can occur in parallel. When all the steps are complete, the web service returns either a successful response or an error.
The web service is invoked by a single REST request to an Amazon API Gateway API. The REST request returns the reference number. Data that is captured can be captured only once.
Which solution will meet these requirements MOST cost-effectively?
The web service is invoked by a single REST request to an Amazon API Gateway API. The REST request returns the reference number. Data that is captured can be captured only once.
Which solution will meet these requirements MOST cost-effectively?
Set up AWS Step Functions Synchronous Express Workflows to process the data
Set up AWS Step Functions Asynchronous Express Workflows to process the data
Set up AWS Step Functions Standard Workflows to process the data
Set up Amazon Simple Notification Service (Amazon SNS) to process the data. Push the request to an HTTPS endpoint
Compute Services
Deployment and Management
Comments