DVA-C01 : AWS Certified Developer Associate : Part 04
-
An application overwrites an object in Amazon S3, and then immediately reads the same object. Why would the application sometimes retrieve the old version of the object?
- S3 overwrite PUTS are eventually consistent, so the application may read the old object.
- The application needs to add extra metadata to label the latest version when uploading to Amazon S3.
- All S3 PUTS are eventually consistent, so the application may read the old object.
- The application needs to explicitly specify latest version when retrieving the object.
-
The release process workflow of an application requires a manual approval before the code is deployed into the production environment.
What is the BEST way to achieve this using AWS CodePipeline?
- Use multiple pipelines to allow approval
- Use an approval action in a stage
- Disable the stage transition to allow manual approval
- Disable a stage just prior the deployment stage
-
Where should the appspec.yml file be placed in order for AWS CodeDeploy to work?
- In the root of the application source code directory structure
- In the bin folder along with all the complied code
- In an S3 bucket
- In the same folder as the application configuration files
-
An existing serverless application processes uploaded image files. The process currently uses a single Lambda function that takes an image file, performs the processing, and stores the file in Amazon S3. Users of the application now require thumbnail generation of the images. Users want to avoid any impact to the time it takes to perform the image uploads.
How can thumbnail generation be added to the application, meeting user requirements while minimizing changes to existing code?
- Change the existing Lambda function handling the uploads to create thumbnails at the time of upload. Have the function store both the image and thumbnail in Amazon S3.
- Create a second Lambda function that handles thumbnail generation and storage. Change the existing Lambda function to invoke it asynchronously.
- Create an S3 event notification with a Lambda function destination. Create a new Lambda function to generate and store thumbnails.
- Create an S3 event notification to an SQS Queue. Create a scheduled Lambda function that processes the queue, and generates and stores thumbnails.
-
A Developer must re-implement the business logic for an order fulfilment system. The business logic has to make requests to multiple vendors to decide where to purchase an item. The whole process can take up to a week to complete.
What is the MOST efficient and SIMPLEST way to implement a system that meets these requirements?
- Use AWS Step Functions to execute parallel Lambda functions, and join the results.
- Create an AWS SQS for each vendor, poll the queue from a worker instance, and joint the results.
- Use AWS Lambda to asynchronously call a Lambda function for each vendor, and join the results.
- Use Amazon CloudWatch Events to orchestrate the Lambda functions.
-
A customer wants to deploy its source code on an AWS Elastic Beanstalk environment. The customer needs to perform deployment with minimal outage and should only use existing instances to retain application access log.
What deployment policy would satisfy these requirements?
- Rolling
- All at once
- Rolling with an additional batch
- Immutable
-
A Developer has been asked to build a real-time dashboard web application to visualize the key prefixes and storage size of objects in Amazon S3 buckets. Amazon DynamoDB will be used to store the Amazon S3 metadata.
What is the optimal and MOST cost-effective design to ensure that the real-time dashboard is kept up to date with the state of the objects in the Amazon S3 buckets?
- Use an Amazon CloudWatch event backed by an AWS Lambda function. Issue an Amazon S3 API call to get a list of all Amazon S3 objects and persist the metadata within DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
- Use Amazon S3 Event Notification backed by a Lambda function to persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
- Run a cron job within an Amazon EC2 instance to list all objects within Amazon S3 and persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
- Create a new Amazon EMR cluster to get all the metadata about Amazon S3 objects; persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
-
A Developer must repeatedly and consistently deploy a serverless RESTful API on AWS.
Which techniques will work? (Choose two.)
- Define a Swagger file. Use AWS Elastic Beanstalk to deploy the Swagger file.
- Define a Swagger file. Use AWS CodeDeploy to deploy the Swagger file.
- Deploy a SAM template with an inline Swagger definition.
- Define a Swagger file. Deploy a SAM template that references the Swagger file.
- Define an inline Swagger definition in a Lambda function. Invoke the Lambda function.
-
A set of APIs are exposed to customers using the Amazon API Gateway. These APIs have caching enabled on the API Gateway. Customers have asked for an option to invalidate this cache for each of the APIs.
What action can be taken to allow API customers to invalidate the API Cache?
- Ask customers to use AWS credentials to call the InvalidateCache API.
- Ask customers to invoke an AWS API endpoint which invalidates the cache.
- Ask customers to pass an HTTP header called Cache-Control:max-age=0.
- Ask customers to add a query string parameter called “INVALIDATE_CACHE” when making an API call.
-
A Developer uses AWS CodeDeploy to automate application deployment that connects to an external MySQL database. The Developer wants to securely access the encrypted secrets, such as API keys and database passwords.
Which of the following solutions would involve the LEAST administrative effort?
- Save the secrets in Amazon S3 with AWS KMS server-side encryption, and use a signed URL to access them by using the IAM role from Amazon EC2 instances.
- Use the instance metadata to store the secrets and to programmatically access the secrets from EC2 instances.
- Use the Amazon DynamoDB client-side encryption library to save the secrets in DynamoDB and to programmatically access the secrets from EC2 instances.
- Use AWS SSM Parameter Store to store the secrets and to programmatically access them by using the IAM role from EC2 instances.
-
An application running on EC2 instances is storing data in an S3 bucket. Security policy mandates that all data must be encrypted in transit.
How can the Developer ensure that all traffic to the S3 bucket is encrypted?
- Install certificates on the EC2 instances.
- Create a bucket policy that allows traffic where SecureTransport is true.
- Create an HTTPS redirect on the EC2 instances.
- Create a bucket policy that denies traffic where SecureTransport is false.
-
A company is developing a new online game that will run on top of Amazon ECS. Four distinct Amazon ECS services will be part of the architecture, each requiring specific permissions to various AWS services. The company wants to optimize the use of the underlying Amazon EC2 instances by bin packing the containers based on memory reservation.
Which configuration would allow the Development team to meet these requirements MOST securely?
- Create a new Identity and Access Management (IAM) instance profile containing the required permissions for the various ECS services, then associate that instance role with the underlying EC2 instances.
- Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then configure each ECS service to reference the associated IAM role.
- Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then, create an IAM group and configure the ECS cluster to reference that group.
- Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then configure each ECS task definition to referenсe the associated IAM role.
-
A company needs to encrypt data at rest, but it wants to leverage an AWS managed service using its own master key.
Which of the following AWS service can be used to meet these requirements?
- SSE with Amazon S3
- SSE with AWS KMS
- Client-side encryption
- AWS IAM roles and policies
-
When a Developer tries to run an AWS CodeBuild project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters.
What is the recommended solution?
- Add the export LC_ALL=“en_US.utf8” command to the pre_build section to ensure POSIX localization.
- Use Amazon Cognito to store key-value pairs for large numbers of environment variables.
- Update the settings for the build project to use an Amazon S3 bucket for large numbers of environment variables.
- Use AWS Systems Manager Parameter Store to store large numbers of environment variables.
-
A Lambda function is packaged for deployment to multiple environments, including development, test, production, etc. Each environment has unique set of resources such as databases, etc.
How can the Lambda function use the resources for the current environment?
- Apply tags to the Lambda functions.
- Hardcore resources in the source code.
- Use environment variables for the Lambda functions.
- Use separate function for development and production.
-
The Developer for a retail company must integrate a fraud detection solution into the order processing solution. The fraud detection solution takes between ten and thirty minutes to verify an order. At peak, the web site can receive one hundred orders per minute.
What is the most scalable method to add the fraud detection solution to the order processing pipeline?
- Add all new orders to an Amazon SQS queue. Configure a fleet of 10 EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status.
- Add all new orders to an SQS queue. Configure an Auto Scaling group that uses the queue depth metric as its unit of scale to launch a dynamically-sized fleet of EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status.
- Add all new orders to an Amazon Kinesis Stream. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.
- Write all new orders to Amazon DynamoDB. Configure DynamoDB Streams to include all new orders. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.
-
A Developer is creating a mobile application with a limited budget. The solution requires a scalable service that will enable customers to sign up and authenticate into the mobile application while using the organization’s current SAML 2.0 identity provider.
Which AWS service should be used to meet these requirements?
- AWS Lambda
- Amazon Cognito
- AWS IAM
- Amazon EC2
-
An application is real-time processing millions of events that are received through an API.
What service could be used to allow multiple consumers to process the data concurrently and MOST cost-effectively?
- Amazon SNS with fanout to an SQS queue for each application
- Amazon SNS with fanout to an SQS FIFO (first-in, first-out) queue for each application
- Amazon Kinesis Firehose
- Amazon Kinesis Streams
-
A Developer needs to use AWS X-Ray to monitor an application that is deployed on EC2 instances.
What steps have to be executed to perform the monitoring?
- Deploy the X-Ray SDK with the application and use X-Ray annotation.
- Install the X-Ray daemon and instrument the application code.
- Install the X-Ray daemon and configure it to forward data to Amazon CloudWatch Events.
- Deploy the X-Ray SDK with the application and instrument the application code.
-
A Developer will be using the AWS CLI on a local development server to manage AWS services.
What can be done to ensure that the CLI uses the Developer’s IAM permissions when making commands?
- Specify the Developer’s IAM access key ID and secret access key as parameters for each CLI command.
- Run the aws configure CLI command, and provide the Developer’s IAM access key ID and secret access key.
- Specify the Developer’s IAM user name and password as parameters for each CLI command.
- Use the Developer’s IAM role when making the CLI command.
Subscribe
0 Comments
Newest